Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

How to capture/log all processes cpu utilization?

by koti688 (Sexton)
on Mar 31, 2009 at 05:08 UTC ( #754325=perlquestion: print w/replies, xml ) Need Help??
koti688 has asked for the wisdom of the Perl Monks concerning the following question:

How to find Total CPU Utilization, Resource utilization of a Linux System.?

I am running a backup from my windows system on to the Linux server. I want to capture CPU Utilization, Resource utilization through Perl script of that Linux system. i want like, it will aggregate all the statistics from a start point of time to end point of time of any particular operation

Please help.
  • Comment on How to capture/log all processes cpu utilization?

Replies are listed 'Best First'.
Re: How to capture/log all processes cpu utilization?
by naikonta (Curate) on Mar 31, 2009 at 05:52 UTC
    Well, any result from searching CPU on CPAN fits to what you need?

    However, if what you want is measuring processes within the program, perhaps Benchmark can help you.


    Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Re: How to capture/log all processes cpu utilization?
by planetscape (Chancellor) on Mar 31, 2009 at 07:36 UTC

    So what have you tried? You must show at least minimal effort to help yourself; PM is not a script-o-matic.

    HTH,

    planetscape
Re: How to capture/log all processes cpu utilization?
by zentara (Archbishop) on Mar 31, 2009 at 10:36 UTC
Re: How to capture/log all processes cpu utilization?
by cdarke (Prior) on Mar 31, 2009 at 07:44 UTC
    sar
      sar ?? what is it ?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://754325]
Approved by planetscape
help
Chatterbox?
[Discipulus]: choroba if let your company to hire Tanktalus and marioroy ... what a big fishing!
[Discipulus]: i choice prague!!
[choroba]: 1200 years is enough :-)
[marioroy]: Lady_Aleena my $ans = qx! find . -name "*.pl" -exec ls -l {} \\; !;
[Tanktalus]: My basic problem right now is that if I were willing to move, I could be back in Toronto with a pay raise. We have a number of reasons for not wanting to do that.
[marioroy]: I had to backslash the backslash inside qx.
[Tanktalus]: marioroy++ # nice catch
[Lady_Aleena]: marioroy, that makes kinda makes sense.
[Discipulus]: yes i can survive also in younger town.. but when i passed i saw many strange letters..
[Lady_Aleena]: marioroy, sorry, I am not making sense right now.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-04-23 20:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.