[R] Memory problem

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Sep 30 11:27:51 CEST 2002


Bayesianbay at aol.com wrote:
> 
> Dear list
> 
> I am running a data simulation, which is needed to simulate up to a million
> pieces of data.
> 
> I am getting the following memory error :
> 
> Error: cannot allocate vector of size 11 Kb
> In addition: Warning message:
> Reached total allocation of 255Mb: see help(memory.size)
> 
> I am running a PC with 256Mb RAM and R seems to be taking up the entire
> allocation and is still not able to do the simulation.
> Could anybody tell me how much RAM is needed for this sort of process 

It highly depends on the function / data you are using ...

> and if there is any way of allocating more memory to R.

Looks like you are on windows. See ?Memory, particularly for the command
line option --max-mem-size.
But if you are going to use more memory for R than you have physically
in your PC, you machine will begin to swap memory around --- and that's
extremely slow!

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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