Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 surveying the Monastery: (13)
As of 2014-09-19 18:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (144 votes), past polls