当前位置: 技术问答>linux和unix
LINUX: dmesg看到的是开机自检信息吗?
来源: 互联网 发布时间:2016-02-18
本文导语: 如果我要知道我硬件有多少内存是不是从这个dmesg查看 | # cat /proc/meminfo MemTotal: 1025048 kB MemFree: 43312 kB Buffers: 106436 kB Cached: 572152 kB SwapCached: 12...
如果我要知道我硬件有多少内存是不是从这个dmesg查看
|
# cat /proc/meminfo
MemTotal: 1025048 kB
MemFree: 43312 kB
Buffers: 106436 kB
Cached: 572152 kB
SwapCached: 12 kB
Active: 600480 kB
Inactive: 292164 kB
HighTotal: 121376 kB
HighFree: 252 kB
LowTotal: 903672 kB
LowFree: 43060 kB
SwapTotal: 2096472 kB
SwapFree: 2096352 kB
Dirty: 20 kB
Writeback: 0 kB
Mapped: 239396 kB
Slab: 73244 kB
CommitLimit: 2608996 kB
Committed_AS: 1428604 kB
PageTables: 3764 kB
VmallocTotal: 106488 kB
VmallocUsed: 6328 kB
VmallocChunk: 98756 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 2048 kB
MemTotal: 1025048 kB
MemFree: 43312 kB
Buffers: 106436 kB
Cached: 572152 kB
SwapCached: 12 kB
Active: 600480 kB
Inactive: 292164 kB
HighTotal: 121376 kB
HighFree: 252 kB
LowTotal: 903672 kB
LowFree: 43060 kB
SwapTotal: 2096472 kB
SwapFree: 2096352 kB
Dirty: 20 kB
Writeback: 0 kB
Mapped: 239396 kB
Slab: 73244 kB
CommitLimit: 2608996 kB
Committed_AS: 1428604 kB
PageTables: 3764 kB
VmallocTotal: 106488 kB
VmallocUsed: 6328 kB
VmallocChunk: 98756 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 2048 kB
|
你也可以 vmstat
比如:vmstat -s
比如:vmstat -s
|
你如果要看内存
可以打 命令 free
可以打 命令 free
|
楼上很详细了。不过一般就用free
free -m
以MB为单位显示
free -m
以MB为单位显示
|
dmesg看到的,是内核的打印信息