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.
One of my virtual RHEL 5.1 boxes is running slow, and I've found that system-level processing is very high:
Code:
[root@server ]# sar -u 2 50
02:17:57 PM CPU %user %nice %system %iowait %steal %idle
02:17:59 PM all 55.72 0.00 44.28 0.00 0.00 0.00
02:18:01 PM all 62.00 0.00 38.00 0.00 0.00 0.00
02:18:03 PM all 64.71 0.00 35.29 0.00 0.00 0.00
02:18:05 PM all 63.82 0.00 36.18 0.00 0.00 0.00
I'm not very experienced on these things, but I belive that such a high persentage of system level CPU usage is higher than normal. Can anyone confirm this? And does anyone know how to figure out exactly why the kernel is using so much CPU?
Have you checked the sar logs(usually at /var/log/sa/) and see if that helps ?
You have the memory usage, swapping details etc in these files which will tell you if this high cpu usage is related to that.
And if it is then you drive your investigations on those lines.
Other than that, if its happening all the while, you need to check the normal things, like top and see if you can find the process thats saturating the cpu
And to answer your question, Yes, this is high usage of the cpu(though I do not know the configuration details.)
The files found under /var/log/sa are very useful, as it displays a lot of information about the system. But do you know if there are any addons or something I can use to easier extrac relevant information for the files? As of now it's just a big text file, and I'm not quite sure what I'm looking for.
Why dont you try to use "top" or "htop" to see what is doing the high system load. I think is a bit more easier.
I do use "top", but since this problem seem to come and go I'm often forced to search the historical data collected by for example sar.
I'm quite puzzled, since I don't (yet, at least) see any reason why the kernel (i.e. system-level) is using so much CPU power.
I forgot to add there, that you might need to change some of the variables as some of the apps are in different location. Like "awk" or "mail" and so on. So good luck!
P.S. it doesn't work if the variables are not correct, also you can adjust the value of LOAD to lets say 55 or something similar.
Im using this on my servers and seems to work quite fine. Just try it and see in the mail whats making the high load.
Another neat trick is to use 'which' to set the locations after setting appropriate paths /bin:/sbin:/usr/bin:/usr/sbin etc... PROG=`which name` which makes things a bit more portable, although if you're using awk and sed and such you need to be careful that the output is the same, sometimes there are discrepancies.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.