Skip to content
Prev 5385 / 63421 Next

Freeing memory used by R.

On Wed, 18 Apr 2001, Don Wingate wrote:

            
In general you can't release memory to the operating system: under most
malloc's and most OS's the memory you free() just stays allocated.  You
might be able to unload the R dll; I don't know what effect that has under
Windows.

However, any halfway competent virtual memory system (which nowadays does
include Windows) will end up paging out the memory if it is never used, so
it shouldn't help much even if you could release all the memory.

	-thomas

Thomas Lumley			Asst. Professor, Biostatistics
tlumley@u.washington.edu	University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._