From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from felloff.net ([94.135.152.80]) by ttr; Mon Feb 24 02:18:16 EST 2014 Message-ID: List-ID: <9front.9front.org> X-Glyph: ➈ X-Bullshit: content-addressed template Date: Mon, 24 Feb 2014 08:18:12 +0100 From: cinap_lenrek@felloff.net To: 9front@9front.org Subject: Re: [9front] no image after reclaim In-Reply-To: <99013c63f63808ca066ed0c715e6eec7@x230.inri> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit for some reason, we are unable to reclaim program images. this could happen when you run a shitload of differnet binaries and keep them running. if the program is not running anymore, we should be able to reclaim its image unless theres some bug. you can inspect the image cache with acid. run (pid doesnt matter, litterally type $pid): acid -k -lkernel $pid kinit() send the commands printed, then run: imagecache() this prints the image structures cached. ref is the overall number of references to this structure. when that goes to zero, the image structure is reclaimed. pgref is the number of page references to the image. entries with ref == pgrep should be reclaimable. the algorithm just scans the page list and frees all the pages for images that are not running anymore, decrementing ref by pgrep. run this these acid commands from time to time so we can see when stuff is piling up. -- cinap