首页 > 系统 > Linux > 正文

linux查看内存的大小

2020-06-13 12:41:51
字体:
来源:转载
供稿:网友

用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被内核所占用了


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表