[R] Memory management
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Tue Apr 27 15:39:13 CEST 1999
Konstantinos Euripides Vorloou <K.E.Vorloou at durham.ac.uk> writes:
> rgui --vsize 30M --nsize 1000K
> rgui --vsize 30M --nsize 2000K
> rgui --vsize 30M --nsize 3000K
> rgui --vsize 30M --nsize 4000K
>
> I try to open a matrix 8000x8000 by issuing
>
> x<-matrix(nrow=8000,ncol=8000)
>
> I always get the following message:
>
> Error: heap memory (20480 Kb) exhausted [needed 250000 Kb more]
it's --vsize that controls the heap...
> It's always 250000 Kb less. Although gc() reports the memory management
> as
> expected (correctly ?), increased every time I invoke R with greater
> vsize,nsize
> params. My matrix should hold roughly 1 Meg of memory.
> Is this correct ?
I get 8000*8000*8 = 512000000 bytes, alias 488Meg...
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list