[R] [R 1.4] Cannot allocate vector of length 1073741824

Thomas Lumley tlumley at u.washington.edu
Fri Jan 18 17:48:07 CET 2002


On Fri, 18 Jan 2002 Luca.Toldo at merck.de wrote:

> dear All,
> I am operating on an SGI machine with 16 GB memory, and I have unlimited
> resource access.
>
> However, when I run the following command
>
> x<-matrix(NA,32768,32768)
>
> I get the following error
>
> Error in matrix(NA,32768,32768) : cannot allocate vector of length
> 1073741824

This is asking for (probably) 4Gb of memory, which is quite a lot even
with 16Gb available.  The new (post1.2) memory manager should in principle
be able to allocate all the memory you can address, as long as no object
has more than 2^31 entries and there are no more than 2^31 objects, but I
don't think all the int vs long vs pointer details have been chased down
yet. I haven't heard of anyone using more than 2Gb for R, but if there is
anyone they are probably subscribed to this list...

	-thomas

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