CPU load
From: Saurabh Bhatt (saurabhbhatt_at_fastmail.fm)
Date: 11/04/03
- Previous message: Karvinen Ilkka: "Looking for a 21164A 667MHz processor"
- Next in thread: Eric de Redelijkheid: "Re: CPU load"
- Reply: Eric de Redelijkheid: "Re: CPU load"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 4 Nov 2003 02:14:09 -0800
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".
- Previous message: Karvinen Ilkka: "Looking for a 21164A 667MHz processor"
- Next in thread: Eric de Redelijkheid: "Re: CPU load"
- Reply: Eric de Redelijkheid: "Re: CPU load"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|