Resource Monitoring

Watching System Resources

CommandWatches
top / htopCPU, memory, per-process
free -hMemory & swap
vmstat 1CPU/memory/IO over time
iostatDisk I/O (sysstat)
sarHistorical stats (sysstat)
uptimeLoad average
watch -n2 cmdRe-run a command every 2s
$ free -h
              total   used   free  shared  buff/cache  available
Mem:           7.7Gi  2.1Gi  3.4Gi   210Mi       2.2Gi      5.1Gi
Exam tip: In free -h, look at available (not just free) - the kernel uses spare RAM for buff/cache and reclaims it on demand.