[R-SIG-Mac]how much memory does one need...

Stefano Iacus jago@mclink.it
Sun, 30 Sep 2001 22:21:03 +0200 (CEST)


David,

to check ow much memory R is using just go to the first finder menu, firt item, and you'll have an idea of what is going on.

R itslef needs somthing like 40Mb to run. If you want to use large data you shoud assign memory to R before stanting it. To do get the information on R application (from Finder: select R icon and press Command+I). Try to assing R more memory than it standard settings.

In case you need a very big amount of memory enable the virtual memory (from Control Panels/Memory) and assign R a huge amount of memory.

To see how fast R eats memory try to leave the Finder Info window open, run R and try to allocate your 1000^2 array...

The rest of your questions are not Macintosh specific so other R lists will be more helpful

Stefano



> ==========================
> From: David A Richmond <richmond@saintmarys.edu>
> To: r-sig-mac@stat.math.ethz.ch
> Subject: [R-SIG-Mac]how much memory does one need...
> Date: Sat, 29 Sep 2001 18:54:46 -0500 (EST)
> ==========================
>
> to allocate 7.8 MB to a vector? (on R running on MacOS 8.6 with 
> a 100MB
> partition)
> 
> I get this error from a function which is trying to create a 
> 1000x1000
> matrix:
> 
> Error: cannot allocate vector of size 7812 Kb
> 
> the error occurs here:
> dist <- as.single((t(pos)-pos)/n)
> 
> where pos is a matrix of integers, and n is the size of the first
> dimension. It appears to first create a double with (t(pos)-pos)/n,
> running out of memory before making it a single.
> 
> Several questions arise from this problem: 1) how do I determine 
> how much
> memory is free within the program?, 2) how do I determine how 
> much memory
> is being consumed by a given object?, 3) how do I force R to 
> create a
> matrix as a single rather than a double?
> 
> daver
> 
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> |David Richmond                It works on a          |
> + Dept. of Sociology          complex scientific      +
> |Saint Mary's College          principle, known as    |
> + Notre Dame, IN 46556               "pot luck."      +
> |219-284-4517                    - The Doctor         |
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac@stat.math.ethz.ch
> http://www.stat.math.ethz.ch/mailman/listinfo/r-sig-mac