<div dir="ltr">Thank you for documenting this!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 13, 2013 at 4:58 PM, Ben Kochie <span dir="ltr"><<a href="mailto:ben@nerp.net" target="_blank">ben@nerp.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have made some improvements to the cgroup handling on m2.<br>
<br>
On boot, a number of things don't get setup correctly because threads were not being imported into the right container.  This is fixed.<br>
<br>
I also added an on-boot updater that should catch everything that is managed by upstart:<br>
<br>
/usr/local/sbin/update-<u></u>upstart-cgroups.sh<br>
<br>
This script is safe to run at any time.  It is useful if you need to adjust the limits for things in upstart.<br>
<br>
I also updated the usage tool to report percent of cgroup use.<br>
<br>
root@m2:~# get-cgroup-memory-use.sh<br>
  in-use    %      max    %    limit  cgroup<br>
------------------------------<u></u>------------------------------<u></u>-<br>
       0   0%        0   0%   262144  users<br>
    1200   7%     1876  11%    16384  udevd<br>
    1856  11%     3536  22%    16384  rsyslogd<br>
   20784   8%   108100  41%   262144  posfix<br>
  113784  22%   227092  43%   524288  mysqld<br>
    9652  29%    19412  59%    32768  munin-node<br>
    1232   4%     1564   5%    32768  monit<br>
   29396  15%    58920  30%   196608  memcached<br>
   97592  37%    97800  37%   262144  mailman<br>
    1452   9%     2052  13%    16384  getty<br>
     692   4%     1512   9%    16384  dbus-daemon<br>
     460   0%    16384   6%   262144  cron<br>
     652   2%     1676   5%    32768  clamsmtp<br>
   78368  40%   196608 100%   196608  clamav-freshclam<br>
  239840  61%   393216 100%   393216  clamav-daemon<br>
   12356  19%    12480  19%    65536  bind9<br>
    1296   8%     2592  16%    16384  avahi-daemon<br>
    1032   6%     1700  10%    16384  auditd<br>
     184   1%      496   3%    16384  atd<br>
  107136  10%   295600  28%  1048576  apache2<br>
     164   1%      456   3%    16384  acpid<br>
==============================<u></u>==============================<u></u>=<br>
  204792  10%        0   0%  2051776  Default<br>
<br>
-ben<br>
______________________________<u></u>_________________<br>
Rack mailing list<br>
<a href="mailto:Rack@lists.noisebridge.net" target="_blank">Rack@lists.noisebridge.net</a><br>
<a href="https://www.noisebridge.net/mailman/listinfo/rack" target="_blank">https://www.noisebridge.net/<u></u>mailman/listinfo/rack</a><br>
<br>
</blockquote></div><br></div>