Sorry that I mistaked the MB as KB.

I don't fully understand your answer.

*1, "the whole RSS is used by V8"?*
I think the RSS(11M) is used by the whole nodejs, and heapTotal(7M) is used 
by V8. V8 creates certain heaps to store js object, map, code and so on..
And heapUsed(3M) is the size of current used size of heap. The remaining 
part of heap(7-3=4M) is empty, but reserved by v8. Is that right?

*2, The remaining memory(11-7=4M), "Mainly buffers used during I/O. "*
Because when I check the memoryUsage, nodejs haven't run any file yet. In 
my understanding, those part memory is used by c/c++ part of nodejs and 
libs in /deps, including the v8. (running v8 itself needs memory)
what does * "buffers used during I/O." mean?*

3, do you know any methods/tools to know the memory distribution of nodejs? 
 how many is used by linuv, by v8 itself, by openssl ...


在 2015年3月28日星期六 UTC+8上午1:02:26,Luca Morandini写道:
>
> On 26/03/15 16:34, Zidong Jiang wrote: 
> > 
> > I think the heapTotal(7K) is included in the RSS(11K), and heapTotal is 
> consumed 
> > by v8. is it right? 
>
> Yes and no, the whole RSS is used by V8, but only heapUsed is currently 
> used to 
> hold JavaScript objects. By the way, those are MBytes, not KBytes. 
>
>
> > Which parts of nodejs mainly occupy the remaining 11-7=4K memory? 
>
> Mainly buffers used during I/O. 
>
> Regards, 
>
> Luca Morandini 
> Data Architect - AURIN project 
> Melbourne eResearch Group 
> Department of Computing and Information Systems 
> University of Melbourne 
> Tel. +61 03 903 58 380 
> Skype: lmorandini 
>
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/5936b0a1-179b-4a48-ac9d-5e2f0243dd60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to