[R] memory issues
Dave Depew
ddepew at sciborg.uwaterloo.ca
Wed Apr 16 16:59:44 CEST 2008
Hi all,
I've read the R for windows FAQ and am a little confused re:
memory.limit and memory.size
to start using R 2.6.2 on WinXP, 2GB RAM, I have the command line "sdi
--max-mem-size=2047M"
Once the Rgui is open, memory.limit() returns 2047, memory.size()
returns 11.315, and memory.size(max=T) returns 19.615
Shouldn't memory.size(max=T) return 2047?
Upon running several operations involving kriging (gstat package,
original data file 3 variables, 12000 observations)
the program runs out of memory
"memory.c", line 57: can't allocate memory in function m_get()
Error in predict.gstat(fit.uk, newdata = EcoSAV.grid.clip.spxdf,
debug.level = -2, :
m_get
Immediately following this,
memory.limit() returns [1] -Inf
Warning message:
In memory.limit() : no non-missing arguments
to max; returning -Inf
memory.size() returns 24.573.
memory.size(max=T) returns 46.75
To my untrained eye, it appears that R is not being allowed access to
the full memory limit specified in the cmd line....if this is the case,
how does one ensure that R is getting access to the full allotment of RAM?
Any insight is appreciated...
> sessionInfo()
R version 2.6.2 (2008-02-08)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices datasets tcltk utils
methods base
other attached packages:
[1] maptools_0.7-7 foreign_0.8-23 gstat_0.9-43 rgdal_0.5-24
lattice_0.17-4 sp_0.9-23 svSocket_0.9-5 svIO_0.9-5
R2HTML_1.58 svMisc_0.9-5 svIDE_0.9-5
loaded via a namespace (and not attached):
[1] grid_2.6.2 tools_2.6.2
More information about the R-help
mailing list