[R] Memory.limit

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Jun 25 19:56:25 CEST 2004


This is on Windows only.  The units for setting are in Mb (to avoid 
overflow problems above 2Gb).


On Fri, 25 Jun 2004 partha_bagchi at hgsi.com wrote:

> I am playing with memory limits and trying to understand how R allocates 
> and increases available memory.

This is not the setting for that.  This controls the internal malloc's 
limits.

> Here is what I have:
> 
> > memory.limit()
> [1] 536068096
> > memory.limit(size = memory.limit()*2)
> Error in memory.size(size) : cannot decrease memory limit
> > memory.limit(size = 1024^3)
> Error in memory.size(size) : cannot decrease memory limit
> > memory.limit(size = 1073741824)
> Error in memory.size(size) : cannot decrease memory limit
> >
> > version
>          _ 
> platform i386-pc-mingw32
> arch     i386 
> os       mingw32 
> system   i386, mingw32 
> status 
> major    1 
> minor    9.1 
> year     2004 
> month    06 
> day      21 
> language R 
> >

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list