1、centos7.5中free中的Mem:avaialbe~=/proc/meminfo中MemAvailable,二者等价,我认为centos7.5实际可用内存是avaialbe
[root@localhost ~]# cat /proc/meminfo |grep "MemAvailable"
MemAvailable: 1456756 kB
[root@localhost ~]# free -mh
total used free shared buff/cache available
Mem: 1.8G 192M 938M 17M 690M 1.4G
Swap: 2.0G 1.0M 2.0G
2、释放内存
释放网页缓存(To free pagecache):
sync; echo 1 > /proc/sys/vm/drop_caches
释放目录项和索引(To free dentries and inodes):
sync; echo 2 > /proc/sys/vm/drop_caches
释放网页缓存,目录项和索引(To free pagecache, dentries and inodes):
sync; echo 3 > /proc/sys/vm/drop_caches