I've just started using Parallel::ForkManager in a script, it's pretty cool. The original, serial version of the script does a whole pile of API calls to BigCommerce for some information, and takes about 90 minutes to complete. Most of that time is waiting for the API response from BigCommerce.

The parallelized version with 6 kids takes 45 minutes to run (not bad). The same version with 50 kids (whee!) takes less than 13 minutes to complete. This is great, and the only problem I see is that the load gets up to between 15 and 17. The machine is a venerable IBM box with a Core 2 Duo CPU at 3 GHz, and doesn't seem to be too fussed by all of the processes zipping around.

There's 4G of RAM, and currently I see about 1G free; swap is the same size, and about 1/2M is used -- so just about nothing. The normal load for the machine is less than 1.0 -- right now, with two scripts running, it's about .50.

Is it safe to run with that many kids, under that load?

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.


In reply to OT: Parallel::ForkManager and suitable load (Ubuntu) by talexb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.