[R] Memory problem

Adaikalavan Ramasamy ramasamy at stats.ox.ac.uk
Tue Oct 1 19:04:15 CEST 2002


Try memory.limit(512) which makes the computer think you got more than you
have. However I found this to slow the whole compluter down instead, so
the must be a problem with this fudge.

I would suggest for you to have a look the .RData file. If it is too
large, then you probably have unwanted objects. Best to remove these using
rm(). You can of course use a processor with more RAM or making your codes
memory efficient (using C etc).

Does anyone have a better solution ? I think it would be good to have a
webpage regarding this problem as this seems to be a main problem with
newbies such as myself wh have successfully used inefficient codes or
extremely long codes coupled with alarge datamatrix to play with. Just a
suggestion. Thanks.

On Mon, 30 Sep 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 and if
> there is any way of allocating more memory to R.
>
> Many thanks
> Laura
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

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