---------- Forwarded message ---------- From: Emiliano Zapata <ezapataika@gmail.com> Date: Sun, May 20, 2012 at 12:09 PM Subject: To: R-help@r-project.org Hi, I have a 64 bits machine (Windows) with a total of 192GB of physical memory (RAM), and total of 8 CPU. I wanted to ask how can I make R make use of all the memory. I recently ran a script requiring approximately 92 GB of memory to run, and got the massage: cannot allocate memory block of size 2.1 Gb I read on the web that if you increase the memory you have to reinstall R; would that be enough. Could I just increase the memory manually. Take you for any comments, or links on the web. EZ [[alternative HTML version deleted]]
Try memory.limit(92000) sent from my HTC On May 21, 2012 1:27 AM, "Emiliano Zapata" <ezapataika@gmail.com> wrote:> ---------- Forwarded message ---------- > From: Emiliano Zapata <ezapataika@gmail.com> > Date: Sun, May 20, 2012 at 12:09 PM > Subject: > To: R-help@r-project.org > > > Hi, > > I have a 64 bits machine (Windows) with a total of 192GB of physical memory > (RAM), and total of 8 CPU. I wanted to ask how can I make R make use of all > the memory. I recently ran a script requiring approximately 92 GB of memory > to run, and got the massage: > > cannot allocate memory block of size 2.1 Gb > > > > I read on the web that if you increase the memory you have to reinstall R; > would that be enough. Could I just increase the memory manually. > > > Take you for any comments, or links on the web. > > > EZ > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
At the point in time that you get the error message, how big are the objects that you have in memory? What does 'memory.size()' show as being used? What does 'memory.limit()' show? Have you tried using 'gc()' periodically to do some garbage collection? It might be that you memory is fragmented. You need to supply some additional information. On Sun, May 20, 2012 at 12:09 PM, Emiliano Zapata <ezapataika at gmail.com> wrote:> ---------- Forwarded message ---------- > From: Emiliano Zapata <ezapataika at gmail.com> > Date: Sun, May 20, 2012 at 12:09 PM > Subject: > To: R-help at r-project.org > > > Hi, > > I have a 64 bits machine (Windows) with a total of 192GB of physical memory > (RAM), and total of 8 CPU. I wanted to ask how can I make R make use of all > the memory. I recently ran a script requiring approximately 92 GB of memory > to run, and got the massage: > > ?cannot allocate memory block of size 2.1 Gb > > > > I read on the web that if you increase the memory you have to reinstall R; > would that be enough. Could I just increase the memory manually. > > > Take you for any comments, or links on the web. > > > EZ > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it.
http://cran.r-project.org/bin/windows/base/rw-FAQ.html#There-seems-to-be-a-limit-on-the-memory-it-uses_0021 Have you read the documentation? --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. Emiliano Zapata <ezapataika at gmail.com> wrote:>---------- Forwarded message ---------- >From: Emiliano Zapata <ezapataika at gmail.com> >Date: Sun, May 20, 2012 at 12:09 PM >Subject: >To: R-help at r-project.org > > >Hi, > >I have a 64 bits machine (Windows) with a total of 192GB of physical >memory >(RAM), and total of 8 CPU. I wanted to ask how can I make R make use of >all >the memory. I recently ran a script requiring approximately 92 GB of >memory >to run, and got the massage: > > cannot allocate memory block of size 2.1 Gb > > > >I read on the web that if you increase the memory you have to reinstall >R; >would that be enough. Could I just increase the memory manually. > > >Take you for any comments, or links on the web. > > >EZ > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.
You are on a 64-bit machine, but are you using 64-bit R? Are you using memory intensive constructs like those discussed in Circle 2 of 'The R Inferno'? http://www.burns-stat.com/pages/Tutor/R_inferno.pdf Pat On 20/05/2012 17:09, Emiliano Zapata wrote:> ---------- Forwarded message ---------- > From: Emiliano Zapata<ezapataika at gmail.com> > Date: Sun, May 20, 2012 at 12:09 PM > Subject: > To: R-help at r-project.org > > > Hi, > > I have a 64 bits machine (Windows) with a total of 192GB of physical memory > (RAM), and total of 8 CPU. I wanted to ask how can I make R make use of all > the memory. I recently ran a script requiring approximately 92 GB of memory > to run, and got the massage: > > cannot allocate memory block of size 2.1 Gb > > > > I read on the web that if you increase the memory you have to reinstall R; > would that be enough. Could I just increase the memory manually. > > > Take you for any comments, or links on the web. > > > EZ > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Patrick Burns pburns at pburns.seanet.com twitter: @portfolioprobe http://www.portfolioprobe.com/blog http://www.burns-stat.com (home of 'Some hints for the R beginner' and 'The R Inferno')