free -m文章源自堕落的鱼-https://www.duoluodeyu.com/2606.html
通过上面这个命令查看centos ubuntu等linux系统内存使用情况,命令显示如下图所示:文章源自堕落的鱼-https://www.duoluodeyu.com/2606.html
文章源自堕落的鱼-https://www.duoluodeyu.com/2606.html
但是,你知道哪个才是剩余内存数量吗?文章源自堕落的鱼-https://www.duoluodeyu.com/2606.html
极有可能会认为是free下面的402文章源自堕落的鱼-https://www.duoluodeyu.com/2606.html
可事实并非如此。文章源自堕落的鱼-https://www.duoluodeyu.com/2606.html
正确的数字其实应该看 -/+ buffers/cache: 这一行文章源自堕落的鱼-https://www.duoluodeyu.com/2606.html
文章源自堕落的鱼-https://www.duoluodeyu.com/2606.html
其实真正的可用内存 应该是447而非402。文章源自堕落的鱼-https://www.duoluodeyu.com/2606.html