Re: [R] R memory issues

2014-11-12 Thread ce
you may try to increase virtual memory :

http://windows.microsoft.com/en-us/windows/change-virtual-memory-size#1TC=windows-7

-Original Message-
From: eliza botto [eliza_bo...@hotmail.com]
Date: 11/11/2014 02:35 PM
To: r-help@r-project.org r-help@r-project.org
Subject: [R] R memory issues

Dear useRs,
I have this funny thing going on with me since morning. I am 32 bit window 7 
system with 4 GB RAM(2.95 usable). I tried to run a code on it but when I tried 
to convert dataframe to matrix by using the following code
mat-matrix(as.numeric(unlist(SFI)),nrow=nrow(SFI))
*where SFI is my dataframe.
an error came up, Error: cannot allocate vector of size 237.3 Mb
I tried to increase memory by using memory.limit(2500) but to no effect. 
Kindly help me out on it as you always do.
Thanks,
Eliza 
[[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.

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


Re: [R] R memory issues

2014-11-12 Thread Prof Brian Ripley

On 12/11/2014 15:18, ce wrote:

you may try to increase virtual memory :

http://windows.microsoft.com/en-us/windows/change-virtual-memory-size#1TC=windows-7


That is a very low plausibility for the error.  See the discussion in 
the FAQ: 
http://cran.r-project.org/bin/windows/base/rw-FAQ.html#There-seems-to-be-a-limit-on-the-memory-it-uses_0021 
and the discussion of fragmentation in ?Memory-limits .


As others have said: get a 64-bit OS -- the only 32-bit one I have seen 
for several years now is on an old Windows sub-notebook with an Atom CPU.




-Original Message-
From: eliza botto [eliza_bo...@hotmail.com]
Date: 11/11/2014 02:35 PM
To: r-help@r-project.org r-help@r-project.org
Subject: [R] R memory issues

Dear useRs,
I have this funny thing going on with me since morning. I am 32 bit window 7 
system with 4 GB RAM(2.95 usable). I tried to run a code on it but when I tried 
to convert dataframe to matrix by using the following code
mat-matrix(as.numeric(unlist(SFI)),nrow=nrow(SFI))
*where SFI is my dataframe.
an error came up, Error: cannot allocate vector of size 237.3 Mb
I tried to increase memory by using memory.limit(2500) but to no effect.
Kindly help me out on it as you always do.
Thanks,
Eliza   
[[alternative HTML version deleted]]




--
Brian D. Ripley,  rip...@stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford
1 South Parks Road, Oxford OX1 3TG, UK

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


[R] R memory issues

2014-11-11 Thread eliza botto
Dear useRs,
I have this funny thing going on with me since morning. I am 32 bit window 7 
system with 4 GB RAM(2.95 usable). I tried to run a code on it but when I tried 
to convert dataframe to matrix by using the following code
mat-matrix(as.numeric(unlist(SFI)),nrow=nrow(SFI))
*where SFI is my dataframe.
an error came up, Error: cannot allocate vector of size 237.3 Mb
I tried to increase memory by using memory.limit(2500) but to no effect. 
Kindly help me out on it as you always do.
Thanks,
Eliza 
[[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.


Re: [R] R memory issues

2014-11-11 Thread Uwe Ligges



On 11.11.2014 20:32, eliza botto wrote:

Dear useRs,
I have this funny thing going on with me since morning. I am 32 bit window 7 
system with 4 GB RAM(2.95 usable). I tried to run a code on it but when I tried 
to convert dataframe to matrix by using the following code
mat-matrix(as.numeric(unlist(SFI)),nrow=nrow(SFI))
*where SFI is my dataframe.
an error came up, Error: cannot allocate vector of size 237.3 Mb
I tried to increase memory by using memory.limit(2500) but to no effect.


So there is no memory left. Clean uo, use a 64-bit OS, ..

Best,
Uwe Ligges




Kindly help me out on it as you always do.
Thanks,
Eliza   
[[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.



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


Re: [R] R memory issues

2014-11-11 Thread Ista Zahn
The short answer is get a bigger computer or find a way to do the
computation using less memory.

Best,
Ists
On Nov 11, 2014 2:34 PM, eliza botto eliza_bo...@hotmail.com wrote:

 Dear useRs,
 I have this funny thing going on with me since morning. I am 32 bit window
 7 system with 4 GB RAM(2.95 usable). I tried to run a code on it but when I
 tried to convert dataframe to matrix by using the following code
 mat-matrix(as.numeric(unlist(SFI)),nrow=nrow(SFI))
 *where SFI is my dataframe.
 an error came up, Error: cannot allocate vector of size 237.3 Mb
 I tried to increase memory by using memory.limit(2500) but to no effect.
 Kindly help me out on it as you always do.
 Thanks,
 Eliza
 [[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]]

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


Re: [R] R Memory Issues

2012-05-22 Thread Emiliano Zapata
As a continuation to my original question, here is the massage that I get:

Error in glm.fit(x = structure(c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,  :
  cannot allocate memory block of size 2.1 Gb

The model glm.fit is a logistic type (in the family of GLM) model. Maybe
this is not enough information; again!, but some feedback will be
appreciated. To me the issues appears to be associated with manipulation of
large dataset. Howeverl the algorithm runs fine in Unix; but not in Windows
(64 bits windows 7).

EZ

On Sun, May 20, 2012 at 4:09 PM, Emiliano Zapata ezapata...@gmail.comwrote:

 Already then, thank you everyone. This information was extremly useful,
 and I'll do a better job on the web next time.

 On Sun, May 20, 2012 at 2:10 PM, Prof Brian Ripley 
 rip...@stats.ox.ac.ukwrote:

 On 20/05/2012 18:42, jim holtman wrote:

 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.


 Either this is a 32-bit version of R in which case the wrong version is
 being used, or your advice is wrong: there are no credible fragmentation
 issues (and no need to use gc()) on a 64-bit build of R.

 But, we have a posting guide, we require 'at a minimum information', and
 the OP failed to give it to us so we are all guessing, completely
 unnecessarily.



 On Sun, May 20, 2012 at 12:09 PM, Emiliano Zapataezapata...@gmail.com
  wrote:

 -- Forwarded message --
 From: Emiliano Zapataezapata...@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-helphttps://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/**
 posting-guide.html http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.






 --
 Brian D. Ripley,  rip...@stats.ox.ac.uk
 Professor of Applied Statistics,  
 http://www.stats.ox.ac.uk/~**ripley/http://www.stats.ox.ac.uk/%7Eripley/
 University of Oxford, Tel:  +44 1865 272861 (self)
 1 South Parks Road, +44 1865 272866 (PA)
 Oxford OX1 3TG, UKFax:  +44 1865 272595




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


Re: [R] R Memory Issues

2012-05-22 Thread Paul Johnson
Dear Emiliano:

When they say to read the posting guide, mostly they mean read the
posting guide. But I'll tell you the short version.

1. Include a full runable R program that causes the trouble you are
concerned about.  Include the data or a link to the data, usually the
smallest possible example is what they want.  They don't want 1000
lines of your dissertation project, they want 10 lines needed to
produce the problem you are concerned about.

The point here is this: Don't make people guess about what commands
you ran or what your data actually was. You are going to get the
attention of these folks one time, and you waste it by not reading the
guide and not giving the full details.

2. Include the output from sessionInfo() whenever you ask a question
of this sort.


 sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8   LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=C LC_NAME=C
 [9] LC_ADDRESS=C   LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics  grDevices utils datasets  methods   base


I can tell  you my best guess about what is wrong: I suspect you have
a corrupted R install. If you had given us the full working code, I
could have tested that theory. But, alas, I can't.

Why do I think so? I've taught a course this term with 45 students and
about 1 time per week, a student would turn up with that can't
allocate vector... error you see.  On Windows, sometimes it seems the
problem is due to installing R as an administrator and then trying to
update some packages as a non-administrator.  In one really
frustrating case, student has installed car both as admin and as the
user, and the one that was at the front of the search path was
damaged, but we kept removing and re-installing the other one and
nothing was fixed.  Until I noticed there were 2

pj

On Tue, May 22, 2012 at 11:40 AM, Emiliano Zapata ezapata...@gmail.com wrote:
 As a continuation to my original question, here is the massage that I get:

 Error in glm.fit(x = structure(c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,  :
  cannot allocate memory block of size 2.1 Gb

 The model glm.fit is a logistic type (in the family of GLM) model. Maybe
 this is not enough information; again!, but some feedback will be
 appreciated. To me the issues appears to be associated with manipulation of
 large dataset. Howeverl the algorithm runs fine in Unix; but not in Windows
 (64 bits windows 7).

 EZ

 On Sun, May 20, 2012 at 4:09 PM, Emiliano Zapata ezapata...@gmail.comwrote:

 Already then, thank you everyone. This information was extremly useful,
 and I'll do a better job on the web next time.

 On Sun, May 20, 2012 at 2:10 PM, Prof Brian Ripley 
 rip...@stats.ox.ac.ukwrote:

 On 20/05/2012 18:42, jim holtman wrote:

 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.


 Either this is a 32-bit version of R in which case the wrong version is
 being used, or your advice is wrong: there are no credible fragmentation
 issues (and no need to use gc()) on a 64-bit build of R.

 But, we have a posting guide, we require 'at a minimum information', and
 the OP failed to give it to us so we are all guessing, completely
 unnecessarily.



 On Sun, May 20, 2012 at 12:09 PM, Emiliano Zapataezapata...@gmail.com
  wrote:

 -- Forwarded message --
 From: Emiliano Zapataezapata...@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-helphttps://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/**
 posting-guide.html http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.






 --
 Brian D. Ripley,                  rip...@stats.ox.ac.uk
 Professor of Applied Statistics,  
 

[R] R Memory Issues

2012-05-20 Thread Emiliano Zapata
-- Forwarded message --
From: Emiliano Zapata ezapata...@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.


Re: [R] R Memory Issues

2012-05-20 Thread Wincent
Try memory.limit(92000)

sent from my HTC
On May 21, 2012 1:27 AM, Emiliano Zapata ezapata...@gmail.com wrote:

 -- Forwarded message --
 From: Emiliano Zapata ezapata...@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]]

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


Re: [R] R Memory Issues

2012-05-20 Thread jim holtman
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 ezapata...@gmail.com wrote:
 -- Forwarded message --
 From: Emiliano Zapata ezapata...@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.



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

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


Re: [R] R Memory Issues

2012-05-20 Thread Jeff Newmiller
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 NewmillerThe .   .  Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
--- 
Sent from my phone. Please excuse my brevity.

Emiliano Zapata ezapata...@gmail.com wrote:

-- Forwarded message --
From: Emiliano Zapata ezapata...@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.

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


Re: [R] R Memory Issues

2012-05-20 Thread Patrick Burns

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



--
Patrick Burns
pbu...@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')

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


Re: [R] R Memory Issues

2012-05-20 Thread Prof Brian Ripley

On 20/05/2012 18:42, jim holtman wrote:

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.


Either this is a 32-bit version of R in which case the wrong version is 
being used, or your advice is wrong: there are no credible fragmentation 
issues (and no need to use gc()) on a 64-bit build of R.


But, we have a posting guide, we require 'at a minimum information', and 
the OP failed to give it to us so we are all guessing, completely 
unnecessarily.




On Sun, May 20, 2012 at 12:09 PM, Emiliano Zapataezapata...@gmail.com  wrote:

-- Forwarded message --
From: Emiliano Zapataezapata...@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.







--
Brian D. Ripley,  rip...@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

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


Re: [R] R Memory Issues

2012-05-20 Thread Emiliano Zapata
Already then, thank you everyone. This information was extremly useful, and
I'll do a better job on the web next time.

On Sun, May 20, 2012 at 2:10 PM, Prof Brian Ripley rip...@stats.ox.ac.ukwrote:

 On 20/05/2012 18:42, jim holtman wrote:

 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.


 Either this is a 32-bit version of R in which case the wrong version is
 being used, or your advice is wrong: there are no credible fragmentation
 issues (and no need to use gc()) on a 64-bit build of R.

 But, we have a posting guide, we require 'at a minimum information', and
 the OP failed to give it to us so we are all guessing, completely
 unnecessarily.



 On Sun, May 20, 2012 at 12:09 PM, Emiliano Zapataezapata...@gmail.com
  wrote:

 -- Forwarded message --
 From: Emiliano Zapataezapata...@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-helphttps://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/**
 posting-guide.html http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.






 --
 Brian D. Ripley,  rip...@stats.ox.ac.uk
 Professor of Applied Statistics,  
 http://www.stats.ox.ac.uk/~**ripley/http://www.stats.ox.ac.uk/~ripley/
 University of Oxford, Tel:  +44 1865 272861 (self)
 1 South Parks Road, +44 1865 272866 (PA)
 Oxford OX1 3TG, UKFax:  +44 1865 272595


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