[R] Heap size

Prof Brian D Ripley ripley at stats.ox.ac.uk
Fri Apr 16 14:22:02 CEST 1999


On Fri, 16 Apr 1999, Konstantinos Euripides Vorloou wrote:

> I am trying to create a matrix 8000x8000 but cannot
> make R work properly with:
> 
> rgui --vsize 30 --nsize 1000000
> 
> I can't pass an nsize value more than 1000000.
> 
> What are the limits uder windows 98 ?

It is not a question of limits under Windows 98, It is a question of limits
under R.  Which version is this?  (You should be using 30M not 30
in a current version.)

The nsize limit is currently 20,000,000 in both Unix and gnuwin32 versions,
but you can increase it by re-compiling. You are trying to create a 488Mb
matrix (if real) and I would have thought heap space not cons cells was
your problem. That has a limit of 2048M.

If I try

 matrix(0, 8000, 8000) -> jj

I get

Error: heap memory (30720 Kb) exhausted [needed 500000 Kb more]
       See "help(Memory)" on how to increase the heap size.



-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list