This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


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

Re: memory usage


>>>>> "Lynn" == Lynn Winebarger <owinebar@free-expression.org> writes:

Lynn> ... grow to 183 megs! 

It sounds very much like you have been bitten by the heap growth
algorithm.

The default algorithm is (when the need to expand the heap has been
identified) to allocate a new segment twice as big as the previous
segment, which isn't so hot when you have a medium sized requirement
on heap size.

Check out the definition of SCM_EXPHEAP in gc.c.

You can also see the current set of active segments by calling `gc-stats'.


---------------------------+--------------------------------------------------
Christian Lynbech          | Ericsson Telebit A/S                       
Fax:   +45 8628 8186       | Fabrikvej 11, DK-8260 Viby J
Phone: +45 8628 8177 + 28  | email: chl@tbit.dk --- URL: http://www.tbit.dk
---------------------------+--------------------------------------------------
Hit the philistines three times over the head with the Elisp reference manual.
                                        - petonic@hal.com (Michael A. Petonic)

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