Date: Thu, 4 Feb 2010 13:32:13 +0300 From: cronfy <cronfy@gmail.com> To: Jilles Tjoelker <jilles@stack.nl> Cc: freebsd-hackers@freebsd.org Subject: Re: Unique process id (not pid) and accounting daemon Message-ID: <d4ac64921002040232le1dea98jbcbe063c6320eef1@mail.gmail.com> In-Reply-To: <20100130000108.GB95021@stack.nl> References: <d4ac64921001241533j375705f2we97945d010a1a7ff@mail.gmail.com> <20100130000108.GB95021@stack.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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 =A0and 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. --=20 // cronfy
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d4ac64921002040232le1dea98jbcbe063c6320eef1>