[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] initial detailed VM statistics code



Marcelo Tosatti wrote:
> 
> Hi,
> 
> Well, I've started working on VM stats code for 2.4.
> 

Thanks.

It might be useful to have a count of the number of PTEs scanned
by swap_out(), and the number of those that were unmapped. (I'm
interested in the scan rate of swap_out() vs refill_inactive_scan()).

I have a module that produces a histogram of pages-vs-age and
pages-vs-references for pages on the active_list, as well as
some other general VM stats; the code is available here:

<URL: http://home.earthlink.net/~jknapka/linux-mm/vmstatd1.c>

I'm not sure how generally useful it is, but you can make some
pretty pictures with it :-)

-- Joe Knapka
"You know how many remote castles there are along the gorges? You
 can't MOVE for remote castles!" -- Lu Tze re. Uberwald
// Linux MM Documentation in progress:
// http://home.earthlink.net/~jknapka/linux-mm/vmoutline.html
* Evolution is an "unproven theory" in the same sense that gravity is. *
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/