[lxc-users] Fork-bomb test
Nishant Agrawal
nragrawal at cs.wisc.edu
Thu Nov 20 17:51:54 UTC 2014
I know that task limiting subsystem haven't made into the kernel source
code yet. But I have tried to use memory.kmem.limit_in_bytes - 1G, which
looks like implemented for the same purpose, even for more generic
purpose.
The notion behind that was to account kernel memory usage so that when
kernel stack grows because of new process it will eventually reach to a
limit after which OOM should come in picture and kill all the processes.
I am not able to see it happen though.
See discussion
https://lists.linuxcontainers.org/pipermail/lxc-devel/2013-May/004371.html
for more details.
Patch set which implements it:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1348688
Regards,
Nishant
On 2014-11-20 05:12, Robert Gierzinger wrote:
> Hi,
>
> Unfortunately this problem is still not solved.
> A task counter cgroup existed, but this did not make it into the
> kernel.
> I have been trying to solve this issue for quite a while, see
> http://comments.gmane.org/gmane.linux.kernel.cgroups/9368
> Some time ago the discussion started again referring to my mail (cant
> find it at the moment).
> Hope this issue is resolved soon.
>
> regards,
> Robert
>
>
>> Gesendet: Donnerstag, 20. November 2014 um 05:18 Uhr
>> Von: "Nishant Agrawal" <nragrawal at cs.wisc.edu>
>> An: lxc-users at lists.linuxcontainers.org
>> Betreff: [lxc-users] Fork-bomb test
>>
>> Hi Folks,
>>
>> I am trying to run fork bomb test inside a container to measure the
>> extent of isolation containers provide. I am observing that even after
>> putting all the available limits my host system becomes unresponsive
>> after some time. Can someone throw light what should be the issue?
>> Doesn't LXC handles situations like forkbomb?
>>
>> I am running linux kernel 3.13.0.36generic.
>> I am setting below limits on the program,
>>
>> memory.limit_in_bytes 2G
>> memory.soft_limit_in_bytes 1G
>> memory.memsw.limit_in_bytes 3G
>> memory.kmem.limit_in_bytes - 1G
>>
>> Any help is appreciated.
>>
>> Regards,
>> Nishant
>> _______________________________________________
>> lxc-users mailing list
>> lxc-users at lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-users
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
More information about the lxc-users
mailing list