Please do ! As I mentioned in the other note where I summarize the various accounting packages"Shailabh" == Shailabh Nagar <nagar@xxxxxxxxxxxxxx> writes:
Shailabh> Peter Chubb wrote:
(microstate accounting patch)
Shailabh> So do you intend to pursue acceptance ? If so, do you thinkIt's still maintained in a sporadic sort of way --- I update it
when either I need it for something, or someone's downloaded it and
asks why it doesn't work agains kernel X.Y.Z. I see a few
downloads a month.
Shailabh> the netlink-based taskstats interface provided by the delay
Shailabh> accounting patches could be an acceptable substitute for the
Shailabh> interfaces you had (from an old lkml post, they appear to be
Shailabh> /proc/tgid/msa and a syscall based one) ?
I'd have to take a close look.
The syscall interface is modelled onNo. The use of netlink pretty much means you have to use an auxiliary program. We provide
getrusage(), and only lets you get your own or your children's data;
I'm not too worried about trashing it, as it should be possible to
emulate in terms of netlink (albeit at a cost; system calls are
relatively cheap)
/proc/<pid>/task/<tid>/msa lets you get at anything you own. I use
awk scripts to process the msa file in /proc/... and pipe it into
gnuplot at n second intervals; a netlink interface would need to have
an auxiliary program to read it and then squirt it into the scripts, I
think --- or is there a way to get ASCII out on demand?
I quite oftenYes, /proc is more convenient both for cat'ting and also since its used by tools like top.
use cat to do quick checks on whats going on too --- so overall I think
the /proc interface is desirable.