Bhattacharyya, Siddhartha
2010-Oct-25 02:25 UTC
[R] Unable to allocate arrays of size > 2GB in 64 bit Windows 7 R
I seem Unable to allocate arrays of size > around 2GB in 64 bit Windows 7 R. There is a lot of main memory available. The memory.limit is set to the max memory available, and there is more than 10GB of that available when R returns an 'unable to allocate memory' error. Is this a limitation of R even in 64 bit Windows 7? Or is there a wY to get I've this? Thanks.
Uwe Ligges
2010-Oct-25 09:16 UTC
[R] Unable to allocate arrays of size > 2GB in 64 bit Windows 7 R
Do you use a 64-bit version of R? I suspect you are using a 32-bit build. The R-2.12.0 installer comes with binaries for both architectures. Uwe Ligges On 25.10.2010 04:25, Bhattacharyya, Siddhartha wrote:> I seem Unable to allocate arrays of size> around 2GB in 64 bit Windows 7 > R. There is a lot of main memory available. The memory.limit is set to the > max memory available, and there is more than 10GB of that available when R > returns an 'unable to allocate memory' error. Is this a limitation of R > even in 64 bit Windows 7? Or is there a wY to get I've this? > > Thanks. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Duncan Murdoch
2010-Oct-25 10:45 UTC
[R] Unable to allocate arrays of size > 2GB in 64 bit Windows 7 R
Bhattacharyya, Siddhartha wrote:> I seem Unable to allocate arrays of size > around 2GB in 64 bit Windows 7 > R. There is a lot of main memory available. The memory.limit is set to the > max memory available, and there is more than 10GB of that available when R > returns an 'unable to allocate memory' error. Is this a limitation of R > even in 64 bit Windows 7? Or is there a wY to get I've this?There's currently a limit of 2^31-1 in the length of a vector in all versions, so that's the most entries you can have in a matrix as well. The data in each entry is usually more than one byte, so the total size of allocation can be much bigger than 2 GB, but the number of entries can't. Duncan Murdoch