[Lxc-users] lxc.cgroup.memory.limit_in_bytes has no effect

Ulli Horlacher framstag at rus.uni-stuttgart.de
Tue May 17 11:15:41 UTC 2011


On Tue 2011-05-17 (09:10), Daniel Lezcano wrote:

> > Why can a container process allocate more than 1 GB of memory if there is
> > 512 MB limit?
> 
> When a process reaches the memory limit size then the container will 
> begin to swap. This is not really what we want as 

Oh... no!


> In order to disable the swap, you have to set the 
> memory.memsw.limit_in_bytes = memory.limit_in_bytes.

Thanks! This does the trick!

-- 
Ullrich Horlacher              Server- und Arbeitsplatzsysteme
Rechenzentrum                  E-Mail: horlacher at rus.uni-stuttgart.de
Universitaet Stuttgart         Tel:    ++49-711-685-65868
Allmandring 30                 Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.rus.uni-stuttgart.de/




More information about the lxc-users mailing list