[Gc] dynamic structures and gc
Mark Richards
mark.richards at massmicro.com
Fri Sep 2 13:02:16 PDT 2011
On 9/2/2011 15:26, Ivan Maidanski wrote:
> GC_get_heap_size() - GC_get_free_bytes()
Hello Ivan,
Scratching my bald spot here...
I tried this. As a reference I am also issuing ps v [pid] to get memory
usage.
Start of my test case:
Heap size = 0
PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND
24213 pts/3 S+ 0:01 17 164 6591 2896 4.7
./aemnet
After the allocation loop:
Heap size = 442368
PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND
24213 pts/3 S+ 0:02 17 164 7315 3612 5.9
. /aemnet
After Free:
Heap size = 438272
PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND
24213 pts/3 S+ 0:02 17 164 7315 3612 5.9
./aemnet
Strange...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/gc/attachments/20110902/d44bfb14/attachment.htm
More information about the Gc
mailing list