Unique process id (not pid) and accounting daemon

cronfy cronfy at gmail.com
Thu Feb 4 10:32:35 UTC 2010


Hello,

>> I am trying to create an accounting daemon that would be more precise
>> than usual BSD system accounting. It should read the whole process
>> tree from time to time (say, every 10 seconds) and log changes in
>> usage of CPU, I/O operations and memory per process.
>> There is a problem: it is not always possible to link a process in a
>> process tree against matching process in an accounting file. Only
>> command name, user/group id  and start time will match...

> Have you looked at audit(4)?

Yes, but I did not see how it can help to measure cpu usage/io
operations for long running processes and to sync between process list
and accounting file.


-- 
// cronfy


More information about the freebsd-hackers mailing list