use /proc//status instead of (in addition to?) /proc/pid/stat extract /proc/stat parsing from vmstat into libproc somewhere. An upcoming version of procps will support both the standard extended-BSD calling conventions and the Unix98 conventions. It *might* also allow user-definable conventions as well.