Why do I see processes using more CPU that I set the limit for?

Quite often you will see process using 99% of CPU, even though the CPU limit is set to 25%.

This is due to the fact that top shows CPU usage based on a single CPU, while LVE allocates usage across all CPUs on the system.
So, on quad core server, 25% of CPU resources is 1 CPU And if top shows 99% usage — it is also just 1 CPU.
If you have dual core server, and set the limit at 25%, you will not see a process using more then 50% cpu when you view it via top
And on single core server, the limits will match.
 * LVE CPU limits are not exact, they can error within about 3% in either direction.

Leave a Reply

Your email address will not be published. Required fields are marked *