Is it expected behavior for gc() to return shrinking values as it gets called multiple times? Here's what I've got:> gc()used (Mb) gc trigger (Mb) Ncells 221754 6.0 467875 12.5 Vcells 3760209 28.7 14880310 113.6> gc()used (Mb) gc trigger (Mb) Ncells 221760 6.0 467875 12.5 Vcells 3016206 23.1 11904247 90.9> gc()used (Mb) gc trigger (Mb) Ncells 221760 6.0 467875 12.5 Vcells 2420993 18.5 9523397 72.7> gc()used (Mb) gc trigger (Mb) Ncells 221760 6.0 467875 12.5 Vcells 1944823 14.9 7618717 58.2> gc()used (Mb) gc trigger (Mb) Ncells 221760 6 467875 12.5 Vcells 1563887 12 6094973 46.6> gc()used (Mb) gc trigger (Mb) Ncells 221760 6.0 467875 12.5 Vcells 1259138 9.7 4875978 37.3> gc()used (Mb) gc trigger (Mb) Ncells 221760 6.0 467875 12.5 Vcells 1015339 7.8 3900782 29.8> gc()used (Mb) gc trigger (Mb) Ncells 221760 6.0 467875 12.5 Vcells 820300 6.3 3120625 23.9> gc()used (Mb) gc trigger (Mb) Ncells 221760 6.0 467875 12.5 Vcells 664269 5.1 2496499 19.1> gc()used (Mb) gc trigger (Mb) Ncells 221760 6.0 467875 12.5 Vcells 539443 4.2 1997199 15.3> gc()used (Mb) gc trigger (Mb) Ncells 221760 6.0 467875 12.5 Vcells 439583 3.4 1597759 12.2> gc()used (Mb) gc trigger (Mb) Ncells 221760 6.0 467875 12.5 Vcells 359695 2.8 1278207 9.8> gc()used (Mb) gc trigger (Mb) Ncells 221760 6.0 467875 12.5 Vcells 295785 2.3 1022565 7.9> gc()used (Mb) gc trigger (Mb) Ncells 221760 6.0 467875 12.5 Vcells 244657 1.9 818051 6.3> gc()used (Mb) gc trigger (Mb) Ncells 221760 6.0 467875 12.5 Vcells 71762 0.6 786432 6.0> gc()used (Mb) gc trigger (Mb) Ncells 221760 6.0 467875 12.5 Vcells 40143 0.4 786432 6.0 It then stabilizes at those values. Any explanation? ---------------------------------------------------------------------- Andrew J Perrin - Ph.D. Candidate, UC Berkeley, Dept. of Sociology (Soon: Asst Professor of Sociology, U of North Carolina, Chapel Hill) andrew_perrin at unc.edu - http://www.unc.edu/~aperrin -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
I'm trying to build R 1.2.2 from source on an Alpha (Digital UNIX 4.0d, to be precise). The compiler / tool set is gcc 2.95.2. The "configure" and "make" steps work fine, but when I do "make check", the job spawns a bunch of processes and then just stops doing anything. The resulting R executable seems to be OK; it runs "demo(graphics)" and a few of my own tests. Any ideas? -- Ed Borasky http://www.aracnet.com/~znmeb mailto:znmeb at aracnet.com Q: What phrase will you never hear Candice Bergen use? A: "My daddy didn't raise no dummies". -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Mon, 12 Mar 2001, Andrew Perrin wrote:> Is it expected behavior for gc() to return shrinking values as it gets > called multiple times? Here's what I've got: >Yes, it's part of the new memory management. R can now expand or contract its heap dynamically, so when memory use decreases the spare memory will be released back to the operating system. The operating system typically won't take it, but it will be available for .C code to malloc(), and if it remains unused a competent operating system will probably swap it to disk. -thomas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Andrew Perrin wrote:> Is it expected behavior for gc() to return shrinking values as it gets > called multiple times? Here's what I've got: > > > gc() > used (Mb) gc trigger (Mb) > Ncells 221754 6.0 467875 12.5 > Vcells 3760209 28.7 14880310 113.6 > > gc() > used (Mb) gc trigger (Mb) > Ncells 221760 6.0 467875 12.5 > Vcells 3016206 23.1 11904247 90.9 > > gc() > used (Mb) gc trigger (Mb) > Ncells 221760 6.0 467875 12.5 > Vcells 2420993 18.5 9523397 72.7 > > gc()For the trigger column yes, but not for the used Vcells value--the value was being calculated incorrectly; this sould be fixed in the next release. Thanks for pointing this out. luke -- Luke Tierney University of Minnesota Phone: 612-625-7843 School of Statistics Fax: 612-624-8868 313 Ford Hall, 224 Church St. S.E. email: luke at stat.umn.edu Minneapolis, MN 55455 USA WWW: http://www.stat.umn.edu -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._