CPU usage not balanced over all cores
Hi,
Please tell me if the below is normal? I am running apache2 on a webserver but i cant get ubuntu to sort the load on the different cpu cores. As stated below it preferes to but everything on cpu0 but i would rather have it balanced over all the cores. I am running Ubuntu 12.04 on ESXi 5.0. Code:
Linux 3.2.0-23-generic (Server) 2012-09-17 _x86_64_ (12 CPU) http://tinypic.com/r/35jh1g7/6 Best regards |
In my experience, that is completely normal.
|
Quote:
When the CPU load is so light that one core is more than you need, why do you care how that load is distributed? |
Sometimes it spikes 100% on one core and almost anything on the others. When that happens i experience lag on the website.
|
Quote:
You have lots of apache2 processes (probably too many). It is very unlikely that anything is restricting the apache2 processes to one core or restricting the work to one apache2 process. So when the system is lagging, it is very likely that either the internet access bandwidth or the disk drive is the limiting factor and the CPU is not a limiting factor. Under those conditions, one core might be near 100% usage. But that does not imply that having one core near 100% usage caused the lag. |
Quote:
I see what you mean but it can't be a coincidence that when it spikes i can see one core being 100% due to the other being close to 0%. |
Not all programs are fully smp let alone ones that can support more than 4 cores.
This may include drivers too so that any part of any operation could be limited to a single core. Just curious, you only have one guest OS on esxi? |
Quote:
I am running only one more VM atm with near to 0 load atm due to that it has not yet been put in production. |
I'm sorry if this has already been looked at (I'm far from knowledgeable abut these things) but could this be caused by Apache MPM settings?
http://httpd.apache.org/docs/2.2/mpm.html |
All times are GMT -5. The time now is 12:24 PM. |