As a Linux/Unix System Administrator might need to know the system load average using command, to know the server load information there are various types of commands are available in Linux/Unix system.
The following commands are helps us to display server load average,
loadavg:
On loadavg contain both the CPU load average and IO over time, also additional data have uptime. This load values represent in the last 1, 5 and 15 minutes, number of active and total task entities and pid.
# cat /proc/loadavg
2.47 2.74 2.97 4/370 4679
# cat /proc/loadavg | awk '{print $1,$2,$3}'
0.24 0.47 0.58
w :
w command shows system uptime, logged user into server, system load average, IP address.
# w
12:49:56 up 67 days, 5:17, 1 user, load average: 2.83, 2.78, 2.97
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
SkihsDijss pts/0 192.168.1.120 12:07 0.00s 0.03s 0.00s sshd: SkihsDijss [priv]
uptime :
uptime command also shows current system time, uptime, logged user count, Load average.
# uptime
12:47:53 up 131 days, 20:30, 5 users, load average: 2.94, 3.11, 3.20
top :
Top command is very helpful to show all the system activity information even memory, cpu usages, cache, process id, process and others,
# top
top - 12:48:27 up 67 days, 5:15, 1 user, load average: 2.30, 2.76, 2.99
Tasks: 278 total, 2 running, 274 sleeping, 0 stopped, 2 zombie
Cpu(s): 0.0%us, 8.7%sy, 59.0%ni, 30.6%id, 1.6%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8030928k total, 7591384k used, 439544k free, 650932k buffers
Swap: 2097144k total, 294684k used, 1802460k free, 5261476k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3255 nobody 24 4 2066m 62m 3556 S 0.0 0.8 0:01.38 /usr/local/apache/bin/httpd -k start -DSSL
Comments (0)