以M为单位显示内存
[[email protected] ~]# free -m
total used free shared buffers cached
Mem: 988 169 819 0 36 42
-/+ buffers/cache: 89 898
Swap: 1983 0 1983
其实查看内存真正剩余的空间有多大:buffers+cached+free=free
cached缓存 (从磁盘里取出来,放在内存空间) buffers缓冲(数据将要写入到磁盘里)
时间: 2024-10-12 20:28:24