Re: PHP CLI & Forking children
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Sat, 29 Sep 2007 14:51:29 -0400
qwertycat@xxxxxxxxxxxxxx wrote:
On Sep 29, 3:49 pm, Andy Hassall <a...@xxxxxxxxxxx> 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@xxxxxxxxxxxxx
==================
.
- Follow-Ups:
- Re: PHP CLI & Forking children
- From: qwertycat
- Re: PHP CLI & Forking children
- References:
- PHP CLI & Forking children
- From: qwertycat
- Re: PHP CLI & Forking children
- From: Andy Hassall
- Re: PHP CLI & Forking children
- From: qwertycat
- PHP CLI & Forking children
- Prev by Date: Re: newbie question: <?=$variable?> yields no output
- Next by Date: Re: New To PHP
- Previous by thread: Re: PHP CLI & Forking children
- Next by thread: Re: PHP CLI & Forking children
- Index(es):
Relevant Pages
|