zhou at stat.columbia.edu
2006-May-21 01:32 UTC
[Rd] increase size of the limit of memory (PR#8885)
Full_Name: Shouhao Zhou Version: 2.2.1 OS: windows Submission from: (NULL) (128.59.110.149) if you run the following code in R after version 2.1.1: n.sims<-6000;n<-30000 y<-array(NA,c(n.sims,n)) with output: Error: cannot allocate vector of size 703125 Kb In addition: Warning messages: 1: Reached total allocation of 509Mb: see help(memory.size) 2: Reached total allocation of 509Mb: see help(memory.size) then I try to increase the size by command which made sense in R before version 2.0.1 and can help to allocate vector y of size 703125 Kb: memory.limit(14000000000) but now we get the output in such away: Error in memory.size(size) : don't be silly!: your machine has a 4Gb address limit What can I do now to allocate the vector y<-array(NA,c(6000,30000)) in the latest version of R?
ripley at stats.ox.ac.uk
2006-May-21 06:37 UTC
[Rd] increase size of the limit of memory (PR#8885)
The help page says size: numeric. If 'NA' report the memory size, otherwise request a new limit, in Mb. Values of up to 4096 are allowed, but see Details. You requested a limit of 14 billion megabytes of memory, which was indeed silly. Please do read the R FAQs and the posting guide as you are asked before posting. On Sun, 21 May 2006, zhou at stat.columbia.edu wrote:> Full_Name: Shouhao Zhou > Version: 2.2.1 > OS: windows > Submission from: (NULL) (128.59.110.149) > > > if you run the following code in R after version 2.1.1: > > n.sims<-6000;n<-30000 > y<-array(NA,c(n.sims,n)) > > with output: > > Error: cannot allocate vector of size 703125 Kb > In addition: Warning messages: > 1: Reached total allocation of 509Mb: see help(memory.size) > 2: Reached total allocation of 509Mb: see help(memory.size) > > then I try to increase the size by command which made sense in R before version > 2.0.1 and can help to allocate vector y of size 703125 Kb: > > memory.limit(14000000000) > > but now we get the output in such away: > > Error in memory.size(size) : don't be silly!: your machine has a 4Gb address > limit > > What can I do now to allocate the vector y<-array(NA,c(6000,30000)) in the > latest version of R? > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >-- Brian D. Ripley, ripley at 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, UK Fax: +44 1865 272595