Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: wilko@idca.tds.philips.nl (Wilko Bulte)
Subject: Re: Determining %age CPU usage of a process.
Date: 22 Nov 93 13:44:39 GMT	[thread overview]
Message-ID: <wilko.753975879@spoetnix.idca.tds.philips.nl> (raw)
In-Reply-To: anthony.753968597@eden-valley

anthony@aaii.oz.au (Anthony Baxter) writes:

>Well, the port of 'top' to the alphas is almost done. The only teensy thing
>missing is the percentage cpu calculation. 

>'struct proc' contains a field:
>        fixpt_t p_pctcpu;       /* %cpu for this process during p_time */

>but as far as I can tell, this is never actually set by anything. 
>I _know_ it must be possible to determine this, (ps does it, see below)
>but how? and where is it stored?

You might check /sys/include/kern/tash.h 

I think the accounting is kept there somewhere

Wilko

--
 |   / o / /  _   Wilko Bulte               mail: wilko@idca.tds.philips.nl
 |/|/ / / /( (_)  |d|i|g|i|t|a|l| Equipment Corporation voice: +3155-432062
fax: +3155-432103 DTN: 829 2062 PO Box 245 - 7300 AE Apeldoorn - The Netherlands


      reply	other threads:[~1993-11-22 13:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-11-22 11:43 Determining %age CPU usage of a process Anthony Baxter
1993-11-22 13:44 ` Wilko Bulte [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox