vm structure and net-snmp
Matthew Dillon
dillon at apollo.backplane.com
Fri Aug 29 13:03:29 PDT 2003
:at the moment I'm trying to compile net-snmp to get some nice statistics
:(with mrtg) for my box.
:But as VM already has diverged a lot from FreeBSD, it seems that some
:stuff needs rewriting.
:
:So the first questions arise:
:1. Do we already have an ,,own'' #define and version? this would be
: needed for conditional code/configure
Not yet. I think it is time to do it, though.
:2. as i'm not much of a kernel hacker: vm_meter.c's vcnt is a sysctl
: proc now. i guess there is no feasible way to get a nlist(vcnt) like
: you could with cnt?
: only thing i can think of is using sysctl like vmstat does. right
: that?
:
:
:thanks, cheers
: simon
Right, you should use the sysctl. The cnt structure is per-cpu and
the sysctl will aggregate all the per-cpu counters together for you
and present a single structure.
-Matt
Matthew Dillon
<dillon at xxxxxxxxxxxxx>
More information about the Kernel
mailing list