OpenVZ Forum


Home » General » Support » *SOLVED* Top on VE0
*SOLVED* Top on VE0 [message #8123] Wed, 08 November 2006 14:03 Go to next message
youp is currently offline  youp
Messages: 82
Registered: September 2005
Location: Belgium
Member

i try to search wich process consume my CPU

with the command top , i have 0% idle , 50% user and 47,3% system , but in the list of process , i can't see who ???

is there an other method ?

14:58:10 up 63 days, 18:32, 2 users, load average: 1.35, 1.70, 1.81
189 processes: 188 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 50.0% 0.0% 47.3% 0.0% 2.6% 0.0% 0.0%
Mem: 1033352k av, 1028596k used, 4756k free, 0k shrd, 8776k buff
209376k active, 785416k inactive
Swap: 522104k av, 20120k used, 501984k free 833240k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND

1 root 16 0 1508 360 1356 S 0.0 0.0 0:00 0 init
2 root RT 0 0 0 0 SW 0.0 0.0 0:00 0 migration/0/0
3 root 39 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0
4 root 5 -10 0 0 0 SW< 0.0 0.0 0:00 0 events/0
5 root 5 -10 0 0 0 SW< 0.0 0.0 0:00 0 khelper
6 root 5 -10 0 0 0 SW< 0.0 0.0 0:00 0 kacpid
16 root 5 -10 0 0 0 SW< 0.0 0.0 0:00 0 kblockd/0


vmstat 1 :

vmstat 1
procs memory swap io system cpu
r b swpd free buff cache si so bi bo in cs us sy wa id
3 0 20120 8300 9640 821492 0 0 6 0 0 5 7 6 1 7
4 0 20120 8428 9644 822008 0 0 516 0 0 558 79 21 0 0
3 0 20120 7356 9664 822524 0 0 516 372 0 625 78 22 0 0
3 0 20120 7484 9664 823040 0 0 512 0 0 576 77 23 0 0
2 0 20120 14620 9676 823628 12 0 600 72 0 478 59 41 0 0
3 0 20120 14720 9688 824012 40 0 428 92 0 486 59 41 0 0
2 0 20120 13656 9688 824684 0 0 672 0 0 539 59 41 0 0


kernel is 2.6.8-022stab078-up on fedora core 1

thx Wink

[Updated on: Fri, 10 November 2006 06:33] by Moderator

Report message to a moderator

Re: Top on VE0 [message #8139 is a reply to message #8123] Thu, 09 November 2006 10:53 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hmmm... do you have this in VE or on HN?

Thanks!
Re: Top on VE0 [message #8143 is a reply to message #8139] Thu, 09 November 2006 11:50 Go to previous messageGo to next message
youp is currently offline  youp
Messages: 82
Registered: September 2005
Location: Belgium
Member

IN HW
Re: Top on VE0 [message #8145 is a reply to message #8123] Thu, 09 November 2006 12:08 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
What about `ps aux` command? There is CPU% column... May be it fits you?
Re: Top on VE0 [message #8146 is a reply to message #8145] Thu, 09 November 2006 12:12 Go to previous messageGo to next message
youp is currently offline  youp
Messages: 82
Registered: September 2005
Location: Belgium
Member

ok, i have no load now, i will test it later ,
thanks Wink
Re: Top on VE0 [message #8149 is a reply to message #8123] Thu, 09 November 2006 12:56 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

the explanation can be very easy!
imagine some tasks, which spawns a child process, which does some job and exits. Parent spawns another one and so on.
In this case CPU consumption is 100%, but top can't catch these processes (they work very little time and exit), so top doesn't
show you any processes consuming the 99% CPU Smile
An example of such situation is gcc compilation of some project. each file is compiled quite quickly.

AFAIR there was an option in top to show cumulitive process time. At least there was such an option in ps.


http://static.openvz.org/userbars/openvz-developer.png
Re: Top on VE0 [message #8150 is a reply to message #8149] Thu, 09 November 2006 13:12 Go to previous messageGo to next message
youp is currently offline  youp
Messages: 82
Registered: September 2005
Location: Belgium
Member

yes there is there a possibility , but in my case, i don't think,
because the load is very long (hours) , and yesterday, i have restarded a httpd, mysql on HN and strangely the load goes down. and nothing in top Sad
Re: Top on VE0 [message #8220 is a reply to message #8150] Fri, 10 November 2006 16:14 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

the same can happen with http. if it runs some CGIs scripts or such things.
i.e. http itself consumes little CPU, but it's scripts...


http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: Kernel Errors
Next Topic: Shorewall Setup
Goto Forum:
  


Current Time: Sun Aug 04 13:16:19 GMT 2024

Total time taken to generate the page: 0.05070 seconds