On Thu, 19 Nov 2009 20:01:02 +0300, cronfy wrote:
>>> Is it possible to find out how much a process have used CPU user
>>> time/system time/IO operations for now by it's pid? Like in sa, but for
>>> running process.
>>>
>
> Dan, Mel, thanks for your answers. I examined 'ps' sources and dec
Is it possible to find out how much a process have used CPU user
time/system time/IO operations for now by it's pid? Like in sa, but for
running process.
Dan, Mel, thanks for your answers. I examined 'ps' sources and decided
to use kvm_getprocs() and rusage structure.
I am trying to
On Wed, 18 Nov 2009 20:18:08 +0300, cronfy wrote:
> Is it possible to find out how much a process have used CPU user
> time/system time/IO operations for now by it's pid? Like in sa, but for
> running process.
>
> Thanks in advance.
man procfs(5), specifically, the status file.
% cat /proc/21
In the last episode (Nov 18), cronfy said:
> Is it possible to find out how much a process have used CPU user
> time/system time/IO operations for now by it's pid? Like in sa, but for
> running process.
It's available to userland programs via the kern.proc.all syscall. it
returns an array of "st
Hello.
Is it possible to find out how much a process have used CPU user
time/system time/IO operations for now by it's pid? Like in sa, but for
running process.
Thanks in advance.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.