[R] memory allocation error

M. Edward (Ed) Borasky znmeb at aracnet.com
Thu Mar 22 01:07:32 CET 2001


On Wed, 21 Mar 2001, Antonio [iso-8859-1] Rodríguez Verdugo wrote:

> Hi,
>
> I have recently installed R-1.2.2 for windows (16MB RAM, P-166) and I
> getting the following message after processing my data (6 variables and
> 1200 observations):
>
> >Error: cannot allocate vector of size 4 Kb
> >In addition: Warning message:
> >Reached total allocation of 15Mb: see help(memory.size)
>
> Then, the program close.
>
> With the last version, 1.1.1 (I think) I didn't have this kind of problem.
>
>
>  I've tried to increase memory through:
>
> rgui.exe --vsize 16M --nsize 1000k
>
> but nothing
>
> Thanks in advance,
>
> Antonio
> Antonio Rodríguez Verdugo
> Huelva, Spain
> rod.chav at hsoft.es

I was *just* going to post this same thing myself! My environment is a 400
MHz P III running Windows 2000 Professional, and I get the error at 127 MB on
my 128 MB machine :-). And I get the same thing on my 192 MB machine at home.
I am doing a "read.csv" on a 15 MB "CSV" file. What's even more interesting is
that this consumes so much memory that "q()" stops working!! I have to kill it
with the Task Manager. I haven't checked to see how big my pagefile is yet,
but it's obviously checking how much RAM is installed and hitting some kind of
wall there. I have some bigger Linux boxes available that I can try this
one on, so I may be able to get it to completion without waiting for the
latest R or trimming my data set. I can't do much about the rows, but it's
easy for me to drop unneeded columns; the raw data is coming from Microsoft
Access.
---------------------------------------------------------------------------
R is a collaborative project with many contributors.
Type `contributors()' for more information.

Type `demo()' for some demos, `help()' for on-line help, or
`help.start()' for a HTML browser interface to help.
Type `q()' to quit R.

[Previously saved workspace restored]

> ls()
 [1] "b"            "l"            "last.warning" "monsample"    "p3.500"
 [6] "p4.500"       "p4.667"       "reg"          "regP0"        "regP1"
[11] "regP2"        "regP3"
> xxxxxx.p4.500.raw<-read.csv("xxxxxx.csv")
> yyyyyy.p2.667.raw<-read.csv("yyyyyy.csv")
Error: vector memory exhausted (limit reached?)
In addition: Warning message:
Reached total allocation of 127Mb: see help(memory.size)
Lost warning messages
> q()
Error: vector memory exhausted (limit reached?)
In addition: Warning message:
Reached total allocation of 127Mb: see help(memory.size)
Lost warning messages
>
---------------------------------------------------------------------------
znmeb at aracnet.com (M. Edward Borasky) http://www.aracnet.com/~znmeb

"I'm not a saxophone, but I play one on TV!" -- Bill Clinton

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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