chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] clueless about memory consumtion


From: Felix
Subject: Re: [Chicken-users] clueless about memory consumtion
Date: Sun, 11 Jul 2010 21:53:09 +0200 (CEST)

From: Jörg "F. Wittenberger" <address@hidden>
Subject: Re: [Chicken-users] clueless about memory consumtion
Date: Wed, 07 Jul 2010 17:44:48 +0200

> Will try that next.
> 
> So far I found that the nursery size stays constant
> using your last post:
> 
> Am Dienstag, den 06.07.2010, 15:51 +0200 schrieb Felix:
> 
>> (##sys#memory-info) returns a vector containing the current heap- and
>> nursery sizes.
> 
> The first value grows, the second is constantly 131072.

Yes, that's the size allocated to it. It will not change during the
lifetime of a program.

> 
> At this time I see
> Wed, 07 Jul 2010 14:55:55 Z (##sys#memory-info) : #(33732040 131072)
> Wed, 07 Jul 2010 15:07:37 Z (##sys#memory-info) : #(67681160 131072)
> while "top" shows
> VIRT  RES  SHR
> 126m  74m 8420
> Wed, 07 Jul 2010 15:36:36 Z (##sys#memory-info) : #(135473634 131072)
> 191m 138m 8420
> 

That's the allocated space for the heap. Half of it is used, the other
half is filled from the first one on GC (and then the parts will be
swapped). Note that this is the whole heap, not the size of the
actually live data, which will be less.


cheers,
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]