Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

CPU State vs. Process CPU usage - HP-UX

Help
2007-02-21
2013-05-08
  • I am using an HP-UX 10.20 system. I have both a CPU & Memory question.

    What is the difference between process CPU usage (%CPU per process) and the
    “USER” CPU state?

    From what I have been able to find and read online these two percentages are computed different ways.  However most people I talk to make the assumption that the sum of the CPU state should approximate the sum of individual process CPU usage.

    Should there be a correlation between the sum of the process CPU usage and the USER/SYSTEM CPU states?  Below is an example.

    Why is the amount of free memory greater than the real memory?

    Thank you in advance.

    System: SERVER Sun Mar 19 01:27:27 2006
    Load averages: 3.81, 3.21, 2.86
    117 processes: 116 sleeping, 1 running
    Cpu states:
    LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS
    3.81   1.6%   0.0%   2.8%  95.6%   0.0%   0.0%   0.0%   0.0%

    Memory: 32656K (26184K) real, 27532K (21516K) virtual, 154044K free  Page# ½

    TTY   PID USERNAME PRI NI   SIZE    RES STATE    TIME %WCPU  %CPU COMMAND
       ?  2263 user 154 20   472K  1348K sleep    4:59 11.71 11.69 busyApp
       ? 15053 user 154 20  2360K  1692K sleep    0:01 18.23  5.38 testProg
       ?  2251 user 154 20   476K  1388K sleep    1:15  1.40  1.40 backgroundPGM
       ?  2264 user 154 20   396K  1280K sleep    0:05  1.21  1.20 listSort
       ?  2230 user -32 20  4508K  1144K sleep    1:10  1.15  1.14 adderPGM