You are not logged in.

#1 2007-06-22 15:49:54

Urkburk
Member
From: Stockholm, Sweden
Registered: 2007-05-07
Posts: 17

Monitor CPU load (dual core)

Hi!

I just bought an Intel Core 2 Duo processor smile. I'd like to monitor the CPU usage - separately on both cores! How do I accomplish this?

Offline

#2 2007-06-22 15:51:49

lloeki
Member
From: France
Registered: 2007-02-20
Posts: 456
Website

Re: Monitor CPU load (dual core)

'htop', or 'top' and press '1'

Last edited by lloeki (2007-06-22 15:52:03)


To know recursion, you must first know recursion.

Offline

#3 2007-06-22 16:01:22

Urkburk
Member
From: Stockholm, Sweden
Registered: 2007-05-07
Posts: 17

Re: Monitor CPU load (dual core)

lloeki wrote:

'htop', or 'top' and press '1'

Thanks! big_smile

Is there any chance for me to get those percentages as normal output to the command line? (For use in scripts and such...)

Offline

#4 2007-06-22 16:50:49

jean-paul
Member
From: Germany
Registered: 2007-03-26
Posts: 61

Re: Monitor CPU load (dual core)

Hi,

what's about with http://conky.sourceforge.net/ ?

Is that a option for you?

Jean-Paul


I'm root. if you see me smile, you'd better have a backup!! smile

Offline

#5 2007-06-22 17:30:54

mac57
Member
From: St. Somewhere
Registered: 2006-01-06
Posts: 302
Website

Re: Monitor CPU load (dual core)

Another vote for Conky! A wonderful and hugely flexible system monitoring tool. It will monitor both processors separately as you wish, along with LOTS of other stuff. I can't say enough good things about it.


Cast off the Microsoft shackles Jan 2005

Offline

#6 2007-06-22 18:07:45

Urkburk
Member
From: Stockholm, Sweden
Registered: 2007-05-07
Posts: 17

Re: Monitor CPU load (dual core)

Well.. I do know about Conky... But I'd like a command line tool tongue

Offline

#7 2007-06-23 11:51:47

lloeki
Member
From: France
Registered: 2007-02-20
Posts: 456
Website

Re: Monitor CPU load (dual core)

top -n 1 | grep Cpu0


To know recursion, you must first know recursion.

Offline

#8 2007-06-23 12:07:38

Urkburk
Member
From: Stockholm, Sweden
Registered: 2007-05-07
Posts: 17

Re: Monitor CPU load (dual core)

lloeki wrote:

top -n 1 | grep Cpu0

Hm.. I don't see both cores in the output of "top -n 1"... But we're in the right direction here smile

Offline

#9 2007-06-29 21:13:58

smurnjiff
Member
Registered: 2007-06-25
Posts: 211

Re: Monitor CPU load (dual core)

Install the sysstat package.

pacman -S sysstat

Then run mpstat to get the statistics.

mpstat -P ALL

Offline

#10 2007-06-29 21:43:54

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Monitor CPU load (dual core)

ok. try this.
start top.
press the 1 key. This should now show your cpu lines individually.
type a capital W. You should get a message about saving your toprc config.
exit out of top.
type `top -bn 1 | grep Cpu`

===============

I agree that conky is a great solution for the desktop though.
http://conky.sourceforge.net/variables.html  (search for cpuN)


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#11 2007-06-30 00:23:24

Urkburk
Member
From: Stockholm, Sweden
Registered: 2007-05-07
Posts: 17

Re: Monitor CPU load (dual core)

Thanks smile

Offline

Board footer

Powered by FluxBB