in reply to Re: Useful number of childs revisited
in thread Useful number of childs revisited [SOLVED]

"Humour me..."

My pleasure:

karl@host~$ ./buk.pl 4 processes: 4 fork: 13.0191400051117 karl@host:~$ ./buk.pl 50 processes: 50 fork: 7.12985706329346

My best regards, karl

P.S.: British humour?

«The Crux of the Biscuit is the Apostrophe»

Replies are listed 'Best First'.
Re^3: Useful number of childs revisited
by BrowserUk (Patriarch) on May 08, 2015 at 12:57 UTC

    Could also post runs with 8, 16 & 32 please.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
    In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
      karl@host:~$ ./buk.pl 8 processes: 8 fork: 11.0194890499115 karl@host:~$ ./buk.pl 16 processes: 16 fork: 10.0188848972321 karl@host:~$ ./buk.pl 32 processes: 32 fork: 8.01892495155334

      «The Crux of the Biscuit is the Apostrophe»

        I think the problem is: P::FM doesn't start the next process exactly when the previous ends because the sleep granularity used is 1 whole second.

        Try setting  $pm->set_waitpid_blocking_sleep(0); and re-run the 4,8,16.32,50...


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
        In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked