Skip to content

Memory R and Windows2000

2 messages · demolombe, Brian Ripley

#
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Fri, 8 Nov 2002, demolombe wrote:

            
Not if there were no objects there.  You may need to call gc() repeatedly
to see a reduction in the limits.
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.