From: Andrew Morton <andrewm@uow.edu.au>
To: Marcelo Tosatti <marcelo@conectiva.com.br>
Cc: Linus Torvalds <torvalds@transmeta.com>,
lkml <linux-kernel@vger.kernel.org>,
linux-mm@kvack.org
Subject: Re: [PATCH] VM statistics code
Date: Sat, 14 Jul 2001 13:29:02 +1000 [thread overview]
Message-ID: <3B4FBC7E.D8694436@uow.edu.au> (raw)
In-Reply-To: <Pine.LNX.4.21.0107131856470.3716-100000@freak.distro.conectiva>
Marcelo Tosatti wrote:
>
> Hi Linus,
>
> The following patch adds detailed VM statistics (reported via /proc/stats)
> which is tunable on/off by the CONFIG_VM_STATS option.
We need this, bad. Two suggested changes:
>
> +#define VM_STAT_INC_PTEUNMAP(zone) zone->stat.vm_pteunmap++;
All these macros are a waste of space :)
Much better to have:
#define VM_STAT_ZONE(zone, op) zone->stat.op
Then, at the call site:
VM_STAT_ZONE(some_zone, vm_pteunmap++);
Or, if you prefer,
#define VM_STAT_ZONE_INC(zone, field) zone->field++
That way, you don't have to add a new macro each time
you add a new field.
Also, a sysrq key which dumps the stats out, please - when
your box has wedged there ain't no way you'll be running
vmstat.
-
--
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-14 3:29 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
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 [this message]
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=3B4FBC7E.D8694436@uow.edu.au \
--to=andrewm@uow.edu.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=marcelo@conectiva.com.br \
--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