vmstats patch against 2.4.8pre7 and new userlevel hack

Marcelo Tosatti
2001-08-09T08:15:18Z

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