linux查看内存的大小
linux查看内存的大小
发布时间:2016-12-27 来源:查字典编辑
摘要:用free-m查看的结果:#free-mtotalusedfreesharedbufferscachedMem:50447132019269...

用free -m查看的结果:

# free -m

total used free shared buffers cached

Mem: 504 471 32 0 19 269

-/+ buffers/cache: 183 321

Swap: 996 0 996

查看/proc/kcore文件的大小:

# ll -h /proc/kcore

-r-------- 1 root root 512M 10月 26 20:40 /proc/kcore

total显示的只有504M,而我系统的实际内存大小是512M的,其中的8M被内核所占用了

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新unix linux学习
热门unix linux学习
操作系统子分类