Skip to contentSkip to conversation

2.6.11-rc3-bk: something very wrong with top

DISCUSSION Pavel Machek 2 participants 3 messages Feb 6, 2005

lore
Share & tools
lore
#0 lore raw

Hi!

There seem to be some problems with top:

top - 10:19:24 up 4 min, 3 users, load average: 0.74, 0.48, 0.21

Tasks:  58 total,   2 running,  56 sleeping,   0 stopped,   0 zombie
Cpu(s): 55.1% us,  6.4% sy,  0.0% ni,  0.0% id, 38.5% wa,  0.0% hi, 0.0% si
Mem:   1031424k total,    72840k used,   958584k free,     8804k buffers
Swap:  1953464k total,     5452k used,  1948012k free,    34860k cached
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  967 root      34  19  2128  620  456 R  0.6  0.1   0:00.35 top
    1 root      16   0  1580   80   56 S  0.0  0.0   0:03.27 init
    2 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
    3 root      10  -5     0    0    0 S  0.0  0.0   0:00.31 events/0
    4 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
    9 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread
   21 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
   97 root      10  -5     0    0    0 S  0.0  0.0   0:00.03 kblockd/0
  269 root      20   0     0    0    0 S  0.0  0.0   0:00.00 pdflush

...while compiling kernel, 50%+ time is spent in gcc, but top does not show it, or it shows it with something like 3% :-(. Same problem seems to be in 2.6.10-rc3... Does anybody else see that?
Pavel

Signature · 2 lines
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
#1 lore raw
Quoted 20 lines · Pavel Machek

There seem to be some problems with top:

top - 10:19:24 up 4 min, 3 users, load average: 0.74, 0.48, 0.21
Tasks: 58 total, 2 running, 56 sleeping, 0 stopped, 0 zombie
Cpu(s): 55.1% us, 6.4% sy, 0.0% ni, 0.0% id, 38.5% wa, 0.0% hi, 0.0% si
Mem: 1031424k total, 72840k used, 958584k free, 8804k buffers
Swap: 1953464k total, 5452k used, 1948012k free, 34860k cached

   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
   967 root      34  19  2128  620  456 R  0.6  0.1   0:00.35 top
     1 root      16   0  1580   80   56 S  0.0  0.0   0:03.27 init
     2 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
     3 root      10  -5     0    0    0 S  0.0  0.0   0:00.31 events/0
     4 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
     9 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread
    21 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
    97 root      10  -5     0    0    0 S  0.0  0.0   0:00.03 kblockd/0
   269 root      20   0     0    0    0 S  0.0  0.0   0:00.00 pdflush
Quoted 3 lines

...while compiling kernel, 50%+ time is spent in gcc, but top does not show it, or it shows it with something like 3% :-(. Same problem seems to be in 2.6.10-rc3... Does anybody else see that?

I can't say that I can see any difference between 2.6.10 and tip-of-tree.

In fact 2.4 does the same thing: cc1 is either not shown at all or is shown as taking just a few percent CPU. Occasionally it blips up to 50% or more.

Presumably cc1 just doesn't run long enough for it to register. How fast is your CPU?

#2 lore raw
Quoted 25 lines · Andrew Morton
Quoted 20 lines · Pavel Machek

There seem to be some problems with top:

top - 10:19:24 up 4 min, 3 users, load average: 0.74, 0.48, 0.21
Tasks: 58 total, 2 running, 56 sleeping, 0 stopped, 0 zombie
Cpu(s): 55.1% us, 6.4% sy, 0.0% ni, 0.0% id, 38.5% wa, 0.0% hi, 0.0% si
Mem: 1031424k total, 72840k used, 958584k free, 8804k buffers
Swap: 1953464k total, 5452k used, 1948012k free, 34860k cached

   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
   967 root      34  19  2128  620  456 R  0.6  0.1   0:00.35 top
     1 root      16   0  1580   80   56 S  0.0  0.0   0:03.27 init
     2 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
     3 root      10  -5     0    0    0 S  0.0  0.0   0:00.31 events/0
     4 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
     9 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread
    21 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
    97 root      10  -5     0    0    0 S  0.0  0.0   0:00.03 kblockd/0
   269 root      20   0     0    0    0 S  0.0  0.0   0:00.00 pdflush
Quoted 3 lines

...while compiling kernel, 50%+ time is spent in gcc, but top does not show it, or it shows it with something like 3% :-(. Same problem seems to be in 2.6.10-rc3... Does anybody else see that?

Quoted 5 lines

I can't say that I can see any difference between 2.6.10 and tip-of-tree.

In fact 2.4 does the same thing: cc1 is either not shown at all or is shown as taking just a few percent CPU. Occasionally it blips up to 50% or more.

It happened in 2.6.10, too... Okay, probably I have just too fast CPU. Sorry for the noise.

Quoted 2 lines

Presumably cc1 just doesn't run long enough for it to register. How fast is your CPU?

2GHz athlon64...
Pavel

Signature · 2 lines
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!