Re: Unique process id (not pid) and accounting daemon

2010-02-04 Thread cronfy
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:

Re: Unique process id (not pid) and accounting daemon

2010-01-30 Thread Alfred Perlstein
* cronfy [100128 06:16] wrote: > >> To ensure that process in the process tree and process in the > >> accounting file are the same, I want to add unique process identifier > >> (uint64_t) to 'proc' struct in sys/sys/proc.h and increment it for > >> every process fork. I see it is possible to do t

Re: Unique process id (not pid) and accounting daemon

2010-01-29 Thread Jilles Tjoelker
On Mon, Jan 25, 2010 at 02:33:35AM +0300, cronfy wrote: > 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

Re: Unique process id (not pid) and accounting daemon

2010-01-28 Thread cronfy
>> To ensure that process in the process tree and process in the >> accounting file are the same, I want to add unique process identifier >> (uint64_t) to 'proc' struct in sys/sys/proc.h and increment it for >> every process fork. I see it is possible to do this just before >> sx_sunlock() in fork1

Re: Unique process id (not pid) and accounting daemon

2010-01-24 Thread Alfred Perlstein
* cronfy [100124 15:59] wrote: > Hello. > > Sorry for the crosspost, I intended to post this to freebsd-hackers@, but > sent first copy to freebsd-questions@ by mistake. > > > I am trying to create an accounting daemon that would be more precise > than usual BSD system accounting. It should rea

Unique process id (not pid) and accounting daemon

2010-01-24 Thread cronfy
Hello. Sorry for the crosspost, I intended to post this to freebsd-hackers@, but sent first copy to freebsd-questions@ by mistake. 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,