Re: how many cpuunits have the quad core processor? [message #34532 is a reply to message #34530] |
Thu, 15 January 2009 14:30  |
khorenko
Messages: 533 Registered: January 2006 Location: Moscow, Russia
|
Senior Member |
|
|
Correct. If you set cpulimit=8 in your configuration, the Container will use 2% of each core.
Warning: i strongly do not recommend use of so low cpulimit. In fact i do not see many advantages of cpulimit use - why to limit the power if it's not used at the moment by other Containers?
But especially setting cpulimit to a small value can degrade the overall node's performance.
Let's imagine that poor Container with cpulimit=8 wants to write something to the disk. It grabs appropriate fs (/vz!) locks and start writing. Ooops! cpu time for that Container is over and now other processes from other Containers work for relatively long time. But imagine other process from other CT wants to write something.. it tries to get locks (for the same /vz!) and can so nothing cause lock is grabbed by "slow" process from the CT with small cpulimit.
So i believe cpuunits is better and more efficient regulator but again, please, do not set too different values for cpuunits due to possibly the same problem.
Thanks.
--
Konstantin
If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
|
|
|