Re[2]: [Gc] dynamic structures and gc
Ivan Maidanski
ivmai at mail.ru
Sun Sep 4 20:22:42 PDT 2011
Hi Mark.
I don't see anything strange. You free around 6 KiB according to the code you provided and in the output below the difference between the third heap-size-in-use value and the second one is something around that 6 K.
Regards
Mark Richards wrote:
> 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...
>
More information about the Gc
mailing list