There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You may be asking the wrong question.
Why do you need more CPU time? Is your process not getting all available time? Is it competing with other processes? (If so, why can't those other processes use less time?) Is the process IO bound? If so, getting more CPU time won't help. One way to check this is to simulate all IO by generating fake data for the process to chew on, but don't read or write from disk or other resources outside of the CPU/memory group. If the process suddenly speeds up by an order of magnitude, you need faster IO, not more CPU time. On the other hand, if simulating IO doesn't change the behavior, then either the process is swapping memory to disk, or it's CPU bound. If it's CPU bound, do you know why? What part of the process is taking the most time? Have you profiled it with one of the Devel profiling modules? (My favorite is Devel::SmallProf, though there are others with different strengths.]) You might also look at How (Not) To Ask A Question. -QM In reply to Re: getting more resource from perl
by QM
|
|