From: Marcelo Tosatti <marcelo@conectiva.com.br>
To: Chris Wedgwood <cw@f00f.org>
Cc: Linus Torvalds <torvalds@transmeta.com>,
lkml <linux-kernel@vger.kernel.org>,
linux-mm@kvack.org
Subject: Re: [PATCH] VM statistics code
Date: Fri, 13 Jul 2001 19:53:12 -0300 (BRT) [thread overview]
Message-ID: <Pine.LNX.4.21.0107131946410.3892-100000@freak.distro.conectiva> (raw)
In-Reply-To: <20010714121150.B6048@weta.f00f.org>
On Sat, 14 Jul 2001, Chris Wedgwood wrote:
> On Fri, Jul 13, 2001 at 07:08:23PM -0300, Marcelo Tosatti wrote:
>
> With this data we are able to know more about what is really going
> on in the VM.
>
> +vm_pglaunder: nr of page_launder() calls
> +vm_pglaunder_write: nr of times page_launder() started writting out data to free
> +memory.
> +vm_refill_inactive_scan: nr of refill_inactive_scan() calls
> +vm_alloc_resched: nr of reschedule's in __alloc_pages() due to a memory shortage.
> +vm_kswapd_wakeup: nr of kswapd wakeup's
> +vm_kreclaimd_wakeup: nr of kreclaimd wakeup's
> +vm_kflushd_wakeup: nr of kflushd wakeup's
> +
> +Per-zone statistics:
> +free shortage: per-zone free shortage
> +inactive shortage: per-zone inactive shortage
> +vm_launder_pgscan: number of pages scanned by page_launder
> +vm_pgclean: number of pages cleaned (moved to the inactive clean list) by page_launder
> +vm_pgskiplocked: number of locked pages skipped by page_launder
> +vm_pgskipdirty: number of dirty pages skipped by page_launder
> +vm_pglaundered: laundered pages by page_launder
> +vm_pgreact: pages reactivated in page_launder
> +vm_pgrescue: pages rescue in reclaim_page
> +vm_pgagescan: pages scanned by refill_inactive_scan()
> +vm_pgagedown: pages aged down by refill_inative_scan()
> +vm_pgageup: pages aged up by refill_inactive_scan()/try_to_swap_out()
> +vm_pgdeact: deactivated pages by deactivate_page
> +vm_pgdeactfail_age: nr of deactivation failures on refill_inactive_scan()
> +due to >0 age
> +vm_pgdeactfail_ref: nr of deactivation failures on refill_inactive_scan()
> +due to zero aged pages with more users than the pagecache
> +vm_reclaimfail: failures of reclaim_page() (no freeable clean pages in the inactive
> +clean list for this zone)
> +vm_ptescan: nr of present ptes scanned by swap_out()
> +vm_pteunmap: nr of present ptes unmapped by swap_out()
>
> Some of these seem very specialised and low-level.
Yes they are.
> Perhaps another /proc entry might be a better idea along with either a
> different vmstat,
Maybe. Personally I don't really care about the way we are doing this, as
long as I can get the information. I can add /proc/vmstat easily if
needed...
Linus, how do you want this thing done to be accepted in the stock tree?
> or changes to vmstat such that it will behave as always if not given a
> magic command line switch and/or this new /proc entry isn't present?
Well, I don't want to include this stuff on the stock vmstat code right
now. I've done an ugly hack in vmstat.c to get the thing to work and thats
it.
I will keep an updated version of the "hacked" vmstat.c on my homepage
until I find time/balls to code something which does not stink.
> Right now, much of what comes form vmstat vaguley resembles other OSs,
> with the above, it will be very different.
Indeed.
--
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/
next prev parent reply other threads:[~2001-07-13 22:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-13 22:08 Marcelo Tosatti
2001-07-14 0:11 ` Chris Wedgwood
2001-07-13 22:53 ` Marcelo Tosatti [this message]
2001-07-14 0:31 ` Chris Wedgwood
2001-07-13 23:12 ` Marcelo Tosatti
2001-07-14 0:46 ` David S. Miller
2001-07-14 3:29 ` Andrew Morton
2001-07-14 2:09 ` Marcelo Tosatti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.21.0107131946410.3892-100000@freak.distro.conectiva \
--to=marcelo@conectiva.com.br \
--cc=cw@f00f.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox