Skip to content
Prev 58 / 585 Next

memory over load?

On Thu, 2 Aug 2007, FZ wrote:

            
Yes, running gc() does affect the results of memory.size(), and running it more than once may have an effect, because there are three levels of garbage collection.

However, a highest-level garbage collection is always done before R gives up on allocating memory.  If you run out of memory in R, adding gc() calls to your code will not help. The original question was about running out of memory.

     -thomas




Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle