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: Make GC tuning parameters adjustable at runtime




--On Sunday, November 10, 2002 02:22:31 PM -0800 Zack Weinberg <zack@codesourcery.com> wrote:

Both GC implementations have a couple of tuning parameters which are
currently only adjustable at compile time.  This patch makes them both
accessible through the --param mechanism.  The primary rationale is to
allow toggling the effect of GGC_ALWAYS_COLLECT at runtime, which is
handy for chasing GC bugs.  However, it also enables performance
tweaking -- for instance, a low-memory machine might do better with a
smaller setting for GGC_MIN
Have you measure the effect, if any, on compile-time performance merely
by making these things dynamic?

I fully agree with your desire to make them dynamic, but if it slows down
GC a lot, that would make me think twice.

Thanks,

--
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


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