From: "Ed Schouten" <ed@il.fontys.nl>
To: Diego <foxdemon@gmail.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Some ideas about % of CPU for a process
Date: Fri, 12 Nov 2004 19:55:33 +0100 [thread overview]
Message-ID: <20041112185533.GA16907@il.fontys.nl> (raw)
In-Reply-To: <d5a95e6d0411121047690a0b51@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 571 bytes --]
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@il.fontys.nl>
Website: http://g-rave.nl/
GPG key: finger ed@il.fontys.nl
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-11-12 18:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-12 18:47 Some ideas about % of CPU for a process Diego
2004-11-12 18:55 ` Ed Schouten [this message]
2004-11-12 19:30 ` Valdis.Kletnieks
2004-11-12 19:45 ` Chris Friesen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041112185533.GA16907@il.fontys.nl \
--to=ed@il.fontys.nl \
--cc=foxdemon@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.