Changes

Jump to: navigation, search

Resource shortage

318 bytes added, 10:04, 21 March 2009
Additional explanation of cpulimit on multi-core servers.
vzctl set 101 --cpulimit 25 --save
</pre>
says that container 101 cannot ever have more than 25 percent of the cpu a CPU even if the cpu CPU is idle for the other 75% of the time. The limit is calculated as a percentage of a single CPU, not as a percentage of the server's CPU resources as a whole. In other words, if you have more than one CPU, you can set a cpulimit > 100. In a quad-core server, setting cpulimit to 100 permits a container to consume one entire core (and not 100% of the server).
{{Warning|cpulimit is not yet implemented in kernels > 2.6.18 (i.e. development ones). Use stable kernel if you want this feature.}}
8
edits

Navigation menu