Re: Preventing Accidentally Fork Bombing My Box

2003-12-20 Thread George Schlossnagle
On Dec 20, 2003, at 12:58 AM, R. Joseph Newton wrote: Dan Anderson wrote: I'm creating an app that uses forks in a number of places to do things quicker. Unfortunately, I have a bad habit of accidentally fork bombing my box. This is a pretty good sign that you are over-using the fork command. E

Re: Preventing Accidentally Fork Bombing My Box

2003-12-19 Thread R. Joseph Newton
Dan Anderson wrote: > I'm creating an app that uses forks in a number of places to do things > quicker. Unfortunately, I have a bad habit of accidentally fork bombing > my box. This is a pretty good sign that you are over-using the fork command. Efficiently designed programs can usually run pret

Re: Preventing Accidentally Fork Bombing My Box

2003-12-19 Thread drieux
On Dec 19, 2003, at 11:33 AM, Dan Anderson wrote: [..] I'll do something dumb, like fork in a loop while $number_forks < $fork_this_many. [..] You might want to have a WAY different strategy! Remember both sides of the fork get a copy of the code space - and as such the first f

RE: Preventing Accidentally Fork Bombing My Box

2003-12-19 Thread Bob Showalter
Dan Anderson wrote: > I'm creating an app that uses forks in a number of places to do things > quicker. Unfortunately, I have a bad habit of accidentally > fork bombing > my box. Is there any way I can run a perl process (even if > it's a Linux > command) so that it wont eat up all available reso

Re: Preventing Accidentally Fork Bombing My Box

2003-12-19 Thread Dan Anderson
drieux <[EMAIL PROTECTED]> writes: > On Dec 19, 2003, at 8:55 AM, Dan Anderson wrote: > [..] > > I'm creating an app that uses forks in a number of places to do things > > quicker. Unfortunately, I have a bad habit of accidentally fork > > bombing > > my box. > > I'm not sure I get this phrase '

Re: Preventing Accidentally Fork Bombing My Box

2003-12-19 Thread drieux
On Dec 19, 2003, at 8:55 AM, Dan Anderson wrote: [..] I'm creating an app that uses forks in a number of places to do things quicker. Unfortunately, I have a bad habit of accidentally fork bombing my box. I'm not sure I get this phrase 'fork bombing' to begin with, do you mean that you wind up fo

RE: Preventing Accidentally Fork Bombing My Box

2003-12-19 Thread Tom Kinzer
nope, looks like it's no safety net for CPU or anything, just compartmentalized namespace and such. -Tom Kinzer -Original Message- From: Tom Kinzer [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 9:27 AM To: Dan Anderson; Perl Beginners Subject: RE: Preventing Accidentally

RE: Preventing Accidentally Fork Bombing My Box

2003-12-19 Thread Tom Kinzer
use safe ? just a guess if it will work for this problem. check it out. -Tom Kinzer -Original Message- From: Dan Anderson [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 8:56 AM To: Perl Beginners Subject: Preventing Accidentally Fork Bombing My Box I'm creating an app that