[R-SIG-Mac] Memory error

Simon Urbanek simon.urbanek at r-project.org
Mon Nov 28 01:31:57 CET 2005

On Nov 27, 2005, at 4:37 PM, Alan Olav Bergland wrote:

> When I attempt to run a rather hefty lme model, I get the following
> error message:
>> clinal7.lme<-lme(ovn~tlc+geno+log(food), clinal, random=~tlc+geno
> +log(food)|block/lat)
> Error in logLik.lmeStructInt(lmeSt, lmePars) :
> 	Calloc could not allocate (500237956 of 8) memory
> R(1049,0xa000ed68) malloc: *** vm_allocate(size=4001906688) failed
> (error code=3)
> R(1049,0xa000ed68) malloc: *** error: can't allocate region
> R(1049,0xa000ed68) malloc: *** set a breakpoint in szone_error to  
> debug
> I'm running R Version 2.2.0  (2005-10-06 r35749) on a iMac running  
> OS  10.4.3
> Any suggestions?

Reformulate your problem.
The lme you run with that data attempts to allocate 4GB of memory  
which is a bit too much. Even if you put 8GB in a G5 and run 64-bit  
version of R it's likely to run out of memory or to take forever ...  
Maybe someone will be able to help you to solve your problem in a  
different way if you specify more precisely what you are trying to do  
(including size of the data etc.).


More information about the R-SIG-Mac mailing list