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

David Serrano dserrano5 at gmail.com
Tue May 17 08:04:13 UTC 2011


On Tue, May 17, 2011 at 09:10, Daniel Lezcano <daniel.lezcano at free.fr> wrote:
> On 05/17/2011 08:34 AM, Ulli Horlacher wrote:
>>
>> root at flupp:~# clp
>> Command Line Perl with readline support, @ARGV and Specials. Type "?" for help.
>> (perl):: undef $/; open F,'/tmp/1GB.tmp' or die; $_=<F>; print length
>>
>> 1073741824
>
> I don't know exactly what does your perl program

It reads the whole file into a variable and then prints the length of
that variable, which shows that the file has actually been read into
memory.


> When a process reaches the memory limit size then the container will
> begin to swap.

Yes, that's what I saw in a quick test.


--
David Serrano




More information about the lxc-users mailing list