From: Marcelo Tosatti <marcelo@conectiva.com.br>
To: Andrew Morton <andrewm@uow.edu.au>
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 23:09:54 -0300 (BRT) [thread overview]
Message-ID: <Pine.LNX.4.21.0107132308040.4111-100000@freak.distro.conectiva> (raw)
In-Reply-To: <3B4FBC7E.D8694436@uow.edu.au>
On Sat, 14 Jul 2001, Andrew Morton wrote:
> 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.
You're right. Will do that.
> 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.
Agreed.
Thanks for your comments.
--
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/
prev parent reply other threads:[~2001-07-14 2:09 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
2001-07-14 2:09 ` Marcelo Tosatti [this message]
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.0107132308040.4111-100000@freak.distro.conectiva \
--to=marcelo@conectiva.com.br \
--cc=andrewm@uow.edu.au \
--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