Skip to content

Is there any help for "Cannot allocate vector size of xxxKB"

3 messages · Saikat DebRoy, Han Lai, Mark Myatt

#
Han> Hi, As I run R long enough, for example if I keep running
  Han> different glm() models and each model has 500 bootsraps, I
  Han> alway get the error message on "cannot allocat vector size of
  Han> xxxKB".  I have 64MB of RAM and run Windows98.  Is there any
  Han> hope to fix it other than cut my bootstrap short.

That error message means R can not allocate more memory. So unless you
add more memory to your system there is no other way.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Hi,

As I run R long enough, for example if I keep running different glm()
models and each model has 500 bootsraps, I alway get the error message
on "cannot allocat vector size of xxxKB".  I have 64MB of RAM and run
Windows98.  Is there any hope to fix it other than cut my bootstrap
short.

Thanks
Han

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Han Lai <hlai at whsun1.wh.whoi.edu> writes:
It would help to know when the error occurs ... I guess somewhere in
that 500 bootstaps ... I suppose that you are saving some of the output
of glm() between samples. Perhaps you are saving a whole glm() object
each time. glm() objects which can be very big. You might have better
luck if you extract and save only the information you want.

An alternative would be to save output incrementally to a file and rm()
temporary objects between fits.

Mark

--
Mark Myatt


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