Re: [R] gc() shrinks with multiple iterations

About this list Date view Thread view Subject view Author view

From: Thomas Lumley (tlumley@u.washington.edu)
Date: Wed 14 Mar 2001 - 02:01:05 EST


Message-ID: <Pine.A41.4.33.0103130758310.112162-100000@homer35.u.washington.edu>

On Mon, 12 Mar 2001, Andrew Perrin wrote:

> Is it expected behavior for gc() to return shrinking values as it gets
> called multiple times? Here's what I've got:
>

Yes, it's part of the new memory management. R can now expand or contract
its heap dynamically, so when memory use decreases the spare memory will
be released back to the operating system. The operating system typically
won't take it, but it will be available for .C code to malloc(), and
if it remains unused a competent operating system will probably swap it to
disk.

        -thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:36 EST