How to get the CPU speed from the hardware in Linux with the dmidecode command.

How to get the CPU speed from the hardware in Linux with the dmidecode command. This command below will suffice.

[email protected] homer# dmidecode --type 17 | grep -i speed
	Speed: Unknown
	Speed: 1333 MHz
	Speed: Unknown
	Speed: 1333 MHz

And this is how to see what the maximum amount of RAM that your motherboard can use with the command-line.

[email protected] homer# dmidecode --type 16
# dmidecode 2.12
SMBIOS 2.4 present.

Handle 0x001A, DMI type 16, 15 bytes
Physical Memory Array
	Location: System Board Or Motherboard
	Use: System Memory
	Error Correction Type: None
	Maximum Capacity: 32 GB
	Error Information Handle: Not Provided
	Number Of Devices: 4

To get more in-depth information about all of your RAM slots; use this command.

[email protected] homer# dmidecode --type 17
# dmidecode 2.12
SMBIOS 2.4 present.

Handle 0x001B, DMI type 17, 27 bytes
Memory Device
	Array Handle: 0x001A
	Error Information Handle: Not Provided
	Total Width: Unknown
	Data Width: Unknown
	Size: No Module Installed
	Form Factor: DIMM
	Set: None
	Locator: A0
	Bank Locator: Bank0/1
	Type: Unknown
	Type Detail: None
	Speed: Unknown
	Manufacturer:  
	Serial Number:  
	Asset Tag:  
	Part Number:  

Handle 0x001C, DMI type 17, 27 bytes
Memory Device
	Array Handle: 0x001A
	Error Information Handle: Not Provided
	Total Width: 2304 bits
	Data Width: 2244 bits
	Size: 2048 MB
	Form Factor: DIMM
	Set: None
	Locator: A1
	Bank Locator: Bank2/3
	Type: Unknown
	Type Detail: None
	Speed: 1333 MHz
	Manufacturer:  
	Serial Number:  
	Asset Tag:  
	Part Number:  

Handle 0x001D, DMI type 17, 27 bytes
Memory Device
	Array Handle: 0x001A
	Error Information Handle: Not Provided
	Total Width: Unknown
	Data Width: Unknown
	Size: No Module Installed
	Form Factor: DIMM
	Set: None
	Locator: A2
	Bank Locator: Bank4/5
	Type: Unknown
	Type Detail: None
	Speed: Unknown
	Manufacturer:  
	Serial Number:  
	Asset Tag:  
	Part Number:  

Handle 0x001E, DMI type 17, 27 bytes
Memory Device
	Array Handle: 0x001A
	Error Information Handle: Not Provided
	Total Width: 2304 bits
	Data Width: 2244 bits
	Size: 4096 MB
	Form Factor: DIMM
	Set: None
	Locator: A3
	Bank Locator: Bank6/7
	Type: Unknown
	Type Detail: None
	Speed: 1333 MHz
	Manufacturer:  
	Serial Number:  
	Asset Tag:  
	Part Number:

And this shows the amount of RAM I have installed. The Ending Address is 0x0017FFFFFFF, which is 6442450943 in decimal.

[email protected] homer# dmidecode --type 19
# dmidecode 2.12
SMBIOS 2.4 present.

Handle 0x001F, DMI type 19, 15 bytes
Memory Array Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x0017FFFFFFF
	Range Size: 6 GB
	Physical Array Handle: 0x001A
	Partition Width: 1

This can be shortened like this. Lovely use of sed.

[email protected] homer# dmidecode --type 19 | grep Range | sed s/Range/RAM\ Amount:/gi;
	RAM Amount: Size: 6 GB

This dmidecode paramter will get information about your computer case. Although it got nothing much from mine…

[email protected] homer# dmidecode --type 3
# dmidecode 2.12
SMBIOS 2.4 present.

Handle 0x0003, DMI type 3, 17 bytes
Chassis Information
	Manufacturer: Gigabyte Technology Co., Ltd.
	Type: Desktop
	Lock: Not Present
	Version:  
	Serial Number:  
	Asset Tag:  
	Boot-up State: Unknown
	Power Supply State: Unknown
	Thermal State: Unknown
	Security Status: Unknown
	OEM Information: 0x00000000

More information about the CPU with this command.

Handle 0x0004, DMI type 4, 35 bytes
Processor Information
	Socket Designation: Socket 1156
	Type: Central Processor
	Family: Other
	Manufacturer: Intel
	ID: 52 06 02 00 FF FB EB BF
	Version: Intel(R) Core(TM) i3 CPU
	Voltage: 1.0 V
	External Clock: 133 MHz
	Max Speed: 4000 MHz
	Current Speed: 2933 MHz
	Status: Populated, Enabled
	Upgrade: Socket 478
	L1 Cache Handle: 0x000A
	L2 Cache Handle: 0x000B
	L3 Cache Handle: Not Provided
	Serial Number:  
	Asset Tag:  
	Part Number:

And that is how you get information out of your computer with the dmidecode command.

No comments have been made. Use this form to start the conversation :)

Leave a Reply