| 
	
 | 
 Posted by Jerry Stuckle on 09/29/07 18:51 
qwertycat@googlemail.com wrote: 
> On Sep 29, 3:49 pm, Andy Hassall <a...@andyh.co.uk> wrote: 
>>  So you're spawning 500 processes? Do you have a very large number of CPUs to 
>> run them on? Otherwise only a few will actually be running at any time, and 
>> you'll be losing useful throughput to overhead, surely. 
>> 
>  
> Maybe the example I gave was bad :) How about PHP script with launches 
> 4 children, with each child forking another 5 children (20 processes) 
>  
> Would this development headaches or possible extra bugs? 
>  
 
Just wondering - why do you need to fork processes, anyway?  There's a  
lot of overhead in doing it, and if they're all CPU bound anyway you  
aren't going to gain anything (unless you have a potload of CPU's). 
 
Forking is good if you have different processes using different  
resources.  But when they have to contend for the same resource,  
performance often goes down. 
 
--  
================== 
Remove the "x" from my email address 
Jerry Stuckle 
JDS Computer Training Corp. 
jstucklex@attglobal.net 
==================
 
  
Navigation:
[Reply to this message] 
 |