public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: espie@quatramaran.ens.fr
Cc: rth@redhat.com, gcc@gcc.gnu.org
Subject: Re: Speeding up GC
Date: Tue, 04 Jun 2002 03:15:00 -0000	[thread overview]
Message-ID: <20020604.015524.58453064.davem@redhat.com> (raw)
In-Reply-To: <200206040920.g549KZP26811@quatramaran.ens.fr>

   From: Marc Espie <espie@quatramaran.ens.fr>
   Date: Tue, 4 Jun 2002 11:20:35 +0200

   In article <20020603180553.A13829@redhat.com> you write:
   >A better way to do this is to actually compact the GC arena
   >and mark the pages read-only.  If the objects are modified,
   >the SIGSEGV handler marks the page read-write again and flags
   >the page as having been modified.
   
   Isn't that a bit expensive ? getting through a SEGV and a
   signal-handler is not especially fast on most OSes.
   
This, along with several other reasons, are why I think the
compacting allocator idea is going to be a net lose.

I think it is more worthwhile to clean up HOW we allocate
objects, especially "throw away" objects such as temporary RTL.

GC is a great way to simplify memory allocation, but it isn't an
excuse to do stupid things.  Many parts of the compiler do absolutely
stupid things which result in much fragmented GC memory.

A compacting allocator is just going to paper over the real problems,
not fix them.

Now, if we could use SIGSEGV handlers to totally eliminate the GC scan
itself, that I would buy as a performance win.  But you can't do that
and get the fine-grained in_use bitmap updates we get with current way
the GC scan operates.

  reply	other threads:[~2002-06-04 10:00 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-03  6:25 Martin v. Löwis
2002-06-03  6:39 ` David S. Miller
2002-06-03 18:10 ` Richard Henderson
2002-06-04  2:34   ` Marc Espie
2002-06-04  3:15     ` David S. Miller [this message]
2002-06-04 11:42       ` Alexandre Oliva
2002-06-04 12:10         ` Richard Henderson
2002-06-04 12:39           ` David S. Miller
2002-06-04 12:38         ` David S. Miller
2002-06-04 10:03     ` Richard Henderson
     [not found] <j47klg8pfy.fsf@informatik.hu-berlin.de.suse.lists.egcs>
     [not found] ` <20020603180553.A13829@redhat.com.suse.lists.egcs>
2002-06-04  3:52   ` Andi Kleen
2002-06-04  6:57     ` John Levon
2002-06-04  7:14       ` Paul Koning
2002-06-04  7:37         ` David S. Miller
2002-06-04  7:51           ` Daniel Berlin
2002-06-04  7:53             ` David S. Miller
2002-06-04  7:58               ` Andi Kleen
2002-06-04  8:08                 ` David S. Miller
2002-06-04  8:55                   ` law
2002-06-04  8:17                 ` Marc Espie
2002-06-04  9:21                 ` Joe Buck
2002-06-04  8:10           ` Marc Espie
2002-06-04  8:58             ` David S. Miller
2002-06-04  9:05               ` Marc Espie
2002-06-04  9:35                 ` David S. Miller
2002-06-04  8:43           ` law
2002-06-04  8:59             ` David S. Miller
2002-06-04 10:15           ` Richard Henderson
2002-06-04 10:22             ` David S. Miller
2002-06-05  4:56 Robert Dewar
2002-08-17  5:13 Tim Josling
2002-08-18  0:25 ` Guillermo Ballester Valor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020604.015524.58453064.davem@redhat.com \
    --to=davem@redhat.com \
    --cc=espie@quatramaran.ens.fr \
    --cc=gcc@gcc.gnu.org \
    --cc=rth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).