[R] problems with memory allocation

Glenn Stone Glenn.Stone at cmis.csiro.au
Fri Oct 22 04:32:35 CEST 1999


We had some problems (not with R) on a DEC Alpha 4100, that has 2Gb of 
ram. It turned out that some hard limits were set that restricted the
amount of actual (and virtual) memory a process could address. (You
can use limit and limit -h to check all these in csh or tcsh).

Im assuming you are using digital unix?

In the end we needed to rebuild a kernel with some increased

The parameters we changed in the kernel config file were maxdsiz and
maxvas (and mapentries for other reasons). This may or may not solve
your problems! If anyone knows how to do this without rebuilding a
kernel Id love to know.....


>>>>> "Manuel" == Manuel  <manuel at upsa.es> writes:

    Manuel> I hope that someone has had a similar trouble and will be
    Manuel> able to help us :

    Manuel>  We , have installed the R package in a Digital
    Manuel>  Workstation with 500Mb
    Manuel> of RAM memory, running under Unix operating system. The
    Manuel> package works fine

    Manuel> but when we try to start the program with more than 120Mb,
    Manuel> (vsize
    Manuel> - - --120M) the
    Manuel> workstation refuses to allocate this memory. The message
    Manuel> that we get is: Fatal error: Could not allocate memory for
    Manuel> vector heap.

    Manuel> Someone told us that the solution was an appropiate ulimit
    Manuel> call, but when we do ulimit -a we get only a number
    Manuel> 1048576. We figure out that this number can be the data
    Manuel> segment size.  When we do ulimit -d unlimited ulimit -s
    Manuel> unlimited ulimit -m unlimited ulimit -v unlimited we get
    Manuel> the following mesage: Requested ulimit exceed hard
    Manuel> limit. We think that this mean that we have

    Manuel> no limit to the amount of memory that can be allocated.

    Manuel> We have installed the same version of the program under
    Manuel> linux (Redhat 6.0) and we were also unable to allocate
    Manuel> more than 120 M.

    Manuel> I would be very grateful if someone could let us some new
    Manuel> advise in order to solve the problem.

    Manuel> Note: I don`t know if the R package is able to allocate
    Manuel> more than 120M.  We need about 250 M of memory because
    Manuel> currently we are dealing with problems in hight dimension.
    Manuel> Manuel.

 Glenn Stone
 Analysis of Large and Complex Datasets
 CSIRO, Locked Bag 17, North Ryde, NSW 2113
 Phone:+61 2 9325 3216, Fax:+61 2 9325 3200
 Glenn.Stone at cmis.csiro.au,  http://www.nsw.cmis.CSIRO.AU/~gstone
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