Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: saurabhbhatt@fastmail.fm (Saurabh Bhatt)
Subject: CPU load
Date: 4 Nov 2003 02:14:09 -0800	[thread overview]
Message-ID: <6d7d74c1.0311040214.10c6b139@posting.google.com> (raw)

System - COMPAQ tru64 (ES45) with 4 CPUs
Objective - To calculate the CPU utilisation of each CPU separately.

Current Progress Level
======================
Using the table() system call with TBL_SYSINFO flag, I get certain
value for CPU utilisation (after some calculation with usr/nice/idle
etc). I assume that this is the net CPU utilization for all 4 CPUs.

I also tried table() function with TBL_PROCESSOR_INFO flag, but it
returns me a value greater than 100 for "load_avg" (in struct
tbl_processor).

Is my above assumption for net CPU utilisation correct?  
Please help me find out a system call for calculating utilisation of
each individual CPU on my machine.

Please do not respond with user commands such as iostat/sar/aux etc.
because due to a system limitation we cannot execute these commands
from C code using "system" or "popen".


             reply	other threads:[~2003-11-04 10:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-04 10:14 Saurabh Bhatt [this message]
2003-11-04 16:31 ` CPU load Eric de Redelijkheid
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