Monday, 13 January 2020

Dstat [versatile resource statistics tool for Linux]

# yum install dstat
# dstat

[To show detailed information about Memory, Included (used, buffer, cache & free), Swap (used & free)
& Virtual Memory (allocated, free, major page fault & minor page fault) usage.]
# dstat --mem --swap --vm

[To show detailed information about each CPU (include cpu0, cpu1, etc) & total usage.
It display each CPU (user time, system time, idle time, steal time & wait time) process activity]
# dstat -C 0,1,2,total

[To show detailed information about disk utilization (read & write) & disk I/O (read & write)
utilization for particular disk. If you want to check total disk utilization & I/O, use]
# dstat --disk --io -D sda

[To show detailed information about network utilization (data receive & data send)
for particular Ethernet. If you want to show all the Ethernet utilization, use]
# dstat --net -N eth1

[To show detailed information about top cpu, top cputime (process using the most CPU time (in ms)),
top disk I/O activity, top disk block I/O activity, top memory and top latency usage.]
#dstat --top-cpu --top-cputime --top-io --top-bio --top-mem --top-latency

[To show detailed information about (CPU, Disk, Memory, Process, Load & network) usage,
which is very common for basic troubleshooting when server load is too high]
# dstat --cpu --mem --proc --load --disk --net

[To show detailed information about tcp (listen, established, syn, time_wait, close),
udp (listen, active) & socket (total, tcp, udp, raw, ip-fragments) usage]
# dstat --tcp --udp --socket

No comments: