Find the answer to your Linux question:
Results 1 to 2 of 2
Hi All, I am running my application on a dual cpu debian linux 3.0 (2.4.19 kernel). For my application: <sar -U ALL> CPU %user %nice %system %idle ... 10:58:04 0 ...
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    1

    doubt in "top" %CPU and "sar" output

    Hi All,

    I am running my application on a dual cpu debian linux 3.0 (2.4.19 kernel).

    For my application:

    <sar -U ALL>
    CPU %user %nice %system %idle
    ...
    10:58:04 0 153.10 0.00 38.76 0.00
    10:58:04 1 3.88 0.00 4.26 0.39
    10:58:19 0 143.41 0.00 36.95 5.17
    10:58:19 1 2.84 0.00 3.10 9.04
    ...

    <sar>
    CPU %user %nice %system %idle
    10:58:04 all 78.34 0.00 21.66 0.00
    10:58:19 all 73.03 0.00 19.87 7.10

    The %CPU output in "top" output shows a different value at those times(more than 90%),

    do "top" %CPU and "sar" output should be the same?

    Also 153% (more than 100%) is an usual "sar" behaviour?

    Please help.

    //Jaduks

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    Were both done at exactly the same moment? I know from just top that cpu will change moment by moment on any given process.
    Linux Mint + IceWM Registered:#371367 New Members: click here

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •