linux查看内存的大小


点评:用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显示的只有
用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被内核所占用了

相关内容