Unix Technical Forum

Monitoring CPU load

This is a discussion on Monitoring CPU load within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Dear all, I'm running slackware 10 in commandline mode. I have an application which I suspect is eating a ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 04:47 AM
TheMaxer
 
Posts: n/a
Default Monitoring CPU load

Dear all,

I'm running slackware 10 in commandline mode. I have an application
which I suspect is eating a lot of CPU time, e.g. cpu load close 100%
all the time. How can I monitor cpu load from the command line? Is a
tool available that prints cpu load somewere to the console all the
time?

Thnx

Max
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 04:47 AM
No_One
 
Posts: n/a
Default Re: Monitoring CPU load

On 2008-02-11, TheMaxer <max@max-irene.demon.nl> wrote:
> Dear all,
>
> I'm running slackware 10 in commandline mode. I have an application
> which I suspect is eating a lot of CPU time, e.g. cpu load close 100%
> all the time. How can I monitor cpu load from the command line? Is a
> tool available that prints cpu load somewere to the console all the
> time?
>
> Thnx
>
> Max


Maybe tload is what you're looking for

man tload

ken
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 04:47 AM
Joost Kremers
 
Posts: n/a
Default Re: Monitoring CPU load

TheMaxer wrote:
> How can I monitor cpu load from the command line? Is a
> tool available that prints cpu load somewere to the console all the
> time?


top


--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 04:47 AM
No_One
 
Posts: n/a
Default Re: Monitoring CPU load

On 2008-02-11, No_One <no_one@no_where.com> wrote:
> On 2008-02-11, TheMaxer <max@max-irene.demon.nl> wrote:
>> Dear all,
>>
>> I'm running slackware 10 in commandline mode. I have an application
>> which I suspect is eating a lot of CPU time, e.g. cpu load close 100%
>> all the time. How can I monitor cpu load from the command line? Is a
>> tool available that prints cpu load somewere to the console all the
>> time?
>>
>> Thnx
>>
>> Max

>
> Maybe tload is what you're looking for
>
> man tload
>
> ken


as a follow up to my followup you might try htop...it's not part of the
slack distro, however, the source is a breeze to compile...or try top...htop
has somewhat more options.

ken
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 04:47 AM
Tom Newton
 
Posts: n/a
Default Re: Monitoring CPU load

On 2008-02-11, TheMaxer <max@max-irene.demon.nl> wrote:
> Dear all,
>
> I'm running slackware 10 in commandline mode. I have an application
> which I suspect is eating a lot of CPU time, e.g. cpu load close 100%
> all the time. How can I monitor cpu load from the command line? Is a
> tool available that prints cpu load somewere to the console all the
> time?
>


Here's a script you can play with:

watch -n 5 "/usr/bin/top -b -n 1 | head -n 5"

Tom

--
calhobbit (at)
gmail [DOT] com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 04:47 AM
geep
 
Posts: n/a
Default Re: Monitoring CPU load

On Mon, 11 Feb 2008 00:31:34 -0800, TheMaxer wrote:

> Dear all,
>
> I'm running slackware 10 in commandline mode. I have an application
> which I suspect is eating a lot of CPU time, e.g. cpu load close 100%
> all the time. How can I monitor cpu load from the command line? Is a
> tool available that prints cpu load somewere to the console all the
> time?
>
> Thnx
>
> Max


Hi Max,

At http://www.bootchart.org/ there's a tool called bootchart.
It doesn't log to the command line, but it does produce a nice
chart showing cpu and disk usage. It's default use is to profile the
boot processes, but it can also be used to monitor a specific
application, when it will also log any related processes.

e.g. to monitor firefox, start firefox with the bootchart logger:
sudo /sbin/bootchartd start firefox
which will profile firefox, run-mozilla.sh and firefox-bin

Good luck
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 04:47 AM
Old Man
 
Posts: n/a
Default Re: Monitoring CPU load

Tom Newton wrote:

> On 2008-02-11, TheMaxer <max@max-irene.demon.nl> wrote:
>> Dear all,
>>
>> I'm running slackware 10 in commandline mode. I have an application
>> which I suspect is eating a lot of CPU time, e.g. cpu load close 100%
>> all the time. How can I monitor cpu load from the command line? Is a
>> tool available that prints cpu load somewere to the console all the
>> time?
>>

>
> Here's a script you can play with:
>
> watch -n 5 "/usr/bin/top -b -n 1 | head -n 5"
>
> Tom
>


Or, do the same thing with
top
Four keystrokes. One process. Zero disk space. Zero dumbass ODE factor.

--
Old Man

Playing with the ODE will make you blind.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 04:47 AM
Keith Keller
 
Posts: n/a
Default Re: Monitoring CPU load

On 2008-02-11, Old Man <bill@witch.lan.invalid> wrote:
> Tom Newton wrote:
>>
>> watch -n 5 "/usr/bin/top -b -n 1 | head -n 5"

>
> Or, do the same thing with
> top
> Four keystrokes. One process. Zero disk space. Zero dumbass ODE factor.


True, but ''Tom's'' has comedic value.

--keith

--
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 04:47 AM
Old Man
 
Posts: n/a
Default Re: Monitoring CPU load

Keith Keller wrote:

>
> True, but ''Tom's'' has comedic value.
>


OK, I'll admit to a chuckle.

--
Old Man

Playing with the ODE will make you go blind.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-26-2008, 02:30 PM
goarilla@work
 
Posts: n/a
Default Re: Monitoring CPU load

TheMaxer wrote:
> Dear all,
>
> I'm running slackware 10 in commandline mode. I have an application
> which I suspect is eating a lot of CPU time, e.g. cpu load close 100%
> all the time. How can I monitor cpu load from the command line? Is a
> tool available that prints cpu load somewere to the console all the
> time?
>
> Thnx
>
> Max


if you have another box with an X server
you can run gkrellmd on the box
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:56 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com