Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754672AbYBYPQ3 (ORCPT ); Mon, 25 Feb 2008 10:16:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751731AbYBYPQQ (ORCPT ); Mon, 25 Feb 2008 10:16:16 -0500 Received: from lazybastard.de ([212.112.238.170]:45517 "EHLO longford.lazybastard.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751575AbYBYPQP (ORCPT ); Mon, 25 Feb 2008 10:16:15 -0500 Date: Mon, 25 Feb 2008 16:15:36 +0100 From: =?utf-8?B?SsO2cm4=?= Engel To: Andy Whitcroft Cc: =?utf-8?B?SsO2cm4=?= Engel , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: Page scan keeps touching kernel text pages Message-ID: <20080225151536.GA13358@lazybastard.org> References: <20080224144710.GD31293@lazybastard.org> <20080225150724.GF2604@shadowen.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080225150724.GF2604@shadowen.org> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1415 Lines: 34 On Mon, 25 February 2008 15:07:24 +0000, Andy Whitcroft wrote: > On Sun, Feb 24, 2008 at 03:47:11PM +0100, Jörn Engel wrote: > > While tracking down some unrelated bug I noticed that shrink_page_list() > > keeps testing very low page numbers (aka kernel text) until deciding > > that the page lacks a mapping and cannot get freed. Looks like a waste > > of cpu and cachelines to me. > > > > Is there a better reason for this behaviour than lack of a patch? > > shrink_page_list() would be expected to be passed pages pulled from > the active or inactive lists via isolate_lru_pages()? I would not have > expected to find the kernel text on the LRU and therefore not expect to > see it passed to shrink_page_list()? Your expectations match mine. At least someone shares my dilusions. :) > I would expect to find pages below the kernel text as real pages, and > potentially on the LRU on some architectures. Which architecture are > you seeing this? Which zones do the pages belong? 32bit x86 (run in qemu, shouldn't make a difference). Not sure about the zones. Let me rerun to check that. Jörn -- Ninety percent of everything is crap. -- Sturgeon's Law -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/