[R-SIG-Mac] G5 memory problems

Thomas Lumley tlumley at u.washington.edu
Tue May 10 18:10:32 CEST 2005


On Tue, 10 May 2005, Simon Urbanek wrote:
>
> The CRAN binary is 32-bit, so in theory R can allocate up to a bit below 4GB 
> (AFAIR my test showed something around 3.5GB). Above R is asking for almost 
> 1GB which is a lot given that it must be contiguous space in RAM so I bet 
> you're simply running out of (non-fragmented) memory (that 1GB is just one 
> object - who knows how many copies fastICA actually creates ...). You could 
> run some profiling to see how much memory is really used - it could be even 
> more than your 4GB ..
>

Note that in 2.1.0, gc() now shows maximum allocation inside R since the 
last call to gc(reset=TRUE), so if the memory is being allocated by R 
(rather than direct C calls to malloc()) you can easily do this sort of 
profiling.

 	-thomas



More information about the R-SIG-Mac mailing list