jennifer.moeller-gulland at de.pwc.com
2012-Oct-11 12:45 UTC
[R] Options to extend memory limit
Dear All, at the moment I am using R for calculations of large databases. Unfortunately, R only manages to complete certain operations at some times, and not at others. I usually get the error message "cannot allocate vector of size XX" I am using the 64-bit version with Windows 7. While my computer has 8 RAM, I do have a feeling that R cannot use all of it. Searching online, I found that you can increase the memory with the options --max-mem-size/ --max-ppsize or change the environment variable R_MAX_MEM_SIZE to "allow deep recursion or large and complicated calculations to be done" Unfortunately, I am not very knowledgable yet on how to use R and I did not quite manage to use the commands successfully. Could you please tell me whether these do make sense for my case and if so how (and at what stage of the process) I can use them? Thank you very, very much in advance. Kind regards, Jennifer PricewaterhouseCoopers Aktiengesellschaft Wirtschaftsprüfungsgesellschaft Vorsitzender des Aufsichtsrates WP StB Dr. Norbert Vogelpoth Vorstandsmitglieder WP StB Prof. Dr. Norbert Winkeljohann · WP StB Dr. Peter Bartels WP StB CPA Markus Burghardt · StB Prof. Dr. Dieter Endres · WP StB Prof. Dr. Georg Kämpfer WP StB Harald Kayser · WP RA StB Dr. Jan Konerding · WP StB Andreas Menke StB Marius Möller · WP StB Martin Scholich Sitz: Frankfurt am Main - Amtsgericht Frankfurt am Main HRB 44845 Mitglied von PricewaterhouseCoopers International, einer Company limited by guarantee registriert in England und Wales ______________________________________________________________________ Diese Information ist ausschliesslich fuer den Adressaten bestimmt und kann vertrauliche oder gesetzlich geschuetzte Informationen enthalten. Wenn Sie nicht der bestimmungsgemaesse Adressat sind, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Anderen als dem bestimmungsgemaessen Adressaten ist es untersagt, diese E-Mail zu lesen, zu speichern, weiterzuleiten oder ihren Inhalt auf welche Weise auch immer zu verwenden. Wir verwenden aktuelle Virenschutzprogramme. Fuer Schaeden, die dem Empfaenger gleichwohl durch von uns zugesandte mit Viren befallene E-Mails entstehen, schliessen wir jede Haftung aus. * * * * * The information contained in this email is intended only...{{dropped:15}}
<jennifer.moeller-gulland <at> de.pwc.com> writes:> at the moment I am using R for calculations of large databases. > Unfortunately, R only manages to complete certain operations at some > times, and not at others. I usually get the error message "cannot allocate > vector of size XX" > > I am using the 64-bit version with Windows 7. While my computer has 8 RAM, > I do have a feeling that R cannot use all of it. > > Searching online, I found that you can increase the memory with the > options --max-mem-size/ --max-ppsize or change the environment variable > R_MAX_MEM_SIZE to "allow deep recursion or large and complicated > calculations to be done"I believe this may be somewhat out of date (although I don't use Windows so I'm a little rusty). If you are dealing with large databases you should almost certainly check out the High Performance Computing task view (you can google it), which recommends many approaches for dealing with Big Data.
On Thu, 11 Oct 2012 14:45:16 +0200, <jennifer.moeller-gulland at de.pwc.com> wrote:> Dear All, at the moment I am using R for calculations of large > databases. Unfortunately, R only manages to complete certain > operations at some times, and not at others. I usually get the error > message "cannot allocate vector of size XX"> I am using the 64-bit version with Windows 7. While my computer has 8 > RAM, I do have a feeling that R cannot use all of it.> Searching online, I found that you can increase the memory with the > options --max-mem-size/ --max-ppsize or change the environment > variable R_MAX_MEM_SIZE to "allow deep recursion or large and > complicated calculations to be done"> Unfortunately, I am not very knowledgable yet on how to use R and I > did not quite manage to use the commands successfully. Could you > please tell me whether these do make sense for my case and if so how > (and at what stage of the process) I can use them?Are you sure you're using the 64 bit R executable which comes with the R installation? -- Seb