[opensuse] Processes amuck
I have 2 suse boxes that are web servers with load averages consistently above 65 (they are 4 processor intel boxes). Top shows : top - 15:52:36 up 359 days, 19:01, 3 users, load average: 66.08, 66.18, 66.10 Tasks: 393 total, 1 running, 392 sleeping, 0 stopped, 0 zombie Cpu(s): 35.9% us, 61.7% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.1% hi, 2.3% si Mem: 8305936k total, 7048988k used, 1256948k free, 294540k buffers Swap: 1048560k total, 148k used, 1048412k free, 5520856k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 20406 www 15 0 72072 12m 5284 S 15.1 0.2 1574:17 httpd 7870 www 15 0 71580 11m 5284 S 15.1 0.1 2344:59 httpd 6166 www 16 0 72824 12m 5284 S 14.8 0.2 4807:47 httpd 26408 www 17 0 71404 10m 5372 S 10.5 0.1 8030:04 httpd 10542 www 16 0 65032 10m 5284 S 10.2 0.1 11612:40 httpd 30603 www 16 0 73300 12m 5284 S 10.2 0.2 17962:34 httpd 25364 www 16 0 70488 10m 5272 S 10.2 0.1 4681:35 httpd I'm confused - and I'll admit that it's been a while since I've been a sys ad. Httpd runs in user space, right? So why am I not seeing system processes at the top of top? Or am I reading this incorrectly? What more can I be looking at to see what in system space is eating the system? Thanks in advance -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 05 December 2007 12:58, Kain, Becki (B.) wrote:
I have 2 suse boxes that are web servers with load averages consistently above 65 (they are 4 processor intel boxes). Top shows :
top - 15:52:36 up 359 days, 19:01, 3 users, load average: 66.08, 66.18, 66.10 Tasks: 393 total, 1 running, 392 sleeping, 0 stopped, 0 zombie Cpu(s): 35.9% us, 61.7% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.1% hi, 2.3% si Mem: 8305936k total, 7048988k used, 1256948k free, 294540k buffers Swap: 1048560k total, 148k used, 1048412k free, 5520856k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 20406 www 15 0 72072 12m 5284 S 15.1 0.2 1574:17 httpd 7870 www 15 0 71580 11m 5284 S 15.1 0.1 2344:59 httpd 6166 www 16 0 72824 12m 5284 S 14.8 0.2 4807:47 httpd 26408 www 17 0 71404 10m 5372 S 10.5 0.1 8030:04 httpd 10542 www 16 0 65032 10m 5284 S 10.2 0.1 11612:40 httpd 30603 www 16 0 73300 12m 5284 S 10.2 0.2 17962:34 httpd 25364 www 16 0 70488 10m 5272 S 10.2 0.1 4681:35 httpd
I'm confused - and I'll admit that it's been a while since I've been a sys ad. Httpd runs in user space, right? So why am I not seeing system processes at the top of top? Or am I reading this incorrectly? What more can I be looking at to see what in system space is eating the system?
I don't think your system is being "eaten." You have four processors, only one active process (at the moment you captured this snapshot), and that would have to be top itself, since by definition it must be running when it issues the various system calls (mostly reading from files in /proc) to get the raw data it presents. Furthermore, you CPU utilization is only about 36%. That's not an indication of an overtaxed system. The so-called "load average" is a very misleading indicator of system load. You're best looking at more basic indicators of system activity and load such as CPU utilization, I/O activity and swap rates.
Thanks in advance
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2007-12-05 at 15:58 -0500, Kain, Becki (B.) wrote:
I have 2 suse boxes that are web servers with load averages consistently above 65 (they are 4 processor intel boxes). Top shows :
top - 15:52:36 up 359 days, 19:01, 3 users, load average: 66.08, 66.18, 66.10 Tasks: 393 total, 1 running, 392 sleeping, 0 stopped, 0 zombie Cpu(s): 35.9% us, 61.7% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.1% hi, 2.3% si Mem: 8305936k total, 7048988k used, 1256948k free, 294540k buffers Swap: 1048560k total, 148k used, 1048412k free, 5520856k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 20406 www 15 0 72072 12m 5284 S 15.1 0.2 1574:17 httpd 7870 www 15 0 71580 11m 5284 S 15.1 0.1 2344:59 httpd 6166 www 16 0 72824 12m 5284 S 14.8 0.2 4807:47 httpd 26408 www 17 0 71404 10m 5372 S 10.5 0.1 8030:04 httpd 10542 www 16 0 65032 10m 5284 S 10.2 0.1 11612:40 httpd 30603 www 16 0 73300 12m 5284 S 10.2 0.2 17962:34 httpd 25364 www 16 0 70488 10m 5272 S 10.2 0.1 4681:35 httpd
I'm confused - and I'll admit that it's been a while since I've been a sys ad. Httpd runs in user space, right? So why am I not seeing system processes at the top of top? Or am I reading this incorrectly? What more can I be looking at to see what in system space is eating the system?
Thanks in advance
Becki, By default, top is sorting by CPU usage. You can change the sort order once you enter top by pressing the letter o. Or letter f will enable/disable columns you wish to view. Letter h will give you a list of options available inside top. You can also choose to view only processes of a certain user by entering top -u (username) -- ---Bryen--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I'm confused - and I'll admit that it's been a while since I've been a sys ad. Httpd runs in user space, right? So why am I not seeing system processes at the top of top? Or am I reading this incorrectly? What more can I be looking at to see what in system space is eating the system? I often saw that many processes consuming a lot of CPU are not shown by top and KSysGuard. Also my system load is usually around 2 while apparently less then 50% of CPU capacity is being used,
Kain, Becki (B.) wrote: mainly by p2p applications. Kind regards Philippe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Philippe Landau wrote:
Kain, Becki (B.) wrote:
I'm confused - and I'll admit that it's been a while since I've been a sys ad. Httpd runs in user space, right? So why am I not seeing system processes at the top of top? Or am I reading this incorrectly? What more can I be looking at to see what in system space is eating the system? I often saw that many processes consuming a lot of CPU are not shown by top and KSysGuard.
In 15 years of using top, I've never noticed any such thing. And KSysguard is just a GUI-frontend to top.
Also my system load is usually around 2 while apparently less then 50% of CPU capacity is being used,
System Load and CPU usage are only vaguely related. System load is the average length of the "runnable processes" queue in the process scheduler. Processes which are waiting on I/O activity to complete, or for some other event, or swapped out are not "runnable", and therefore do not contribue to the length of the run-queue. And poorly-designed code can run sluggishly on a system which has a lot of idle time and very low system load -- for instance, a database application in which entire tables are locked, rather than individual rows, which causes other processes or threads to be forced to wait until the first process unlocks the table.
mainly by p2p applications.
Kind regards Philippe
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Kain, Becki (B.) wrote:
I have 2 suse boxes that are web servers with load averages consistently above 65 (they are 4 processor intel boxes). Top shows :
top - 15:52:36 up 359 days, 19:01, 3 users, load average: 66.08, 66.18, 66.10 Tasks: 393 total, 1 running, 392 sleeping, 0 stopped, 0 zombie Cpu(s): 35.9% us, 61.7% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.1% hi, 2.3% si Mem: 8305936k total, 7048988k used, 1256948k free, 294540k buffers Swap: 1048560k total, 148k used, 1048412k free, 5520856k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 20406 www 15 0 72072 12m 5284 S 15.1 0.2 1574:17 httpd 7870 www 15 0 71580 11m 5284 S 15.1 0.1 2344:59 httpd 6166 www 16 0 72824 12m 5284 S 14.8 0.2 4807:47 httpd 26408 www 17 0 71404 10m 5372 S 10.5 0.1 8030:04 httpd 10542 www 16 0 65032 10m 5284 S 10.2 0.1 11612:40 httpd 30603 www 16 0 73300 12m 5284 S 10.2 0.2 17962:34 httpd 25364 www 16 0 70488 10m 5272 S 10.2 0.1 4681:35 httpd
I'm confused - and I'll admit that it's been a while since I've been a sys ad. Httpd runs in user space, right? So why am I not seeing system processes at the top of top? Or am I reading this incorrectly? What more can I be looking at to see what in system space is eating the system?
The default behavior of top is to sort in descending order by %CPU usage. Run top and hit the ? for more info... and a 2nd ? for even more info. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Dec 5, 2007 12:58 PM, Kain, Becki (B.)
I'm confused - and I'll admit that it's been a while since I've been a sys ad. Httpd runs in user space, right? So why am I not seeing system processes at the top of top? Or am I reading this incorrectly? What more can I be looking at to see what in system space is eating the system?
If you press the digit 1, top will break out your processor usage for Each of your processors. You will then see that you have about 9% utilization of each processor. Not something I'd worry about on a 4 processor box. Its a web server. Lots of things to do. Load average says that on average when it looks around for things that need work there are 65 tasks waiting. Some of your tasks show surprisingly high CPU percentage, and very long run times (seconds column). That is fairly unusual for http tasks which tend to be spawned as needed and shut down when no longer needed. Yours seem to run forever. These are all web server tasks, so you have only that one place to look to find the inefficiencies or run-aways. -- ----------JSA--------- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Aaron Kulkis
-
Bryen
-
John Andersen
-
Kain, Becki (B.)
-
Philippe Landau
-
Randall R Schulz