[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#566727: linux-image-2.6.32 missing memory cgroup controllers



On Sun, 24 Jan 2010, Brian Kroth wrote:

> Package: linux-image-2.6.32-trunk-amd64
> Version: 2.6.32-5
> Severity: wishlist
> 
> Support for memory cgroups controllers are not included in the new
> 2.6.32 kernel.  This would be nice say for putting limits on a how much
> memory a group of VMs can use.
> 
> I believe the following two options need to be enabled in the kernel:
> CONFIG_RESOURCE_COUNTERS
> CONFIG_CGROUP_MEM_RES_CTLR
> 
> Here's some more info:
> 
> # dpkg -l | grep linux-image-2.6.32
> ii  linux-image-2.6.32-trunk-amd64          2.6.32-5 Linux 2.6.32 for 64-bit PCs
> 
> # uname -a
> Linux oberon 2.6.32-trunk-amd64 #1 SMP Sun Jan 10 22:40:40 UTC 2010 x86_64 GNU/Linux
> 
> # cat /proc/cgroups 
> #subsys_name    hierarchy       num_cgroups     enabled
> cpuset  0       1       1
> ns      0       1       1
> cpu     11      8       1
> cpuacct 11      8       1
> devices 11      8       1
> freezer 0       1       1
> net_cls 0       1       1
> 
> # cat /etc/debian_version 
> squeeze/sid
> 
> See Also:
> http://berrange.com/personal/diary/2009/12/using-cgroups-with-libvirt-and-lxckvm
> 
> Let me know if you need any more info.
> 
> Thanks,
> Brian

see ongoing discussions about lxc flavour, you might want to jump in.

current conclusion is that we might enable aboves,
but disable it on boot with modprobe.conf to not get overheads
for the generic linux images.

-- 
maks



Reply to: