Re: [R] Memory usage reported by gc() differs from 'top'

2013-04-19 Thread Christian Brechbühler
Merci beaucoup Milan, thank you very much Martin and Kjetil for your responses. I appreciate the caveat about virtual memory. I gather that besides resident memory and swap space, it may also include memory mapped files, which don't "cost" anything. Maybe by pure chance, in my case virtual memor

Re: [R] Memory usage reported by gc() differs from 'top'

2013-04-18 Thread Kjetil Kjernsmo
On Thursday 18. April 2013 12.18.03 Milan Bouchet-Valat wrote: > First, completely stop looking at virtual memory: it does not mean much, if > anything. What you care about is resident memory. See e.g.: > http://serverfault.com/questions/138427/top-what-does-virtual-memory-size-m > ean-linux-ubuntu

Re: [R] Memory usage reported by gc() differs from 'top'

2013-04-18 Thread Martin Morgan
On 04/18/2013 03:18 AM, Milan Bouchet-Valat wrote: Le mercredi 17 avril 2013 à 23:17 -0400, Christian Brechbühler a écrit : In help(gc) I read, "...the primary purpose of calling 'gc' is for the report on memory usage". What memory usage does gc() report? And more importantly, which memory uses

Re: [R] Memory usage reported by gc() differs from 'top'

2013-04-18 Thread Milan Bouchet-Valat
Le mercredi 17 avril 2013 à 23:17 -0400, Christian Brechbühler a écrit : > In help(gc) I read, "...the primary purpose of calling 'gc' is for the > report on memory usage". > What memory usage does gc() report?  And more importantly, which memory > uses does it NOT report?  Because I see one answer

[R] Memory usage reported by gc() differs from 'top'

2013-04-17 Thread Christian Brechbühler
In help(gc) I read, "...the primary purpose of calling 'gc' is for the report on memory usage". What memory usage does gc() report? And more importantly, which memory uses does it NOT report? Because I see one answer from gc(): used (Mb) gc trigger (Mb) max used (Mb) Ncells 148759