This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Patch: RAM-based heuristics for ggc-min-heapsize and ggc-min-expand
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Richard dot Earnshaw at arm dot com
- Cc: Mike Stump <mstump at apple dot com>, "Kaveh R. Ghazi"<ghazi at caip dot rutgers dot edu>, geoffk at geoffk dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 14 Feb 2003 10:18:30 -0800
- Subject: Re: [RFC] Patch: RAM-based heuristics for ggc-min-heapsize and ggc-min-expand
- References: <200302141002.h1EA2bd18561@pc960.cambridge.arm.com>
Richard Earnshaw <rearnsha@arm.com> writes:
> 2) Allows us to override them
> 3) Allows a scheme where any user can override them from the command line
They *are* already overridable from the command line. I think it's a
good idea to print the values with -v, but I don't see any harm in
doing it from cc1.
> For the last point consider someone running gcc on a heavily loaded
> multi-user machine -- in that case there may be Gigs of ram but only a few
> hundred meg available to the individual. It's not interesting to tune the
> performance of gcc to the amount of physical RAM, but to the amount that
> is likely to be available. At the same time we don't want gcc to try to
> guess this since that can lead to hisenbugs.
We should take rlimits into account in the heuristics.
zw