Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Reduce CPU utilization time in reading file using perl

by aaron_baugher (Deacon)
on Sep 27, 2013 at 18:09 UTC ( #1056056=note: print w/ replies, xml ) Need Help??


in reply to Reduce CPU utilization time in reading file using perl

As others have said, there are better ways to do this. But as for your question on CPU usage: the 99.9% that ps is reporting means that your perl process is using 99.9% of the CPU that is being used. So no other processes are using much to speak of. The usage reported by top is based on total capacity, so idle time is included in the total there.

To reduce a process's load on a system, see nice or the section on nice in your shell's man page.

Aaron B.
Available for small or large Perl jobs; see my home node.


Comment on Re: Reduce CPU utilization time in reading file using perl
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056056]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-11-29 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (203 votes), past polls