[R] Memory Usage in R

Simon Wood snw at mcs.st-and.ac.uk
Tue May 21 17:44:23 CEST 2002


> I am running an R program with .Fortran() calls, and discovered that the
> memory, as reported by gc(), continues to grow with new loop iterations.  I
> hadn't been able to find information on how to 'destroy' objects in earlier
> loops to keep the program size from continuous growth;  calling rm() to
> remove some what I thought to be large arrays didn't seem to help.  Any
> help/pointers will be greatly appreciated.  TIA

- When I've had this problem it's been a memory leak in my compiled
code. With C code these are really easy to catch by using the dmalloc
library (see dmalloc.com) - I don't use Fortran, so don't know if this is
any use to you. 

Simon

  ______________________________________________________________________
> Simon Wood  snw at st-and.ac.uk  http://www.ruwpa.st-and.ac.uk/simon.html
> The Mathematical Institute, North Haugh, St. Andrews, Fife KY16 9SS UK
> Direct telephone: (0)1334 463799          Indirect fax: (0)1334 463748 


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



More information about the R-help mailing list