Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to Monitor System Resources

by sflitman (Hermit)
on Oct 26, 2008 at 04:07 UTC ( #719606=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Sys::Info;
    ...
    printf "There are %d CPUs\n"  , $cpu->count || 1;
    printf "CPU load: %s\n"       , $cpu->load  || 0;
    exit;
    
  2. or download this
    CPU: 2 x Intel(R) Pentium(R) 4 CPU 2.80GHz
    CPU speed is 2801.015 MHz
    There are 2 CPUs
    CPU load: 0.21
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2016-06-25 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (325 votes). Check out past polls.