Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: Useful number of childs revisited

by BrowserUk (Patriarch)
on May 08, 2015 at 13:30 UTC ( [id://1126089]=note: print w/replies, xml ) Need Help??


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

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

Replies are listed 'Best First'.
Re^6: Useful number of childs revisited
by karlgoethebier (Abbot) on May 08, 2015 at 13:58 UTC
    "...P::FM doesn't start the next process exactly..."

    It seems so :-)

    karl@host:~$ ./buk.pl 4 processes: 4 fork: 7.16779208183289 karl@host:~$ ./buk.pl 8 processes: 8 fork: 7.21501088142395 karl@host:~$ ./buk.pl 16 processes: 16 fork: 7.43911504745483 karl@host:~$ ./buk.pl 32 processes: 32 fork: 7.09555101394653 karl@host:~$ ./buk.pl 50 processes: 50 fork: 6.84368109703064 karl@host:~$ ./buk.pl 100 processes: 100 fork: 6.94914984703064 karl@host:~$ ./forker.pl 4 numbers: 2000 processes: 4 fork: 19.2249510288239 for: 33.1473791599274 karl@host:~$ ./forker.pl 50 numbers: 2000 processes: 50 fork: 19.63889503479 for: 33.3032410144806

    Thank you very much and best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1126089]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-25 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found