Hi Ken,

That's a great idea. I can add a regex check for %; i.e. max_workers => '25%' and set the value accordingly. It will clamp to 1 minimum and MCE::Util::get_ncpu() maximum.

With regards to max_workers => 'auto', that limits to 8 max including on machines with more than 8 logical cores. It was a safety mechanism at the time to not have MCE consume more cores for heavy IO related tasks. Basically, I did not want for MCE to be the reason why a server went down.

auto*0 is not a bug. The minimum number of workers is 1.


In reply to Re: MCE - max_workers by marioroy
in thread MCE - max_workers by kcott

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.