Re: Page scan keeps touching kernel text pages

2008-02-25 Thread Jörn Engel
On Mon, 25 February 2008 13:46:32 -0600, Dave McCracken wrote: > On Monday 25 February 2008, Andy Whitcroft wrote: > > I thought that init sections were deliberatly pushed to the end of the > > kernel when linked, cirtainly on my laptop here that seems to be so. > > That would make the first two "a

Re: Page scan keeps touching kernel text pages

2008-02-25 Thread Dave McCracken
On Monday 25 February 2008, Andy Whitcroft wrote: > I thought that init sections were deliberatly pushed to the end of the > kernel when linked, cirtainly on my laptop here that seems to be so. > That would make the first two "after" the kernel.  The other two appear > to be before the traditional

Re: Page scan keeps touching kernel text pages

2008-02-25 Thread Andy Whitcroft
On Mon, Feb 25, 2008 at 07:53:20PM +0100, Jörn Engel wrote: > On Mon, 25 February 2008 09:48:22 -0800, Dave Hansen wrote: > > On Mon, 2008-02-25 at 15:07 +, Andy Whitcroft wrote: > > > shrink_page_list() would be expected to be passed pages pulled from > > > the active or inactive lists via iso

Re: Page scan keeps touching kernel text pages

2008-02-25 Thread Jörn Engel
On Mon, 25 February 2008 09:48:22 -0800, Dave Hansen wrote: > On Mon, 2008-02-25 at 15:07 +, Andy Whitcroft wrote: > > 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

Re: Page scan keeps touching kernel text pages

2008-02-25 Thread Dave Hansen
On Mon, 2008-02-25 at 15:07 +, Andy Whitcroft wrote: > 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 shrin

Re: Page scan keeps touching kernel text pages

2008-02-25 Thread Jörn Engel
On Mon, 25 February 2008 16:15:36 +0100, Jörn Engel wrote: > On Mon, 25 February 2008 15:07:24 +, Andy Whitcroft wrote: > > > 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? Wh

Re: Page scan keeps touching kernel text pages

2008-02-25 Thread Jörn Engel
On Mon, 25 February 2008 15:07:24 +, 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

Re: Page scan keeps touching kernel text pages

2008-02-25 Thread Andy Whitcroft
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 cachel

Page scan keeps touching kernel text pages

2008-02-24 Thread Jörn Engel
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 o