9front - general discussion about 9front
 help / color / mirror / Atom feed
From: sl@9front.org
To: 9front@9front.org
Subject: Re: [9front] no image after reclaim
Date: Mon, 24 Feb 2014 16:47:45 -0500	[thread overview]
Message-ID: <db23e96248c81cb359005b33c66ba9a9@pi.att> (raw)
In-Reply-To: <c6582a0937bcbd26117209ba5bec2023@felloff.net>

Revision: 8d1b21036a59
Branch:   default
Author:   cinap_lenrek@felloff.net
Date:     Mon Feb 24 21:42:22 2014 UTC
Log:      kernel: keep cached pages continuous at the end of the page list  
on imagereclaim()

imagereclaim() sabotaged itself by breaking the invariant
that cached pages are kept at the end of the page list.

once we made a hole of uncached pages, we would stop
reclaiming cached pages before it as the loop breaks
once it hits a uncached page. (we iterate backwards from
the tail to the head of the pagelist until pages have been
reclaimed or we hit a uncached page).

the solution is to move pages to the head of the pagelist
after removing them from the image cache.
http://code.google.com/p/plan9front/source/detail?r=8d1b21036a59

Modified:
  /sys/src/9/port/page.c
  /sys/src/9/port/portfns.h
  /sys/src/9/port/segment.c


      reply	other threads:[~2014-02-24 21:47 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 ` [9front] " cinap_lenrek
2014-02-24 21:47   ` sl [this message]

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=db23e96248c81cb359005b33c66ba9a9@pi.att \
    --to=sl@9front.org \
    --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).