9front - general discussion about 9front
 help / color / mirror / Atom feed
From: cinap_lenrek@felloff.net
To: 9front@9front.org
Subject: Re: [9front] no image after reclaim
Date: Mon, 24 Feb 2014 08:18:12 +0100	[thread overview]
Message-ID: <c6582a0937bcbd26117209ba5bec2023@felloff.net> (raw)
In-Reply-To: <99013c63f63808ca066ed0c715e6eec7@x230.inri>

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


  reply	other threads:[~2014-02-24  7:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-24  5:58 sl
2014-02-24  7:18 ` cinap_lenrek [this message]
2014-02-24 21:47   ` [9front] " sl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c6582a0937bcbd26117209ba5bec2023@felloff.net \
    --to=cinap_lenrek@felloff.net \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).