Find the answer to your Linux question:
Results 1 to 4 of 4
I am running top to try and see what is going on on one of our servers, the % cpu is regularly going over 100%. What does this mean? Code: ...
  1. #1
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,301

    RHEL top command

    I am running top to try and see what is going on on one of our servers, the % cpu is regularly going over 100%. What does this mean?

    Code:
    top - 12:23:02 up 46 days, 19:56,  3 users,  load average: 0.64, 0.88, 1.04
    Tasks: 133 total,   2 running, 131 sleeping,   0 stopped,   0 zombie
    Cpu(s): 33.7% us,  6.8% sy,  0.0% ni, 59.0% id,  0.3% wa,  0.1% hi,  0.0% si
    Mem:   4149120k total,  4010472k used,   138648k free,    38684k buffers
    Swap:  9614860k total,      908k used,  9613952k free,  2348836k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    28443 mysql     15   0 2014m 1.4g 4988 S  161 35.2  10494:10 mysqld
    23476 root      16   0  3940  984  764 R    0  0.0   0:00.14 top
    23486 root      16   0 12004 4196 3064 S    0  0.1   0:00.01 sagaZoneMinutel
        1 root      16   0  3428  548  468 S    0  0.0   0:05.03 init
        2 root      RT   0     0    0    0 S    0  0.0   0:00.45 migration/0
        3 root      34  19     0    0    0 S    0  0.0   0:26.99 ksoftirqd/0
        4 root      RT   0     0    0    0 S    0  0.0   0:00.34 migration/1
        5 root      34  19     0    0    0 S    0  0.0   0:01.91 ksoftirqd/1
        6 root      RT   0     0    0    0 S    0  0.0   0:00.32 migration/2
        7 root      34  19     0    0    0 S    0  0.0   0:04.77 ksoftirqd/2
        8 root      RT   0     0    0    0 S    0  0.0   0:00.29 migration/3
        9 root      34  19     0    0    0 S    0  0.0   0:25.03 ksoftirqd/3
       10 root       5 -10     0    0    0 S    0  0.0   0:00.06 events/0
       11 root       5 -10     0    0    0 S    0  0.0   0:00.01 events/1
       12 root       5 -10     0    0    0 S    0  0.0   0:00.03 events/2
       13 root       5 -10     0    0    0 S    0  0.0   0:00.00 events/3
       14 root      11 -10     0    0    0 S    0  0.0   0:00.00 khelper
    Another question is if I cat /proc/cpuinfo does that give an entry per core or per physical processor?

    Thanks
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  2. #2
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,301
    OK, Got the first one. By default top uses something irix mode which sums the % of each core. Pressing 'I' turns this off and gives sensible results
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  3. #3
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    it gives an entry per core/threading unit (if xeon with hyperthreading)

  4. #4
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,301
    Quote Originally Posted by coopstah13 View Post
    it gives an entry per core/threading unit (if xeon with hyperthreading)
    That's what I thought but I couldn't confirm it absolutely. Thanks
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

Posting Permissions

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