Well this looks pretty good to me: 1.9 mb used, 36 mb reserved (big
chunk is 32 mb for new space, only 2mb should be committed).

In total I estimate: 4mb committed for old data/pointer spaces, 1mb
for codespace, and 128 kb and 96kb for map and cell spaces
respectively (apparently they did not grow beyond first page).

It can be that old data/pointer space is a bit fragmented but I can't
estimate that from --trace-gc-verbose output; it has to be upgraded to
trace fragmentation.

--
Vyacheslav Egorov


On Thu, Jul 5, 2012 at 2:30 PM, hasanyasin <[email protected]> wrote:
>
> Node 0.8 compiled from source without additional parameters with just
> ./configure on Debian 6 64bit.
>
> test-memory-use.js:
>
> setInterval(function(){    console.log('waiting idle...'); }, 5000);
>
> Output of node --trace-gc --trace-gc-verbose test-memory-use.js: (Ran as
> root to prevent any kind of limits etc)
>
> 5044 ms: Mark-sweep 2.3 (36.0) -> 1.9 (36.0) MB, 1 ms (+ 3 ms in 1 steps
> since start of marking, biggest step 3.578857 ms) [idle notification:
> finalize incremental] [GC in old space requested].
> Memory allocator,   used: 37732352, available: 1497382912
>
> New space,          used:        0, available:  1048576
> Old pointers,       used:  1546168, available:    10056, waste:        0
> Old data space,     used:  1228544, available:        0, waste:        0
> Code space,         used:   625184, available:   394720, waste:        0
> Map space,          used:    75712, available:    55360, waste:        0
> Cell space,         used:    27440, available:    70864, waste:        0
> Large object space, used:        0, available: 1496317696
>     5050 ms: Mark-sweep 1.9 (36.0) -> 1.9 (36.0) MB, 1 ms (+ 4 ms in 1 steps
> since start of marking, biggest step 4.277832 ms) [idle notification:
> finalize incremental] [GC in old space requested].
> Memory allocator,   used: 37732352, available: 1497382912
>
> New space,          used:        0, available:  1048576
> Old pointers,       used:  1530896, available:    25328, waste:        0
> Old data space,     used:  1227360, available:     1184, waste:        0
> Code space,         used:   610976, available:   408928, waste:        0
> Map space,          used:    75544, available:    55528, waste:        0
> Cell space,         used:    27440, available:    70864, waste:        0
> Large object space, used:        0, available: 1496317696
>     5056 ms: Mark-sweep 1.9 (36.0) -> 1.9 (36.0) MB, 0 ms (+ 4 ms in 1 steps
> since start of marking, biggest step 4.545898 ms) [idle notification:
> finalize incremental] [GC in old space requested].
> Memory allocator,   used: 37732352, available: 1497382912
>
> New space,          used:        0, available:  1048576
> Old pointers,       used:  1530896, available:    25328, waste:        0
> Old data space,     used:  1227360, available:     1184, waste:        0
> Code space,         used:   610976, available:   408928, waste:        0
> Map space,          used:    75544, available:    55528, waste:        0
> Cell space,         used:    27440, available:    70864, waste:        0
> Large object space, used:        0, available: 1496317696
>     5062 ms: Mark-sweep 1.9 (36.0) -> 1.9 (36.0) MB, 0 ms (+ 4 ms in 1 steps
> since start of marking, biggest step 4.167969 ms) [idle notification:
> finalize incremental] [GC in old space requested].
> Memory allocator,   used: 37732352, available: 1497382912
>
> New space,          used:        0, available:  1048576
> Old pointers,       used:  1530896, available:    25328, waste:        0
> Old data space,     used:  1227360, available:     1184, waste:        0
> Code space,         used:   610976, available:   408928, waste:        0
> Map space,          used:    75544, available:    55528, waste:        0
> Cell space,         used:    27440, available:    70864, waste:        0
> Large object space, used:        0, available: 1496317696
>     5067 ms: Mark-sweep 1.9 (36.0) -> 1.9 (36.0) MB, 0 ms (+ 4 ms in 1 steps
> since start of marking, biggest step 4.050049 ms) [idle notification:
> finalize incremental] [GC in old space requested].
> Memory allocator,   used: 37732352, available: 1497382912
>
> New space,          used:        0, available:  1048576
> Old pointers,       used:  1530896, available:    25328, waste:        0
> Old data space,     used:  1227360, available:     1184, waste:        0
> Code space,         used:   610976, available:   408928, waste:        0
> Map space,          used:    75544, available:    55528, waste:        0
> Cell space,         used:    27440, available:    70864, waste:        0
> Large object space, used:        0, available: 1496317696
>     5072 ms: Mark-sweep 1.9 (36.0) -> 1.9 (36.0) MB, 1 ms (+ 3 ms in 1 steps
> since start of marking, biggest step 3.949951 ms) [idle notification:
> finalize incremental] [GC in old space requested].
> Memory allocator,   used: 37732352, available: 1497382912
>
> New space,          used:        0, available:  1048576
> Old pointers,       used:  1530896, available:    25328, waste:        0
> Old data space,     used:  1227360, available:     1184, waste:        0
> Code space,         used:   610976, available:   408928, waste:        0
> Map space,          used:    75544, available:    55528, waste:        0
> Cell space,         used:    27440, available:    70864, waste:        0
> Large object space, used:        0, available: 1496317696
>     5078 ms: Mark-sweep 1.9 (36.0) -> 1.9 (36.0) MB, 0 ms (+ 4 ms in 1 steps
> since start of marking, biggest step 4.562988 ms) [idle notification:
> finalize incremental] [GC in old space requested].
> Memory allocator,   used: 37732352, available: 1497382912
>
> New space,          used:        0, available:  1048576
> Old pointers,       used:  1530896, available:    25328, waste:        0
> Old data space,     used:  1227360, available:     1184, waste:        0
> Code space,         used:   610976, available:   408928, waste:        0
> Map space,          used:    75544, available:    55528, waste:        0
> Cell space,         used:    27440, available:    70864, waste:        0
> Large object space, used:        0, available: 1496317696
>
> Output of ps:
> USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
> root      2405  0.3  1.2 594268  7932 pts/3    Sl+  08:25   0:00 node
> --trace-gc --trace-gc-verbose test-memory-use.js
>
>
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> 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 post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to