Luca.Toldo@merck.de
2002-Jan-18 16:25 UTC
[R] [R 1.4] Cannot allocate vector of length 1073741824
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 I have compiled R 1.4 myself, using the default ./configure option. I have the feeling that perhaps I shall recompile it ... any suggestion is welcome. Regards and thanks with compliments for keeping going the marvellous R system. Luca -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thomas Lumley
2002-Jan-18 16:48 UTC
[R] [R 1.4] Cannot allocate vector of length 1073741824
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 > 1073741824This 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Reasonably Related Threads
- [R-1.4.0] minimum spanning tree of large ontology
- [R 1.4] WARNING: --max-vsize=8000M : too large and ignored
- cannot allocate a vector with 1920165909 length
- help: cannot allocate vector of length 828310236
- Panel Data Analysis (PLM) - Fixed Effects - "cannot allocate vector of length"