Changes

Jump to: navigation, search

Resource shortage

453 bytes added, 10:31, 21 January 2011
cpulimit
says that container 101 cannot ever have more than 25 percent of a CPU even if the 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 CPU limits are only available in rhel5-based and rhel6-based kernels > and they behave a bit differently in them. In the rhel5 kernel the limit has a container-wide meaning. That said if you have e.g. a container of 2CPUS with the 100% cpulimit set, this container's usage of CPUs can be 100%/0% or 50%/50% or any other values, whose sum is 100%.6 In the rhel6 kernel the applied limit is divided between onlince CPUs proportionally and a busy CPU cannot borrow time from an idle one.18 (iI.e. development ones). Use stable kernel if you want this featurewith a 2 CPUs container and 100% limit set the usage of each CPU cannot exceed 50% in any case.}}
{{Stub}}
Anonymous user

Navigation menu