[R] Difficulty Increasing R memory on Windows 32-Bit

Uwe Ligges ligges at statistik.tu-dortmund.de
Tue Jul 28 19:32:00 CEST 2009



Dan Fleder wrote:
> I'm having difficulty increasing the memory R can access above 2Gb and wasn't able to resolve this from the R Windows FAQ. For reference, I'm running Windows XP, 32bit, Service Pack 2 on a machine with 4GB RAM.
> 
> Following the FAQ, I set the --max-mem-size flag to 2800Mb. However, when I start R, I get the error: "WARNING --max-mem-size=2800M: too large and taken as 2047M." 
> 
> The R Windows FAQ says Rgui.exe supports 3Gb per process under "suitably enabled versions of 32-bit windows." So, the above should be fine if Windows is "suitably enabled." The FAQ also says how to enable Windows this way, and it links to a Microsoft page about setting Windows's /3GB switch. From what I read, however, this switch is already active on Windows XP Service Pack 2 (what I'm running) -- so Windows should already be "enabled" for running R at above 2Gb. (In fact adding the /3GB switch throws an error for me).
> 
> Could anyone offer a suggestion for getting R to use more than 2GB of memory?


No, I tried with the 3GB switch once, but in that case my Windows 
behaves rather unstable - and that's probably the reason why MS has not 
enabled it by default.

Uwe Ligges



> Thanks very much for any ideas,
> Dan
> 
> 
> 
> 
> 
>       
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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.




More information about the R-help mailing list