[R] strange behaviour of memory management

From: Meinhard Ploner <meinhard.ploner_at_soundinvest.net>
Date: Thu 20 Oct 2005 - 18:27:43 EST

Hi all!
My system: R 2.1.1, Mac OS X 10.4.2.

I have a very memory-consuming job for R, consisting of a function calling some other functions, working often with matrices of size 100.000 x 300. If I call the job directly after starting R the job takes overall 40min, however only 7min of process time. I assume the large difference is through memory-handling which doesn't count as process time. If i start the job after I make some shorter runs, some programming, then the job stops by reaching a memory limit. It seems that R doesn't release all the memory even if it don't adds global objects.

Further I'm interesited if for a UNIX-derivate like Mac OS X gc() or rm(localObjects) (used in local functions) make any difference/ advantage??

Meinhard Ploner
Erste Bank

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Oct 20 18:35:23 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:46 EST