1、使用free – m命令查看内存使用情况
[root@izbp1f0leha0lvmqfhigzpz code]# free -m
total used free shared buff/cache available
Mem: 1839 101 534 0 1203 1562
Swap: 0 0 0
[root@izbp1f0leha0lvmqfhigzpz code]# echo 3 > /proc/sys/vm/drop_caches
[root@izbp1f0leha0lvmqfhigzpz code]# free -m
total used free shared buff/cache available
Mem: 1839 101 1675 0 62 1627
Swap: 0 0 0
[root@izbp1f0leha0lvmqfhigzpz code]#