Here's a simple way to tell... presumably you are sequentially querying some number of devices through SNMP and you are wondering if parallelizing the task would result in a speedup. Just divide up the list of devices into N groups and run N copies of your program (one for each group) at the same time to see if it has any effect on the total running time.
Another metric you can look at is the wall-clock time versus the cpu-time of your program. If there is a large discrepancy, presumably it is due to waiting for replies from the devices you are querying.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|