CentOS/Linux View hardware configuration CPU memory disk

【View system memory space】

quote
free -m


             total       used       free     shared    buffers     cached
Mem:          3500        637       2863          0         51        290
-/+ buffers/cache:        294       3205
Swap:         7999          0       7999


The memory space is displayed in MB, and the total column after "Mem" is the memory size. 3500 is actually 4GB.

【View memory slots and memory sticks】

quote
dmidecode --type memory


# dmidecode 2.11
SMBIOS 2.7 present.

Handle 0x0040, DMI type 16, 23 bytes
Physical Memory Array
	Location: System Board Or Motherboard
	Use: System Memory
	Error Correction Type: None
	Maximum Capacity: 32 GB ##The maximum amount the hardware can support
	Error Information Handle: Not Provided
	Number Of Devices: 4 ##Number of memory slots

Handle 0x0042, DMI type 17, 34 bytes
Memory Device
	Array Handle: 0x0040
	Error Information Handle: Not Provided
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 4096 MB ##Memory stick space
	Form Factor: DIMM
	Set: None
	Locator: ChannelA-DIMM0
	Bank Locator: BANK 0 ##Slot location number
	Type: DDR3 ##Memory type
	Type Detail: Synchronous
	Speed: 1333 MHz ##Memory frequency
	Manufacturer: Kingston ##Memory stick manufacturer
	Serial Number: 9B369A8C
	Asset Tag: 9876543210
	Part Number: 99P5474-055.A00LF
	Rank: 1
	Configured Clock Speed: 1333 MHz

Handle 0x0044, DMI type 17, 34 bytes
Memory Device
	Array Handle: 0x0040
	Error Information Handle: Not Provided
	Total Width: Unknown
	Data Width: Unknown
	Size: No Module Installed ##There is no memory module installed in the slot
	Form Factor: DIMM
	Set: None
	Locator: ChannelA-DIMM1
	Bank Locator: BANK 1
	Type: Unknown
	Type Detail: None
	Speed: Unknown
	Manufacturer: [Empty]
	Serial Number: [Empty]
	Asset Tag: 9876543210
	Part Number: [Empty]
	Rank: Unknown
	Configured Clock Speed: Unknown






【View disk and partition status】

quote
fdisk -l


Disk /dev/sda: 1000.2 GB, 1000204886016 bytes ##Disk sda space 1TB, divided into three areas
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0002cb39

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              26        1046     8192000   82  Linux swap / Solaris
/dev/sda3 1046 121602 968364032 83 Linux





[View the disk partition mounting status]
Compare with fdisk -l, you can see which directory each partition space is mounted to, and whether any disk partitions are not mounted for use.
quote
df -h


Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3 910G 5.1G 858G 1% / ##The largest partition of disk sda sda3 is mounted in the root directory of 910GB
tmpfs           1.8G   72K  1.8G   1% /dev/shm
/dev/sda1       194M   32M  152M  18% /boot




【View hard disk hardware information】

quote
smartctl --all /dev/sda

If this tool command is not supported, you can use hdparm -i /dev/sda to view the model, it is recommended to install this tool
smartctl 5.43 2012-06-30 r3573 [i686-linux-2.6.32-431.el6.i686] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda (SATA 3Gb/s, 4K Sectors) ##Manufacturer
Device Model: ST1000DM003-1ER162 ##Model
Serial Number: W4Y4PK8N ##Serial Number
LU WWN Device Id: 5 000c50 08a8951c8
Firmware Version: CC46
User Capacity: 1,000,204,886,016 bytes [1.00 TB] ##Space
Sector Sizes:     512 bytes logical, 4096 bytes physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  ACS-2 (unknown minor revision code: 0x001f)
Local Time is:    Fri Jan 12 14:19:32 2018 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled



If there is a RAID card, refer to http://blog.csdn.net/msdnchina/article/details/52475383


[View CPU hardware information]

quote
dmidecode --type processor

# dmidecode 2.11
SMBIOS 2.7 present.

Handle 0x0041, DMI type 4, 42 bytes
Processor Information
	Socket Designation: SOCKET 0 ##Socket 0
	Type: Central Processor
	Family: Pentium ##family series
	Manufacturer: Intel(R) Corporation ##Manufacturer
	ID: A7 06 02 00 FF FB EB BF
	Signature: Type 0, Family 6, Model 42, Stepping 7
	Flags:
		FPU (Floating-point unit on-chip)
		VME (Virtual mode extension)
		DE (Debugging extension)
		PSE (Page size extension)
		TSC (Time stamp counter)
		MSR (Model specific registers)
		PAE (Physical address extension)
		MCE (Machine check exception)
		CX8 (CMPXCHG8 instruction supported)
		APIC (On-chip APIC hardware supported)
		SEP (Fast system call)
		MTRR (Memory type range registers)
		PGE (Page global enable)
		MCA (Machine check architecture)
		CMOV (Conditional move instruction supported)
		PAT (Page attribute table)
		PSE-36 (36-bit page size extension)
		CLFSH (CLFLUSH instruction supported)
		DS (Debug store)
		ACPI (ACPI supported)
		MMX (MMX technology supported)
		FXSR (FXSAVE and FXSTOR instructions supported)
		SSE (Streaming SIMD extensions)
		SSE2 (Streaming SIMD extensions 2)
		SS (Self-snoop)
		HTT (Multi-threading)
		TM (Thermal monitor supported)
		PBE (Pending break enabled)
	Version: Intel(R) Pentium(R) CPU G860 @ 3.00GHz ##CPU Model
	Voltage: 5.0 V 3.3 V 2.9 V
	External Clock: 100 MHz
	Max Speed: 3800 MHz
	Current Speed: 3000 MHz
	Status: Populated, Enabled
	Upgrade: Socket BGA1155
	L1 Cache Handle: 0x003E
	L2 Cache Handle: 0x003D
	L3 Cache Handle: 0x003F
	Serial Number: Not Specified
	Asset Tag: Fill By OEM
	Part Number: Fill By OEM
	Core Count: 2 ##The total number of cores
	Core Enabled: 2 ##Total number of threads
	Thread Count: 2
	Characteristics:
		64-bit capable ##Whether 64-bit is supported



Below is the CPU information of another server.
# dmidecode 2.11
SMBIOS 2.8 present.
# SMBIOS implementations newer than version 2.7 are not
# fully supported by this version of dmidecode.

Handle 0x0016, DMI type 4, 42 bytes
Processor Information
	Socket Designation: CPU01   ##CPU1
	Type: Central Processor
	Family: Xeon ##Xeon
	Manufacturer: Intel(R) Corporation
	ID: F2 06 03 00 FF FB EB BF
	Signature: Type 0, Family 6, Model 63, Stepping 2
	Flags:
		FPU (Floating-point unit on-chip)
		VME (Virtual mode extension)
		DE (Debugging extension)
		PSE (Page size extension)
		TSC (Time stamp counter)
		MSR (Model specific registers)
		PAE (Physical address extension)
		MCE (Machine check exception)
		CX8 (CMPXCHG8 instruction supported)
		APIC (On-chip APIC hardware supported)
		SEP (Fast system call)
		MTRR (Memory type range registers)
		PGE (Page global enable)
		MCA (Machine check architecture)
		CMOV (Conditional move instruction supported)
		PAT (Page attribute table)
		PSE-36 (36-bit page size extension)
		CLFSH (CLFLUSH instruction supported)
		DS (Debug store)
		ACPI (ACPI supported)
		MMX (MMX technology supported)
		FXSR (FXSAVE and FXSTOR instructions supported)
		SSE (Streaming SIMD extensions)
		SSE2 (Streaming SIMD extensions 2)
		SS (Self-snoop)
		HTT (Multi-threading)
		TM (Thermal monitor supported)
		PBE (Pending break enabled)
	Version: Intel(R) Xeon(R) CPU E5-2609 v3 @ 1.90GHz   ##型号Xeon E5-2609 v3
	Voltage: 1.8 V
	External Clock: 100 MHz
	Max Speed: 3500 MHz
	Current Speed: 1900 MHz
	Status: Populated, Enabled
	Upgrade: <OUT OF SPEC>
	L1 Cache Handle: 0x0013
	L2 Cache Handle: 0x0014
	L3 Cache Handle: 0x0015
	Serial Number: Not Specified
	Asset Tag: UNKNOWN
	Part Number: Not Specified
	Core Count: 6 ##Six cores
	Core Enabled: 6
	Thread Count: 6 ##Six threads
	Characteristics:
		64-bit capable
		Multi-Core
		Hardware Thread
		Execute Protection
		Enhanced Virtualization
		Power/Performance Control

Handle 0x001B, DMI type 4, 42 bytes
Processor Information
	Socket Designation: CPU02 ##Second CPU
	Type: Central Processor
	Family: Xeon
	Manufacturer: Intel(R) Corporation
	ID: F2 06 03 00 FF FB EB BF
	Signature: Type 0, Family 6, Model 63, Stepping 2
	Flags:
		FPU (Floating-point unit on-chip)
		VME (Virtual mode extension)
		DE (Debugging extension)
		PSE (Page size extension)
		TSC (Time stamp counter)
		MSR (Model specific registers)
		PAE (Physical address extension)
		MCE (Machine check exception)
		CX8 (CMPXCHG8 instruction supported)
		APIC (On-chip APIC hardware supported)
		SEP (Fast system call)
		MTRR (Memory type range registers)
		PGE (Page global enable)
		MCA (Machine check architecture)
		CMOV (Conditional move instruction supported)
		PAT (Page attribute table)
		PSE-36 (36-bit page size extension)
		CLFSH (CLFLUSH instruction supported)
		DS (Debug store)
		ACPI (ACPI supported)
		MMX (MMX technology supported)
		FXSR (FXSAVE and FXSTOR instructions supported)
		SSE (Streaming SIMD extensions)
		SSE2 (Streaming SIMD extensions 2)
		SS (Self-snoop)
		HTT (Multi-threading)
		TM (Thermal monitor supported)
		PBE (Pending break enabled)
	Version: Intel(R) Xeon(R) CPU E5-2609 v3 @ 1.90GHz
	Voltage: 1.8 V
	External Clock: 100 MHz
	Max Speed: 3500 MHz
	Current Speed: 1900 MHz
	Status: Populated, Enabled
	Upgrade: <OUT OF SPEC>
	L1 Cache Handle: 0x0018
	L2 Cache Handle: 0x0019
	L3 Cache Handle: 0x001A
	Serial Number: Not Specified
	Asset Tag: UNKNOWN
	Part Number: Not Specified
	Core Count: 6
	Core Enabled: 6
	Thread Count: 6
	Characteristics:
		64-bit capable
		Multi-Core
		Hardware Thread
		Execute Protection
		Enhanced Virtualization
		Power/Performance Control

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326179931&siteId=291194637