[root@Dasoncheng ~]# free total used free shared buff/cache available Mem: 1883740 51052 1458892 296 373796 1677328 Swap: 0 0 0 [root@Dasoncheng ~]# free -h total used free shared buff/cache available Mem: 1.8G 49M 1.4G 296K 365M 1.6G Swap: 0B 0B 0B [root@Dasoncheng ~]# free -m/g/h
其中:緩存
total=used + free + buff/cache
available=free + buff/cache(分配但未使用的內存)
其中:used已使用內存,和buff/cache被佔用的內存沒有關係;code