Re: [vserver] CGroup Swap extension in 2.6.38-rc4

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Mon 14 Feb 2011 - 15:17:42 GMT
Message-ID: <20110214151742.GL11496@MAIL.13thfloor.at>

On Mon, Feb 14, 2011 at 01:00:11PM +0100, Art -kwaak- van Breemen wrote:
> On Mon, Feb 14, 2011 at 10:49:48AM +0100, Romain Riviere wrote:
> > The result was a kernel in which the swap controller was indeed
> > disabled and could not be enabled by any means I could think of
> > (cgroups were mounted with "-o all", no sysctl for that option
> > ...). In effect, this breaks cgroups and prevents your guests
> > from starting properly in case you have any memory.memsw limits
> > set for them. The only solution was to build a new kernel with
> > CONFIG_CGROUP_MEM_RES_CTLR_SWAP_ENABLED set to "Yes". Now
> > perhaps there *is* a way to enable this particular subsys after
> > boot, and if anyone can find it, I'll be glad to hear about it
> > :-)

> It's a kernel commandline option, and it's actually explained in
> the help ;-).

who reads the help for a kernel config option :)

here the relevant part:

Memory Resource Controller Swap Extension comes with its price in
a bigger memory consumption. General purpose distribution kernels
which want to enable the feature but keep it disabled by default
and let the user enable it by swapaccount boot command line
parameter should have this option unselected.

For those who want to have the feature enabled by default should
select this option (if, for some reason, they need to disable it
then noswapaccount does the trick).

best,
Herbert
Received on Mon Feb 14 15:18:03 2011

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 14 Feb 2011 - 15:18:04 GMT by hypermail 2.1.8