From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pi.att ([199.241.189.110]) by ttr; Mon Feb 24 16:48:43 EST 2014 Date: Mon, 24 Feb 2014 16:47:45 -0500 From: sl@9front.org To: 9front@9front.org Subject: Re: [9front] no image after reclaim Message-ID: List-ID: <9front.9front.org> X-Glyph: ➈ X-Bullshit: structured stable configuration-oriented session generator In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit 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