Re: PHP CLI & Forking children



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
==================
.



Relevant Pages

  • RE: What am I doing wrong tracking progress?
    ... I assign resources to tasks. ... the automatic leveling to split tasks, and add the urgent task to the ... assume that there is some overhead, e.g., a task that is estimated to ... calendar to block off some hours in each day for overhead. ...
    (microsoft.public.project)
  • What am I doing wrong tracking progress?
    ... I assign resources to tasks. ... the automatic leveling to split tasks, and add the urgent task to the ... assume that there is some overhead, e.g., a task that is estimated to ... I've seen Gantt charts, I believe produced by Project, where there's ...
    (microsoft.public.project)
  • Denesting
    ... If the resources of both processors were ... >> rid of all of that overhead. ... advantage of optimizing in that way versus simple inlining. ...
    (comp.lang.forth)
  • Re: Win7 Spywares
    ... It came on the laptop I bought last year and it is an overhead hog, but uninstalling it did not work well either. ... Norton for a non primary application (cad/cam/cae/productivity/etc. ... netbook version on my netbook. ... but Norton seems to use less resources than Nod32 or Vipre did. ...
    (rec.food.cooking)
  • Re: Win7 Spywares
    ... But Avira is fabulous and a LOT less overhead for machine ... Does it have the ability to make Norton disappear? ... netbook version on my netbook. ... but Norton seems to use less resources than Nod32 or Vipre did. ...
    (rec.food.cooking)