Re: [R] predicting memory usage

From: Moshe Olshansky <m_olshansky_at_yahoo.com>
Date: Mon, 18 Feb 2008 18:41:22 -0800 (PST)


If your numbers are not integers then they are double precision which means 8 bytes per number. In such a case you will need 86000*2500*8 = 1.7Gb of memory (plus a small amount for book keeping). You will need more (and sometimes much more) if you intend to do some operations on your arrays). So you probably will need a 64 bit machine with enough RAM.
Integer arrays will take 4 bytes per entry, so about half that amount.

Regards,

Moshe.

> Hi All,
>
> is there a way of predicting memory usage?
>
> I need to build an array of 86000 by 2500 numbers
> (or I might create
> a list of 2 by 2500 arrays 43000 long). How much
> memory should I
> expect to use/need?
>
> Cheers,
>
> Fede
>
> --
> Federico C. F. Calboli
> Department of Epidemiology and Public Health
> Imperial College, St. Mary's Campus
> Norfolk Place, London W2 1PG
>
> Tel +44 (0)20 75941602 Fax +44 (0)20 75943193
>
> f.calboli [.a.t] imperial.ac.uk
> f.calboli [.a.t] gmail.com
>
> ______________________________________________
> 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.
>



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. Received on Tue 19 Feb 2008 - 02:44:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 19 Feb 2008 - 03:30:14 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive