1 檢視cpu
1.1 檢視cpu個數
# cat /proc/cpuinfo | grep "physical id" | uniq | wc -l
**uniq命令:刪除重複行;wc –l命令:統計行數**
1.2 檢視cpu核數
# cat /proc/cpuinfo | grep "cpu cores" | uniq
cpu cores : 4
1.3 檢視cpu型號
# cat /proc/cpuinfo | grep 'model name' |uniq
model name : intel(r) xeon(r) cpu e5630 @ 2.53ghz
總結:該伺服器有2個4核cpu,型號intel(r) xeon(r) cpu e5630 @ 2.53ghz
2 檢視記憶體
2.1 檢視記憶體總數
#cat /proc/meminfo | grep memtotal
memtotal: 32941268 kb //記憶體32g
2.2 檢視記憶體條數
# dmidecode |grep -a16 "memory device$"
memory device
array handle: 0x1000
error information handle: not provided
total width: 72 bits
data width: 64 bits
size: 2048 mb //1條2g記憶體
form factor: dimm
set: 1
locator: dimm1
bank locator: not specified
type: ddr2
type detail: synchronous
speed: 667 mhz
manufacturer: 7f7f7f7f7f510000
serial number: 0403e324
asset tag: 450721
part number: 72t256220hr3sa
memory device
array handle: 0x1000
error information handle: not provided
total width: 72 bits
data width: 64 bits
size: 2048 mb //1條2g記憶體
form factor: dimm
set: 1
locator: dimm2
bank locator: not specified
type: ddr2
type detail: synchronous
speed: 667 mhz
manufacturer: 7f7f7f7f7f510000
serial number: 0403e324
asset tag: 450721
part number: 72t256220hr3sa
memory device
array handle: 0x1000
error information handle: not provided
total width: 72 bits
data width: 64 bits
size: no module installed //1個記憶體空槽
form factor: dimm
set: 2
locator: dimm3
bank locator: not specified
type: ddr2
type detail: synchronous
speed: unknown
manufacturer:
serial number:
asset tag:
part number:
memory device
array handle: 0x1000
error information handle: not provided
total width: 72 bits
data width: 64 bits
size: no module installed //1個記憶體空槽
form factor: dimm
set: 2
locator: dimm4
bank locator: not specified
type: ddr2
type detail: synchronous
speed: unknown
manufacturer:
serial number:
asset tag:
part number:
memory device
array handle: 0x1000
error information handle: not provided
total width: 72 bits
data width: 64 bits
size: no module installed //1個記憶體空槽
form factor: dimm
set: 3
locator: dimm5
bank locator: not specified
type: ddr2
type detail: synchronous
speed: unknown
manufacturer:
serial number:
asset tag:
part number:
memory device
array handle: 0x1000
error information handle: not provided
total width: 72 bits
data width: 64 bits
size: no module installed //1個記憶體空槽
form factor: dimm
set: 3
locator: dimm6
bank locator: not specified
type: ddr2
type detail: synchronous
speed: unknown
manufacturer:
serial number:
asset tag:
part number:
總結:該伺服器有兩條2g記憶體 ,空餘4個插槽
3 檢視硬碟
3.1 檢視硬碟大小
# fdisk -l | grep disk
disk /dev/cciss/c0d0: 146.7 gb, 146778685440 bytes
總結:硬碟大小146.7g,即廠商標稱的160g
linux如何檢視CPU 記憶體 機器型號 網絡卡資訊
檢視cpu資訊 型號 cat proc cpuinfo grep name cut f2 d uniq c 8 intel r xeon r cpu e5410 2.33ghz 看到有8個邏輯cpu,也知道了cpu型號 cat proc cpuinfo grep physical uniq c 4 ...
linux如何檢視CPU,記憶體,機器型號,網絡卡資訊
做效能測試 需要記錄效能測試機器的硬體資訊,現將需要的命令總結如下 檢視cpu資訊 型號 cat proc cpuinfo grep name cut f2 d uniq c 8 intel r xeon r cpu e5410 2.33ghz 看到有8個邏輯cpu,也知道了cpu型號 cat pr...
linux如何檢視CPU,記憶體,機器型號,網絡卡資訊
檢視cpu資訊 型號 cat proc cpuinfo grep name cut f2 d uniq c 8 intel r xeon r cpu e5410 2.33ghz 看到有8個邏輯cpu,也知道了cpu型號 cat proc cpuinfo grep physical uniq c 4 ...