Hello, I am new to using activeperl for my perl compiler as we just moved some services to a win2003 machine. I have a few scripts that are doing massive amounts of looping and comparing and sorting various data. This is a very CPU intensive activity, and Perl does a wonderful job at it, except on the win2003 machine.
The issue is that once this script is running and cranking the data, it is only using 25% of the CPU. The CPU is an Intel core2 Quad and when I look at the resource meter, it is only using 1 of the 4 available "CPUs". I am suspecting that is why it is taking much longer to run these scripts on the windows machine as compared to our Linux boxes.
How can I tell activeperl to use all the "CPUs" or all the CPU capacity of the machine. I have searched this and found no real answers about it. I am looking at the monks for help.
Windows Server 2003 32bit, 4GB ram, ActivePerl 5.10.
Thanks.
(this was also posted at perl guru without any response, please forgive the "cross post")
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.