Skip to content

Unable to allocate arrays of size > 2GB in 64 bit Windows 7 R

3 messages · Bhattacharyya, Siddhartha, Uwe Ligges, Duncan Murdoch

#
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.
#
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:
#
Bhattacharyya, Siddhartha wrote:
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