[R] memory allocation

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Sep 19 10:18:54 CEST 2002


"Huntsinger, Reid" wrote:
> 
> I don't have an R on Windows but I think the memory limits are specified in
> bytes, not megabytes. 

Not completely. In the call, you have to *specify* it in MegaBytes, it
*reports* in Bytes!


> That's the case for mem.limits at least, as well as
> the --max-vsize option.

--max-vsize is to limit the memory usage, there is no upper vsize limit
as a default.
Only the whole memory usage is limited, as mentioned in the docs. This
limit can be raised by 
starting R using the command line option --max.mem.size on windows, as
well mentioned in the docs, particularly the R for Windows FAQs.
 
Uwe Ligges


> Reid Huntsinger
> 
> -----Original Message-----
> From: Yang, Richard [mailto:dyang at nrcan.gc.ca]
> Sent: Wednesday, September 18, 2002 9:55 AM
> To: R-Help (E-mail)
> Subject: [R] memory allocation
> 
> Dear all;
> 
>         I  experienced a memory allocation error while running gnls:
> 
> > wBlplfe.wc <- update(wBlplfe.w, corr=corAR1())
> Error: cannot allocate vector of size 37950 Kb
> In addition: Warning message:
> Reached total allocation of 256Mb: see help(memory.size)
> 
>         Increased memory limit to 512, 640 M, the allocation error
> persisted:
> 
> > memory.limit(512)
> NULL
> > wBlplfe.wc <- update(wBlplfe.w, corr=corAR1())
> Error: cannot allocate vector of size 37950 Kb
> > memory.limit(640)
> NULL
> > wBlplfe.wc <- update(wBlplfe.w, corr=corAR1())
> Error: cannot allocate vector of size 37950 Kb
> 
>         I have 1.3 GB memory. The windows task manager indicates that I used
> 666,956K out of 1,749,592K real and virtual memory. Using memory.limit()
> does not seem to solve the memory allocation issue. Any suggestion to solve
> the allocation problem? I'm using R 1.5.1 on W2K.
> 
>         TIK,
> 
> Richard
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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