[Bug other/50636] GC in large LTO builds cause excessive fragmentation in memory map
andi-gcc at firstfloor dot org
gcc-bugzilla@gcc.gnu.org
Thu Oct 6 21:32:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50636
--- Comment #3 from Andi Kleen <andi-gcc at firstfloor dot org> 2011-10-06 21:31:56 UTC ---
I would prefer to free in 2MB chunks if possible
I was experimenting with increasing the quire size from 1 to 2MB so that a
modern
kernel with transparent huge pages can always get a huge page.
If the freeing also happens in the same chunks the kernel can keep the 2MB
pages together.
But yes MADV_DONTNEED makes sense too.
More information about the Gcc-bugs
mailing list