Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* How to determine CPU utilization
@ 1996-06-20  4:00 Kevin Barrett
  0 siblings, 0 replies; only message in thread
From: Kevin Barrett @ 1996-06-20  4:00 UTC (permalink / raw)
  Cc: kbarrett


I am working on a real-time executive on the DEC Alpha.  A requirement is
to provide 50% spare CPU capacity, and I would like to have my console
display the current CPU idle time.

  One implementation we have considered is to have a task run at the lowest
priority, that just counts in a while loop.  That task would be interrupted
at a set rate, say 2 Hz, at which time it would report the count value and
reset.  This is an acceptable solution, but I was wondering if OSF/1 (or
any POSIX.4 Unix, for that matter) provides a service for determining the
percentage of time the CPU is idle (or in use).

  Oh, we have thought about using the proc filesystem, but I don't think
all that system call activity would be such a good idea in hard real-time.

  Does anyone know of a service we can use?  Thanks!

-- 
+----------------------------------------------------------------------------+
|          Kevin Barrett           |      Albuquerque, New Mexico, USA       |
|        kbarrett@rt66.com         |     http://www.rt66.com/~kbarrett       |
+----------------------------------------------------------------------------+
 "What about the Rimmer Directive, which states:  'Never tangle with anything 
    that's got more teeth than the entire Osmond family'?" - Arnold Rimmer



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-06-20  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-20  4:00 How to determine CPU utilization Kevin Barrett

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