Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My server (PC with CentOS 5) is out of resources, consuming 100% of the cpu, but the list of processes do not add up to anything close to that, they add up to around 15%. What is using the other 85% of the cpu?
I'll appreciate any hints or ideas.
Here is a dump of the top command:
top - 14:57:20 up 5 days, 21:06, 2 users, load average: 4.04, 3.65, 2.53
Tasks: 69 total, 5 running, 64 sleeping, 0 stopped, 0 zombie Cpu(s): 56.0%us, 44.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 499352k total, 458176k used, 41176k free, 124836k buffers
Swap: 2048276k total, 25016k used, 2023260k free, 193796k cached
hey
as I can see you have a load on the memory too, 56% of the cpu usage is taken for user space and 44 is taken for the system space.
try to stop some services like httpd and see the result.
My server (PC with CentOS 5) is out of resources, consuming 100% of the cpu, but the list of processes do not add up to anything close to that, they add up to around 15%. What is using the other 85% of the cpu?
How the obvious answer - something that's not a "process" ???.
Start turning off what you don't need - SMP, SMC, ACPI ... whatever.
Turn one off, check if it helps, then goto the next. Basic problem resolution.
Personally I'd probably start with ACPI - do a search on "max_cstate".
Take note of the following "cat /sys/module/processor/parameters/max_cstate". Then I'd be inclined to maybe try "echo 1 > /sys/module/processor/parameters/max_cstate" and see if it has any effect.
You can always set it back to the original value or reboot to restore the value.
It's entirely possible that the CPU is being eaten up by swapping or waiting on other I/O. It looks like some amount of swap space is being used. Try running "vmstat 1 30" and see what the I/O load is. You can also get the relative loads from sar if you have that installed. If httpd is serving up a bunch of pages it's likely hitting the disk quite hard and that's a more likely explanation than something like ACPI IMO.
Not likely - that amount of swap usage over 5 days certainly isn't massive.
No mention of kswapd - which *is* a process you can see.
I/O wait contributes to the load averages, not the sys and usr CPU% - you'd see it in the other percentages.
Take note of the following "cat /sys/module/processor/parameters/max_cstate". Then I'd be inclined to maybe try "echo 1 > /sys/module/processor/parameters/max_cstate" and see if it has any effect.
You can always set it back to the original value or reboot to restore the value.
cat /sys/module/processor/parameters/max_cstate gives 8
Is that too big? What is that exactly?
The question is that the web server is not serving pages yet. Nobody is hitting it.
But regardless of the specific cause of the high load on that server, can anyone explain why the sum of cpu usages for all the processes reported by 'top' does not add up to the total cpu usage reported by the same utility?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.