linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* vmstats patch against 2.4.8pre7 and new userlevel hack
@ 2001-08-09  6:45 Marcelo Tosatti
  2001-08-10 20:33 ` Daniel Phillips
  0 siblings, 1 reply; 4+ messages in thread
From: Marcelo Tosatti @ 2001-08-09  6:45 UTC (permalink / raw)
  To: lkml; +Cc: Andrew Morton, Zach Brown, linux-mm

Hi, 

I've updated the vmstats patch to use Andrew Morton's statcount facilities
(which is in initial development state). I've also removed/added some
statistics due to VM changes.

On the userlevel side, I got zab's cpustat nice tool and transformed it
into an ugly hack which allows me to easily add/remove statistic
counters.

Adding a new statistic counter just needs (on the kernel side): 

VMSTAT(stat_name); (for global stats)

or 

VMSTAT_ZONE(zone, stat_name); (for perzone stats) 

On userlevel side, one line with corresponding stat_name, plus the field
name to be reported in the userlevel tool output for the given stat. 

Easy. 

The patch including the statcounts facilities
http://bazar.conectiva.com.br/~marcelo/patches/v2.4/2.4.8pre7/vmstats.patch

The userlevel tool
http://bazar.conectiva.com.br/~marcelo/nvmstat-0.1/nvmstat-0.1.tar.gz

--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-08-11 22:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-09  6:45 vmstats patch against 2.4.8pre7 and new userlevel hack Marcelo Tosatti
2001-08-10 20:33 ` Daniel Phillips
2001-08-11 16:57   ` Marcelo Tosatti
2001-08-11 22:33     ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox