artificial limit, 1024 processes by user
Bryn M. Reeves
bmr at redhat.com
Mon May 16 16:30:48 UTC 2011
On 05/14/2011 08:35 PM, Henrik Nordström wrote:
> lör 2011-05-14 klockan 19:33 +0200 skrev Xose Vazquez Perez:
>
>> default is 24010, but it was reduced to 1024 by
>> user(included root) in: /etc/security/limits.d/90-nproc.conf
>> to prevent accidental fork bombs(see rhbz #432903).
>>
>> Is it still worth it? The kernel brings oom_kill.
>
> Yes it's needed.
>
> Also it's trivial to tune when needed, even on an per process basis,
> just use ulimit -u to set it to whatever you want (within the hard
> limits of the box)
Agreed. Just disable it and run something like the old "_(){ _&_& };_"* tricks
if anyone needs convincing (and to see the fun that oom kills can bring try
something like echo {0..10000000000} on a box with no memory ulimits).
Cheers,
Bryn.
* yes this may well break stuff.
More information about the devel
mailing list