CPU load

From: Saurabh Bhatt (saurabhbhatt_at_fastmail.fm)
Date: 11/04/03

  • Next message: Eric de Redelijkheid: "Re: CPU load"
    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".


  • Next message: Eric de Redelijkheid: "Re: CPU load"

    Relevant Pages

    • Re: w3wp.exe takes 100% processor
      ... Since I had cpu utilisation of w3wp, I created test.asp with only one sql ... All web site content is in ASP. ...
      (microsoft.public.inetserver.iis)
    • MDAC206 PassPlay results
      ... CPU 6.3% ... MDAC206 Disk Light driver ... Estimated MB/sec Write Tests 1, 2, 4 KB Blocks ... Write CPU Utilisation ...
      (comp.sys.ibm.ps2.hardware)
    • Re: W9xNT MCA Adapters - RAID-207 results.
      ... CPU utilization looks better. ... Disk light works, ... Estimated MB/sec Write Tests 1, 2, 4 KB Blocks ... Write CPU Utilisation ...
      (comp.sys.ibm.ps2.hardware)
    • Re: High CPU Usage After KB958644
      ... CPU usage was a bit out of control again today so we uninstalled the update. ... We installed the critical update KB958644 on a Windows Server 2008 ... CPU utilisation range for the whole day even under fairly heavy load. ...
      (microsoft.public.windows.server.general)
    • SP causes 100% CPU
      ... Everytime I try the CPU utilisation goes to ... I have tried booting in Safe Mode to run the sp, no joy, tried ... no joy - does anyone have the answer to this before these pcs get ...
      (microsoft.public.win2000.general)