Hello, when using: rm(list=ls(all=TRUE)) and gc() command , and looking at the memory used by Rgui.exe in window2000 there is no change. this is strange . Actually I need to be sure that memory is given back to the system because the users of the application I wrote under R are opening and closing big files of data; can I rely on the gc() function under win2k? Vincent Demolombe -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Memory R and Windows2000
2 messages · demolombe, Brian Ripley
On Fri, 8 Nov 2002, demolombe wrote:
Hello, when using: rm(list=ls(all=TRUE)) and gc() command , and looking at the memory used by Rgui.exe in window2000 there is no change. this is strange .
Not if there were no objects there. You may need to call gc() repeatedly to see a reduction in the limits.
Actually I need to be sure that memory is given back to the system because the users of the application I wrote under R are opening and closing big files of data; can I rely on the gc() function under win2k?
No, nor anywhere else. It only tells you about internal allocations. You could try ?memory.size to find out what you really want. It's not reasonable to expect applications to give memory back to the OS nor for the OS to reuse it. It is _virtual_ memory we are talking about here. There is quite a lot of documentation in the sources about memory management (e.g. in memory.c and in the Windows CHANGE file). Do search it out.
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._