free and vmstat command
free
$ free -h
total used free shared buff/cache available
Mem: 23Gi 14Gi 575Mi 3,3Gi 12Gi 8,8Gi
Swap: 8,0Gi 6,6Gi 1,4GiSpotting problems with free
vmstat
$ vmstat 1 3
procs -----------memory----------
r b swpd free buff cache
2 0 7102404 1392528 36 12335148
0 0 7102404 1392560 36 12335188
0 0 7102404 1373640 36 12349928
---swap-- -----io----
si so bi bo
8 21 130 724
0 0 0 0
0 0 8 48
-system-- -------cpu-------
in cs us sy id wa st gu
2851 19 15 7 77 0 0 0
5779 7246 14 10 77 0 0 0
5141 6525 12 9 79 0 0 0Catching a memory leak
Finding I/O saturation
Detecting CPU over-commit
Last updated