一、内核检测:
# dmesg 硬件及启动信息
# lsdev 已安装硬件
# dd if=/dev/meme bs=1k skip=768 count=256 2>/dev/null | strings -n 8 读bios
二、工具检测
Linux
# cat /proc/meminfo
# cat /proc/meminfo
# grep MemTotal /proc/meminfo
# watch -nl 'cat /proc/interrupts'
# free -m
# cat /proc/devices
# lspci -tv PCI设备
# lsusb -tv USB设备
# lshal
# dmidecode
FreeBSD
# sysctl hw.model CPU类型
# sysctl hw 所有的硬件信息
# sysctl vm 内存使用情况
# dmesg | grep "real mem"
# sysctl -a | grep mem
# sysctl dev
# pciconf -l -cv PCI设备
# usbdevs -v USB设备
# atacontrol list ATA设备
-----------------------------------------------------------------
一块威刚内存
# cat meminfo
MemTotal: 451436 kB
MemFree: 241108 kB
Buffers: 10196 kB
Cached: 131152 kB
SwapCached: 0 kB
Active: 107776 kB
Inactive: 77036 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 451436 kB
LowFree: 241108 kB
SwapTotal: 514040 kB
SwapFree: 514040 kB
Dirty: 148 kB
Writeback: 0 kB
AnonPages: 43464 kB
Mapped: 15292 kB
Slab: 7780 kB
SReclaimable: 3236 kB
SUnreclaim: 4544 kB
PageTables: 584 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 739756 kB
Committed_AS: 79264 kB
VmallocTotal: 573432 kB
VmallocUsed: 48848 kB
VmallocChunk: 521204 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 4096 kB
阅读(1989) | 评论(3) | 转发(0) |