Subject: Re: pmap.c resident count bogus ?
To: Ramesh BN <bnramesh@yahoo.com>
From: Chuck Silvers <chuq@chuq.com>
List: port-macppc
Date: 12/12/2002 21:49:14
hi,

you're looking at arch/powerpc/powerpc/pmap.c, right?
that's the old pmap that isn't used anymore,
the one you should be looking at is arch/powerpc/mpc6xx/pmap.c.

-Chuck


On Thu, Dec 12, 2002 at 10:46:08AM -0800, Ramesh BN wrote:
> Greetings,
> 
> The resident count is incremented in pmap_enter and
> decremented in pmap_remove. But pages can also be
> removed by pmap_protect_page(). Here the resident
> count is not taken into account (becuase there is
> no pmap context avaialbe to use). This leads to 
> bogus resident sizes if pages get swapping out and
> in again, the deletion are not counted and the 
> insertions are counted. 
> 
> Does anybody know how to provide a consistent resident
> count ?
> 
> Thanks,
> 
> Ramesh
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com