[R] memory management

Sam Steingold sds at gnu.org
Fri Feb 10 03:30:04 CET 2012


> * Florent D. <sybqry at tznvy.pbz> [2012-02-09 19:26:59 -0500]:
>
>> m0 <- memory.size()
>> Mb.size  <- function(x)print(object.size(x), units="Mb")

indeed, these are very useful, thanks.

ls reports these objects larger than 100k:

behavior : 390.1 Mb
mydf : 115.3 Mb
nb : 0.2 Mb
pl : 1.2 Mb

however, top reports that R uses 1.7Gb of RAM (RSS) - even after gc().
what part of R is using the 1GB of RAM?

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://www.childpsy.net/ http://honestreporting.com http://dhimmi.com
http://jihadwatch.org http://americancensorship.org http://camera.org
Money does not buy happiness, but it helps to make unhappiness comfortable.



More information about the R-help mailing list