Protecting against fork bombs

2003-04-05 Thread Adam
In light of the recent problems with cyclic Xft dependencies, it has
become painfully obvious how quickly a fork bomb can bring my computer
to a complete halt. 

Does FreeBSD provide any solutions for protecting against fork bombs?
When I tried installing Mozilla yesterday morning, the explosion of
'make' processes brought my box to it's knees in minutes. 

I'd really like a way of protecting myself from something like this
happening again.

-- 
Adam [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Protecting against fork bombs

2003-04-05 Thread Dirk-Willem van Gulik


On 5 Apr 2003, Adam wrote:

 In light of the recent problems with cyclic Xft dependencies, it has
 become painfully obvious how quickly a fork bomb can bring my computer
 to a complete halt.

ulimit -u 100

does not do that for you adequately enough (or setting the same in
/etc/login.conf (field maxproc)) ??

Dw/

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Protecting against fork bombs

2003-04-05 Thread Adam
On Sat, 2003-04-05 at 13:22, Dirk-Willem van Gulik wrote:

   ulimit -u 100
 
 does not do that for you adequately enough (or setting the same in
 /etc/login.conf (field maxproc)) ??

I suppose ulimit would do the trick .. Are there any standard guidelines
for how many processes to allow? This box is 1.5GHz Athlon, 512mb RAM,
1024mb swap ..

-- 
Adam [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Protecting against fork bombs

2003-04-05 Thread Giorgos Keramidas
On 2003-04-05 13:59, Adam [EMAIL PROTECTED] wrote:
On Sat, 2003-04-05 at 13:22, Dirk-Willem van Gulik wrote:
  ulimit -u 100

 does not do that for you adequately enough (or setting the same in
 /etc/login.conf (field maxproc)) ??

 I suppose ulimit would do the trick .. Are there any standard guidelines
 for how many processes to allow? This box is 1.5GHz Athlon, 512mb RAM,
 1024mb swap ..

Anything above 100 should probably be fine for individual users, even if
they want to run X11.  You can always experiment and increase as needed.

- Giorgos

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]