This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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.
> 

I'd be surprised if a machine had an RLIMIT_DATA that was lower than 
RLIMIT_RSS, but you never know...

R.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]