delgarde at ihug.co.nz
Wed Feb 15 01:51:53 PST 2012
On Tue, 2012-02-14 at 21:04 -0600, Bruce Dubbs wrote:
> Fernando de Oliveira wrote:
> > I do not know what a "fork bomb" is and still do not know how to
> > "limit the number of processes and protect against a fork bomb".
> Take a look at wikipedia:
> You can protect against it by limiting the number of processes available
> to a user. Take a look at the bash man page and search for ulimit. If
> you want a little more detail, it is basically a kernel system call.
> See 'man setrlimit'.
On a related note, don't run "make -j", without giving a numeric
parameter. Doing so attempts to perform the compilation with as many
parallel processes as the dependency tree permits. Doing this on
something like the kernel *will* crash the machine.
(Yes, that *is* what I did yesterday, thanks to an unfortunate typo. Six
threads is good, but several thousand not so much.)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 198 bytes
Desc: This is a digitally signed message part
More information about the blfs-support