[root@localhost mysql]# free -m
total used free shared buffers cached
Mem: 1853 1585 267 0 50 1374
-/+ buffers/cache: 160 1692
Swap: 3967 0 3967
[root@localhost mysql]# echo 1 > /proc/sys/vm/drop_caches
[root@localhost mysql]# free -m
total used free shared buffers cached
Mem: 1853 119 1733 0 0 6
-/+ buffers/cache: 112 1740
Swap: 3967 0 3967
查看内存条数的命令:
[root@localhost mysql]# dmidecode | grep -A16 "Memory Device$"