Speeding up GC
John Levon
levon@movementarian.org
Tue Jun 4 06:57:00 GMT 2002
On Tue, Jun 04, 2002 at 12:42:06PM +0200, Andi Kleen wrote:
> Unfortunately changing pages to read only and back is rather expensive.
> Cheaper would be to expose the hardware's page dirty bit to user space
> and use it for this. Apparently some OS like Solaris support it already
> (at least that is what the relevant function in the boehm-gc suggest)
> I guess it could be added to Linux too.
To be most useful that needs to be read/write interface so the dirty bit
can be reset after a full GC, since the GC only cares about
dirty-since-last-GC (variant of card marking), whereas the VM has other
purposes for the dirty bit. It looks possible on x86 at least, by
backing up the dirty bit for the VM's benefit into one of the pte bits
that seem to be unused, as far as I can tell...
regards
john
--
"Do you mean to tell me that "The Prince" is not the set textbook for CS1072
Professional Issues ? What on earth do you learn in that course ?"
- David Lester
More information about the Gcc
mailing list