Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.GSO.4.21.0101101105000.6757-100000@atlas.biostat.washington.edu>
Date: 2001-01-10T19:06:19Z
From: Thomas Lumley
Subject: R and memory
In-Reply-To: <3A5C7FC4.429E693C@info.univ-angers.fr>

On Wed, 10 Jan 2001, Meriema Belaidouni wrote:

> Hello
> I have some problems to read large data file with R.
> can someone tell me why running
> R --visze=30M --nsize=2000k
> uses in fact 63M?

It potentially uses even more than that. You have asked for 30Mb of vector
heap and 2 million cons cells. Each cons cell takes 32 bytes (I think), so
this would be 90Mb plus whatever the R program itself uses.

	-thomas

Thomas Lumley			Asst. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._