[RFC] Patch: RAM-based heuristics for ggc-min-heapsize and ggc-min-expand

Geoff Keating geoffk@geoffk.org
Sat Feb 15 19:20:00 GMT 2003


Richard Earnshaw <rearnsha@arm.com> writes:

> > "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:
> > It doesn't make sense for us to try to consider RLIMIT_DATA etc, since
> > we don't have enough control to guarantee that we don't go over those.
> > 
> 
> RLIMIT_DATA would be completely wrong anyway.  That's the maximum virtual 
> data size (including swapped out data).  If the compiler exceeds that then 
> it's just going to get killed by the OS.

... however, if we have a machine with 2G of RAM, but RLIMIT_DATA is
set to, say, 128Mb, we should make sure that we don't set the minimum
collection size to 256Mb and then hit RLIMIT_DATA before even trying
one collection.

-- 
- Geoffrey Keating <geoffk@geoffk.org>



More information about the Gcc-patches mailing list