Hi, I have a problem with the memory size within R. I would like to know if there is any may for getting back free memory during a R session. I've tried with rm and gc but it still craches. I am working on windows R1.3.1. I know I have big datasets, but during my study, some results are temporary, and I would like to get back the memory allocated to this temporary object as soon as I remove them. But, as I 've said the garbage collector seems to have no effect on my memory management. Please, I wait for help, Regards, Isabelle Zabalza-Mezghani
On Thu, 16 Oct 2003, ZABALZA-MEZGHANI Isabelle wrote:> I have a problem with the memory size within R. I would like to know if > there is any may for getting back free memory during a R session. I've tried > with rm and gc but it still craches. I am working on windows R1.3.1.Perhaps trying to upgrade your R version first? R 1.3.1 is kind of old now.. -- Cheers, Kevin --------------------------------------------------------------- Ko-Kang Kevin Wang Master of Science (MSc) Student SLC Tutor and Lab Demonstrator Department of Statistics University of Auckland New Zealand Homepage: http://www.stat.auckland.ac.nz/~kwan022 Ph: 373-7599 x88475 (City) x88480 (Tamaki)
ZABALZA-MEZGHANI Isabelle wrote:> Hi, > > I have a problem with the memory size within R. I would like to know if > there is any may for getting back free memory during a R session. I've tried > with rm and gc but it still craches. I am working on windows R1.3.1. > I know I have big datasets, but during my study, some results are temporary, > and I would like to get back the memory allocated to this temporary object > as soon as I remove them. But, as I 've said the garbage collector seems to > have no effect on my memory management. >1) Update R. 1.3.1 is over two years old. 2) What do you mean by "crashes"? Is the behaviour the same under the latest version of R? 3) R can release memory, but it can't force the operating system to start using it again. gc() only speeds up the release of memory by R; it doesn't change what the operating system does. 4) Windows is reported to have more trouble with the management of large memory than Unix or Unix-like systems. Have you tried the same under Solaris / FreeBSD / Linux? Hope that helps Jason -- Indigo Industrial Controls Ltd. http://www.indigoindustrial.co.nz 64-21-343-545 jasont at indigoindustrial.co.nz