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

Re^2: Testing many devices - are threads the answer?

by McDarren (Abbot)
on May 12, 2009 at 14:33 UTC ( #763493=note: print w/replies, xml ) Need Help??

in reply to Re: Testing many devices - are threads the answer?
in thread Testing many devices - are threads the answer?

"The question you really need to ask is what is the bottleneck"
Although I haven't done any proper profiling, I'm quite certain (through observation of the logs that I create) that the bottleneck is caused through waiting for timeouts as each "offline" device is encountered. Whenever this happens, the script basically blocks and waits, before proceeding. The problem this creates for me (which I forgot to mention in my OP) is that I have been getting a significant number of false negatives, due to the time out being set too low. But increasing the time out by just a few seconds causes the total runtime to increase dramatically, hence my need to look at something like threading.

Darren :)

  • Comment on Re^2: Testing many devices - are threads the answer?

Replies are listed 'Best First'.
Re^3: Testing many devices - are threads the answer?
by Herkum (Parson) on May 13, 2009 at 13:36 UTC

    Chances were that timeouts would be a real issue especially for hardware. However, I mentioned this anyways because, no offense, too many people jump to a solution without understanding the problem. I wanted to suggest to ensure that at least someone think about this before heading down the wrong path.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://763493]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2018-06-20 23:33 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.