Re: Some ideas about % of CPU for a process
From: Ed Schouten
Date: Fri Nov 12 2004 - 13:56:56 EST
Hello Diego,
On Fri 12 Nov 2004 03:47 PM, Diego wrote:
> I'm trying to define a % of cpu for a process, but i don?t have idea
> about how i can do it. For example, i said that my process need 40% of
> CPU during its lifetime, how can i do it in kernel 2.6?
> Thanks for ideas.
Why don't you 'ps' the process and divide the running time through the
starting time?
time
---------------- = average process cpu usage
(now - started))
Yours,
--
Ed Schouten <ed@xxxxxxxxxxxx>
Website: http://g-rave.nl/
GPG key: finger ed@xxxxxxxxxxxx
Attachment:
pgp00000.pgp
Description: PGP signature