[R] R-1.8.0 memory.limit()

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Oct 8 09:05:31 CEST 2003


James MacDonald wrote:

> Thanks Uwe,
> 
> What is the theoretical limit for 32 bit Windows anyway?
> BTW, --max-mem-size=2000M works (although maybe not all usable?)

I don't know the usable amount exactly, one has to look into Microsoft's 
docs. It must be a bit smaller than 2GB (differently from the problem of 
~3.7GB usable out of 4GB, because of other address spaces).

I've just looked into the sources: R calculates with integers and of 
course (too stupid I had not realized it at once) has the same 32bit 
limit! So try 2047M (last "working" one) and 2049M which becomes negative.

>>memory.limit()
> 
> [1] 2097152000
> 
> In R-1.7.1, --max-mem-size=2G *did* work (I get the same results as
> above).

In R-1.7.1  (2003-06-16) on WinNT4.0 it did *not*.

Uwe


> Jim
> 
> 
> 
> James W. MacDonald
> Affymetrix and cDNA Microarray Core
> University of Michigan Cancer Center
> 1500 E. Medical Center Drive
> 7410 CCGC
> Ann Arbor MI 48109
> 734-647-5623
> 
> 
>>>>Uwe Ligges <ligges at statistik.uni-dortmund.de> 10/07/03 12:28PM >>>
> 
> James MacDonald wrote:
> 
> 
>>Using R-1.8.0 (d/l and compiled on 2003-10-01) on WinXP, I seem to
> 
> be
> 
>>unable to determine the maximum memory allocated to R. The help
> 
> still
> 
>>says to use memory.limit(size=NA), but this returns the value NA.
>>
>>In addition, I have set --max-mem-size=2G but I run out of memory
>>somewhere around 500Mb (which is why I am trying to find out how
> 
> much
> 
>>memory is allocated). I don't have any other programs open, so I
> 
> should
> 
>>certainly be able to address more memory than that.
>>
>>Any ideas?
> 
> 
> Yes. 2GB is a bit more than the possible theoretical maximal value for
> a 
> single process on 32-bit Windows. Instead, try starting with, e.g., 
> "--max-mem-size=1700M" and you'll get
> 
>  > memory.limit()
> [1] 1782579200
> 
> Uwe Ligges
> 
> 
> 
>>TIA
>>
>>Jim
>>
>>
>>
>>James W. MacDonald
>>Affymetrix and cDNA Microarray Core
>>University of Michigan Cancer Center
>>1500 E. Medical Center Drive
>>7410 CCGC
>>Ann Arbor MI 48109
>>734-647-5623
>>
>>______________________________________________
>>R-help at stat.math.ethz.ch mailing list
>>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list