Linux View motherboard memory slots and Memory Information command Dmidecode method _linux

Source: Internet
Author: User
Tags recode

1, view the number of memory slots, that slot plugged into the memory, the size of how much

Dmidecode|grep-p-a5 "Memory\s+device" |grep size|grep-v Range

2, view the maximum number of supported memory

Dmidecode|grep-p ' maximum\s+capacity '

3, check the slot bit memory rate, no plug is unknown.

Dmidecode|grep-a16 "Memory Device" |grep ' Speed '

In fact, the above values are achieved through the Dmidecode command, the specific methods are as follows:

Dmidecode the DMI (Desktop Management Interface) information of the machine in a readable manner.

This information includes hardware and BIOS, both for the current configuration and for the maximum configuration supported by the system, such as the maximum number of memory supported.

The DMI is also called Smbios (System Management BIOS), which is developed by DMTF (Desktop Management Task Force).

The output format of Dmidecode is generally as follows:

Handle 0x0002
DMI type 2, 8 bytes
Base Board information
manufacturer:intel
Product name:c440gx+
version:727281-0001
Serial number:incy92700942

The first three lines are called the record headers (Recoce header), which includes:

1. Recode ID (handle): The record identifier in the DMI table, which is unique, such as the handle 0x0002 in the previous example.

2. DMI Type ID: type of record, for example: Bios,memory, the above example is type 2, "Base Board Information"

3, Recode size:dmi table in the corresponding record size, the above example is 8 bytes. (Excluding textual information, all actual output is larger than this size.) )

After the record header is the value of the record:

4, decoded values: The record value can be multiple lines, such as the previous example shows the motherboard manufacturer (manufacturer), model, version, and serial number.

How to use Dmidecode

1. The simplest display of all DMI information:

# Dmidecode

This will output all DMI information, you may be horrified by a lot of information, and you can usually use the following methods.

2. More streamlined information display:

# Dmidecode-q

-Q (–quite) only displays the necessary information, which works well.

3. Display the specified type of information:

Usually I just want to look at some type of information, such as CPU, memory, or disk, rather than all of it. This can be used to specify the type of information using-t (–type type):

# dmidecode-t BIOS
# DMIDECODE-T BIOS, processor (this way does not seem to be available, must be in the following number way)
# dmidecode-t 0,4 (display BIOS and processor)

What type does Dmidecode support?

These can be seen in man Dmidecode:

Text parameter support:

BIOS, System, baseboard, chassis, processor, memory, cache, connector, slot

Digital parameters support a lot: (see appendix)

4. View information through Keywords:

For example, just want to see the serial number, you can use:

#
keyword supported by dmidecode-s system-serial-number-s (–string keyword) includes:
bios-vendor,bios-version, Bios-release-date,
system-manufacturer, System-product-name, System-version, System-serial-number,
Baseboard-manu-facturer,baseboard-product-name, Baseboard-version, Baseboard-serial-number, Baseboard-asset-tag,
Chassis-manufacturer, Chas-sis-version, Chassis-serial-number, Chassis-asset-tag,
processor-manufacturer , Processor-version.

5. Example

5.1 View current memory and maximum supported memory

Linux, you can use free or view meminfo to get the current physical memory:

# free Total
used free shared buffers cached
mem:8182532 8010792 171740 0 148472 4737896-/+ buffers/cache
: 3124424 5058108
swap:4192956 3304 4189652
# grep memtotal/proc/meminfo
memtotal:8182532 KB

This shows that the current server's physical memory is 8GB.

How much memory can the server extend to?

#dmidecode-T
dmidecode 2.7
SMBIOS 2.4 present.

Handle 0x0013, DMI type, bytes.
Physical Memory Array
location:system Board Or motherboard
use:system
Error Memory correction It ECC
Maximum capacity:64 GB (extensible to 64GB)
Error information Handle:not provided number of
Devices:4

However, the fact is not necessarily the case, so the slots may be full. Which means we have to find out if the 8G is 4*2GB, 2*4GB or whatever.

If it is 4*2GB, the slot is full and cannot be extended, although it can be extended to 64GB:

#dmidecode-T # Dmidecode 2.7 SMBIOS 2.4 present.
Handle 0x0015, DMI type, bytes. Memory Device Array handle:0x0013 Error information handle:not provided total width:72 bits Data width:64 bits Size:2 048 MB "Slot 1 has 1 2GB of memory" Form Factor:dimm set:none locator:dimm00 Bank locator:bank type:other Type detail:other Speed: 667 MHZ (1.5 ns) manufacturer:serial number:bzacskz001 Asset tag:ram82 part number:mt9htf6472fy-53ea2 Handle,
DMI type, bytes. Memory Device Array handle:0x0013 Error information handle:not provided total width:72 bits Data width:64 bits Size:2 048 MB "Slot 2 has 1 2GB of memory" Form Factor:dimm set:none locator:dimm10 Bank locator:bank type:other Type detail:other Speed: 667 MHZ (1.5 ns) manufacturer:serial number:bzacskz001 Asset tag:ram83 part number:mt9htf6472fy-53ea2 Handle,
DMI type, bytes. Memory Device Array handle:0x0013 Error information handle:not provided total width:72 bits Data width:64 bits Size:2 048 MB"Slot 3 has 1 2GB memory" Form factor:dimm set:none locator:dimm20 Bank locator:bank type:other Type detail:other MHz
(1.5 ns) Manufacturer:serial number:bzacskz001 Asset tag:ram84 part number:mt9htf6472fy-53ea2 Handle 0x001b, DMI type MB, b
Ytes. Memory Device Array handle:0x0013 Error information handle:not provided total width:72 bits Data width:64 bits Size:2 048 MB "Slot 4 has 1 2GB of memory" Form Factor:dimm set:none locator:dimm30 Bank locator:bank type:other Type detail:other Speed: 667 MHZ (1.5 ns) manufacturer:serial number:bzacskz001 Asset tag:ram85 part NUMBER:MT9HTF6472FY-53EA2

According to the above output can be found, if you want to expand, only the above memory to 16GB, to achieve 4*16GB=64GB maximum support memory.

Appendix:

Numeric parameters supported by Dmidecode:

Type Information
0 BIOS
1 System
2 Base Board
3 chassis
4 Processor
5 Memory Controller
6 Memory Module
7 Cache
8 Port Connector
9 System slots on
Board Devices one
OEM Strings
Sy Stem Configuration Options
BIOS Language
Group associations
System Event Log
Physical Mem Ory Array
Memory Device
32-bit Memory Error
Memory Array mapped address
Memory Device Mapp Ed address
Built-in pointing Device
portable Battery
System Reset
Hardware Security
System power Controls
voltage Probe Device
temperature Probe
Current Probe
Out-of-band Remote Access to
boot Integrity Services
System boot
64-bit Memory Error
Management Device Management Device Component-Management Device Threshold
Data
Notoginseng Mem Ory Channel
IPMI Device Power
Supply

The above is a small series for everyone to bring the Linux view motherboard memory slot and Memory Information command Dmidecode method All content, I hope we support cloud Habitat Community ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.