|
V
|
|
Explain an alias, which I use to measure CPU load.
-
At home, on each debian machine, it is enough, for me, to run top or execute the who (w) command.
-
At work there are many users, so some text filtering on the output is required. Also at work, as opposed to the computers each computer has more than one CPU. So at home if I see load average value of one, I know that the CPU is very busy.
At work I need to multiply the resulting load average by the number of available CPU(s).
-
The following alias does it all for me. It prints the load average and the number of CPU(s) as well as the memory and swap consumption:
#load relative to number of CPU(s)
alias cpu_load="uptime;free;grep proc /proc/cpuinfo"
An example for login server with two CPU(s):
13:54:30 up 68 days, 21:46, 119 users, load average: 2.34, 2.10, 2.13
total used free shared buffers cached
Mem: 7881960 7151548 730412 0 67668 2308452
-/+ buffers/cache: 4775428 3106532
Swap: 18870972 3536124 15334848
processor : 0
processor : 1
|
|
Search This Site
Feedback This Site
new pages on this site
|
|