Re: Terminal command to get CPU usage?
Posted: 2018-08-28 14:02
Or would it be easier to use a simple top command?THX1138b wrote:Can anyone help me with a console command to get CPU usage?
Or would it be easier to use a simple top command?THX1138b wrote:Can anyone help me with a console command to get CPU usage?
I've been using the above script on one of my machines since seeing it in this thread. It certainly felt snappier and gave similar results to the previous script.Head_on_a_Stick wrote:https://www.idnt.net/en-GB/kb/941772
Code: Select all
5.9 MiB + 664.5 KiB = 6.5 MiB wmaker (2)
10.5 MiB + 1.4 MiB = 11.9 MiB wicd-client
12.6 MiB + 1.7 MiB = 14.2 MiB Xorg
15.0 MiB + 1.8 MiB = 16.8 MiB lilyterm
20.4 MiB + 175.0 KiB = 20.5 MiB cpu-usage.sh
50.6 MiB + 137.0 KiB = 50.7 MiB weechat-curses
---------------------------------
180.1 MiB
=================================
Code: Select all
└> $ uptime
10:24:24 up 18 days, 12:12, 3 users, load average: 0.61, 1.12, 1.38
┌—————————(kelsoo)————————<<<<(~) (Thu Sep 13 10:24:24)
└> $
Use conky, perhaps?oswaldkelso wrote:Any ideas?
you use the version from that web page, exactly, no changes?oswaldkelso wrote:I've been using the above script on one of my machines since seeing it in this thread. It certainly felt snappier and gave similar results to the previous script.Head_on_a_Stick wrote:https://www.idnt.net/en-GB/kb/941772
Today however I ran ps_mem I noticed after prolonged use it's memory usage had grown.
Code: Select all
5.9 MiB + 664.5 KiB = 6.5 MiB wmaker (2) 10.5 MiB + 1.4 MiB = 11.9 MiB wicd-client 12.6 MiB + 1.7 MiB = 14.2 MiB Xorg 15.0 MiB + 1.8 MiB = 16.8 MiB lilyterm 20.4 MiB + 175.0 KiB = 20.5 MiB cpu-usage.sh 50.6 MiB + 137.0 KiB = 50.7 MiB weechat-curses --------------------------------- 180.1 MiB =================================