Re: [RFC 0/3] low memory notify

From: Pekka Enberg
Date: Tue Jan 17 2012 - 10:04:28 EST


On Tue, Jan 17, 2012 at 4:38 PM, Colin Walters <walters@xxxxxxxxxx> wrote:
> So what you really want to be investigating here is integration between
> a garbage collector and the system VM.  Your test program looks nothing
> like a garbage collector.  I'd expect most of the performance tradeoffs
> to be similar between these runtimes.  The Azul people have been doing
> something like this: http://www.managedruntime.org/

The interraction isn't all that complex, really. I'd expect most VMs
to simply wake up the GC thread when poll() returns. GCs that are able
to compact the heap can madvise(MADV_DONTNEED) or even munmap() unused
parts of the heap.

Pekka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/