Web Hosting Talk







View Full Version : Ouch! CPU states: 39.6% user, 60.3% system


protector330
04-18-2002, 06:28 AM
hello, my top tells me:

load average: 2.80, 2.89, 2.97
113 processes: 107 sleeping, 6 running, 0 zombie, 0 stopped
CPU states: 42.2% user, 57.7% system, 0.0% nice, 0.0% idle
Mem: 247480K av, 237784K used, 9696K free, 72K shrd, 64920K buff
Swap: 1020088K av, 7008K used, 1013080K free 60808K cached


I can't understand what is eating up my entire cpu.... at least I know what is eating so much ram.


Here are the only cpu eating processes running (output from webmin):

18.0 % /usr/libexec/webmin/proc/index_cpu.cgi
7.0 % ps -eo user,ruser,group,rgroup,pid,ppid,pgid,pcpu,vsz,nice,e ...
1.8 % supervise qmail-send
1.0 % sh -c ps -eo user,ruser,group,rgroup,pid,ppid,pgid,pcpu,vsz, ...
1 root 0.5 % init
user200 0.3 % proftpd: user200- 212.88.176.76: IDLE
0.2 % /usr/local/bin/multilog t /var/log/qmail

even If I logout from webmin TOP goes on telling me an extreme high cpu usage (nearly 100%).


I do not know where to start looking. I know that my apache needs some tweaking coz there are lots of modules loaded (every apache process eats nearly 40mb of ram, but it seems they do not eat any cpu (at least webmin or top does not tell me)).

Thanks a lot for your help!

bitserve
04-18-2002, 10:06 PM
Where's the 39.6% user and 60.3% system?

I see 42.2% user, 57.7% system.

Anyway, you're probably only seeing the user percentage in top.

Your system percentage is probably stuff like disk access and other IO.

Tim Greer
04-19-2002, 06:49 AM
Originally posted by bitserve
Where's the 39.6% user and 60.3% system?

I see 42.2% user, 57.7% system.


I would imagine that it's due to the fact that he pasted in the results of the latest/most high load at the time of his post, after he typed the subject.

Anyway, if you can get a top and/or ps report, that might be helpful. Check your logs for any indication as well, as you can be having some issue that is hardware related. I.e., bad RAM will make your load climb until the system locks up, but no processes in ps, top, etc. will report anything using much of any resources, due to it being a hardware issue. Of course, I don't get that impression in this case, not by the information you provided anyway.