<?xml version="1.0" encoding="utf-8"?>
<!-- If you are running a bot please visit this policy page outlining rules you must respect. https://www.livejournal.com/bots/ -->
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:lj="https://www.livejournal.com">
  <id>urn:lj:livejournal.com:atom1:openvz</id>
  <title>OpenVZ</title>
  <subtitle>OpenVZ</subtitle>
  <author>
    <name>OpenVZ</name>
  </author>
  <link rel="alternate" type="text/html" href="https://openvz.livejournal.com/"/>
  <link rel="self" type="text/xml" href="https://openvz.livejournal.com/data/atom"/>
  <updated>2011-01-20T16:53:15Z</updated>
  <lj:journal userid="9392309" username="openvz" type="community"/>
  <link rel="service.feed" type="application/x.atom+xml" href="https://openvz.livejournal.com/data/atom" title="OpenVZ"/>
  <entry>
    <id>urn:lj:livejournal.com:atom1:openvz:35500</id>
    <author>
      <name>Kir Kolyshkin</name>
    </author>
    <lj:poster user="k001" userid="990679"/>
    <link rel="alternate" type="text/html" href="https://openvz.livejournal.com/35500.html"/>
    <link rel="self" type="text/xml" href="https://openvz.livejournal.com/data/atom/?itemid=35500"/>
    <title>cpulimit is back in RHEL6 based kernel</title>
    <published>2011-01-20T16:53:15Z</published>
    <updated>2011-01-20T16:53:15Z</updated>
    <content type="html">Hard CPU limit (ability to specify that you don't want this container to use more than X per cent of CPU no matter what) is back in latest RHEL6-based kernel, &lt;a href="http://wiki.openvz.org/Download/kernel/rhel6/042test006.1" target="_blank" rel="nofollow"&gt;042test006.1, which has just been released&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The feature was only available for the stable (i.e RHEL4 and RHEL5-based) kernels, and was missing from all of our development kernels from 2.6.20 to 2.6.32. So while it was always there in stable branches, the feeling is like it's back.&lt;br /&gt;&lt;br /&gt;In order to use CPU limit feature, set the limit using &lt;code&gt;vzctl set $CTID --cpulimit X&lt;/code&gt;, where X is in per cent of one single CPU. For example, if you have single 2 GHz CPU and want container 123 to use no more than 1 GHz, use &lt;code&gt;vzctl set 123 --cpulimit 50&lt;/code&gt;. If you have 2 GHz quad-core system and want to use no more than 4 GHz, use &lt;code&gt;vzctl set 123 --cpulimit 200&lt;/code&gt;. Well, in the second case it might be better to just use &lt;code&gt;--cpus 2&lt;/code&gt;. Anyways, see vzctl man page.</content>
  </entry>
</feed>
