You are not logged in.
Pages: 1
Hi!
I just bought an Intel Core 2 Duo processor . I'd like to monitor the CPU usage - separately on both cores! How do I accomplish this?
Offline
'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
'htop', or 'top' and press '1'
Thanks!
Is there any chance for me to get those percentages as normal output to the command line? (For use in scripts and such...)
Offline
I'm root. if you see me smile, you'd better have a backup!!
Offline
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
Well.. I do know about Conky... But I'd like a command line tool
Offline
top -n 1 | grep Cpu0
To know recursion, you must first know recursion.
Offline
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
Offline
Install the sysstat package.
pacman -S sysstat
Then run mpstat to get the statistics.
mpstat -P ALL
Offline
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
Thanks
Offline
Pages: 1