cpu useage

Due to overwhelming demand, we have created a forum just dedicated to Toughbook users who use Linux!
Post Reply
Message
Author
UNCNDL1
Posts: 509
Joined: Wed Nov 16, 2011 8:01 pm
Location: New England

cpu useage

#1 Post by UNCNDL1 »

I ran across this command for Terminal in the Navigatrix site and found it interesting. It reports I believe what is running in terms of useage. I need to read more but in a Terminal type this:
Code:
sudo top
I ran it on the gun using crunchbang and found this screen shot:
Attachments
Try running the code and see what pops
Try running the code and see what pops
top.png (670.82 KiB) Viewed 9179 times
CF-53 MX-Linux 21 Wildflower
CF-30 MK2 SSD MX-21 Betsy, MK2 Navigatrix, Fundraiser for TbT
CF-52 GUN SSD MX-19
(NICE) Thanks Sadlmkr
CF-M34 MicroWattR8 Thanks Sadlmkr
CF-M33 MicroWattR8 Thanks Springfield

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

Re: cpu useage

#2 Post by kode-niner »

It's a useful tool. I prefer htop, though. If you don't have it installed, just grab it from your repo, like "apt-get install htop" or whatever your distro uses. Also iftop for network interfaces and powertop for laptop power usage is particularly useful.
Daily drives a CF-31

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

Re: cpu useage

#3 Post by SHEEPMAN! »

Thanks gentleman/ladies?, that was new to me.
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

Re: cpu useage

#4 Post by kode-niner »

powertop is especially useful when you're trying to eke out every last milliwatt from a laptop's battery and you need to find out what's using it. These days I just haul a half-dozen batteries instead.

Nick.
not a lady
Daily drives a CF-31

UNCNDL1
Posts: 509
Joined: Wed Nov 16, 2011 8:01 pm
Location: New England

Re: cpu useage

#5 Post by UNCNDL1 »

kode-niner wrote:It's a useful tool. I prefer htop, though. If you don't have it installed, just grab it from your repo, like "apt-get install htop" or whatever your distro uses. Also iftop for network interfaces and powertop for laptop power usage is particularly useful.
Thank you Kode-Niner
I'll try out the code and let you know...cool beans as they say in Pennsylvania...
CF-53 MX-Linux 21 Wildflower
CF-30 MK2 SSD MX-21 Betsy, MK2 Navigatrix, Fundraiser for TbT
CF-52 GUN SSD MX-19
(NICE) Thanks Sadlmkr
CF-M34 MicroWattR8 Thanks Sadlmkr
CF-M33 MicroWattR8 Thanks Springfield

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

Re: cpu useage

#6 Post by kode-niner »

Assuming your system is a Debian derivative:

Code: Select all

sudo apt-get install htop
sudo apt-get install iftop
sudo apt-get install powertop
Powertop needs to be run as root or a superuser

Code: Select all

sudo powertop
Use the tab key to shuffle through powertop displays.

For iftop, it also only runs as root and you may have to supply your interface as an argument. For example:
For wifi:

Code: Select all

sudo iftop -i wlan0
For ethernet:

Code: Select all

sudo iftop -i eth0
For WWAN:

Code: Select all

sudo iftop -i ppp0
If you get command not found and you are using sudo, you may need to supply the full path to iftop (/usr/sbin/iftop for example)

To find out what your interfaces are, just type

Code: Select all

ifconfig
or

Code: Select all

/sbin/ifconfig
ifconfig outputs interface information when used without arguments as above, the interface name should be on the left of each paragraph. You use that name after the -i of the iftop command like the examples above.

There are other arguments for iftop that can be useful. Such as
Show port numbers:

Code: Select all

iftop -i wlan0 -P
Don't resolve IPs

Code: Select all

iftop -i wlan0 -n
Daily drives a CF-31

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

Re: cpu useage

#7 Post by SHEEPMAN! »

Thank you, kode....reading if not replying. Appreciate it.

J'd
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

Post Reply

Return to “The LINUX forum!!!”