每次我SSH到我的AWS Ubuntu服务器,我看到一个系统信息消息,显示负载,内存使用情况和可用的安装包,如下所示:
Welcome to Ubuntu 12.04.3 LTS (GNU/Linux 3.2.0-51-virtual x86_64) * Documentation: https://help.ubuntu.com/ System information as of Sun Nov 10 18:06:43 EST 2013 System load: 0.08 Processes: 127 Usage of /: 4.9% of 98.43GB Users logged in: 1 Memory usage: 69% IP address for eth0: 10.236.136.233 Swap usage: 100% Graph this data and manage this system at https://landscape.canonical.com/ 13 packages can be updated. 0 updates are security updates. Get cloud support with Ubuntu Advantage Cloud Guest http://www.ubuntu.com/business/services/cloud Use Juju to deploy your cloud instances and workloads. https://juju.ubuntu.com/#cloud-precise *** /dev/xvda1 will be checked for errors at next reboot *** *** System restart required ***
我的问题是关于显示的内存百分比。 在这种情况下,它显示了69%的内存使用率,但由于交换使用率是100%,我自己检查了它。 所以当我运行free -m我得到这个:
total used free shared buffers cached Mem: 1652 1635 17 0 4 29 -/+ buffers/cache: 1601 51 Swap: 895 895 0
这当然接近100%,比69%
系统信息来自“landscape-sysinfo”二进制文件,该文件采用/ proc / meminfo作为内存的度量,这也是free命令的来源,所以最终它们应该匹配。 对于Ubuntu 12.04.3,虽然有一个“ladnscape-sysinfo”的错误,它不能正确计算利用率,但是你可能仍然有这个问题。操作系统:
源代码bug: landscape-sysinfo错误