學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 電腦硬件知識(shí) > 內(nèi)存知識(shí) > Linux使用dmidecode命令查看內(nèi)存型號(hào)

Linux使用dmidecode命令查看內(nèi)存型號(hào)

時(shí)間: 捷鋒774 分享

Linux使用dmidecode命令查看內(nèi)存型號(hào)

  其實(shí)Linux的內(nèi)存型號(hào)不難查看,下面,讓小編帶你們一起了解怎么查看Linux的內(nèi)存型號(hào)吧。

  Linux使用dmidecode命令查看內(nèi)存型號(hào):

  目前我的電腦內(nèi)存只有512M,想加根內(nèi)存條。機(jī)器主板是nVidia Corporation MCP61,看了下主板說(shuō)明

  書(shū)發(fā)現(xiàn)系統(tǒng)內(nèi)存支持雙通道內(nèi)存技術(shù)。配置了4個(gè)DDRII DIMM插槽,支持DDRII 800/667/533內(nèi)存,

  最大支持8G容量。

  為了嘗試下雙通道內(nèi)存技術(shù),打算買(mǎi)根跟原來(lái)一樣的內(nèi)存條。發(fā)票的電腦配置上只寫(xiě)了kingston DDRII

  512M。剩下的事情就是確定內(nèi)存的工作頻率。上網(wǎng)google發(fā)現(xiàn)有個(gè)工具dmidecode(DMI table

  decoder)。它可以全面的顯示你系統(tǒng)的信息,包括bios、cpu、內(nèi)存等信息。

  -----------------開(kāi)始操作-------------------------

  [ray@localhost testcase]$ sudo dmidecode --help

  Usage: dmidecode [OPTIONS]

  Options are:

  -d, --dev-mem FILE Read memory from device FILE (default: /dev/mem)

  -h, --help Display this help text and exit

  -q, --quiet Less verbose output

  -s, --string KEYWORD Only display the value of the given DMI string

  -t, --type TYPE Only display the entries of given type

  -u, --dump Do not decode the entries

  -V, --version Display the version and exit

  [ray@localhost testcase]$ sudo dmidecode -t memory

  # dmidecode 2.7

  SMBIOS 2.4 present.

  Handle 0x0007, DMI type 5, 24 bytes.

  Memory Controller Information

  Error Detecting Method: 64-bit ECC

  Error Correcting Capabilities:

  None

  Supported Interleave: One-way Interleave

  Current Interleave: One-way Interleave

  Maximum Memory Module Size: 2048 MB

  Maximum Total Memory Size: 8192 MB

  Supported Speeds:

  70 ns

  60 ns

  Supported Memory Types:

  DIMM

  SDRAM

  Memory Module Voltage: 3.3 V

  Associated Memory Slots: 4

  0x0008

  0x0009

  0x000A

  0x000B

  Enabled Error Correcting Capabilities:

  None

  Handle 0x0008, DMI type 6, 12 bytes.

  Memory Module Information

  Socket Designation: DIMM0

  Bank Connections: 0 1

  Current Speed: Unknown

  Type: ECC DIMM

  Installed Size: 512 MB (Single-bank Connection)

  Enabled Size: 512 MB (Single-bank Connection)

  Error Status: OK

  Handle 0x0009, DMI type 6, 12 bytes.

  Memory Module Information

  Socket Designation: DIMM1

  Bank Connections: None

  Current Speed: Unknown

  Type: Unknown

  Installed Size: Not Installed

  Enabled Size: Not Installed

  Error Status: OK

  Handle 0x000A, DMI type 6, 12 bytes.

  Memory Module Information

  Socket Designation: DIMM2

  Bank Connections: None

  Current Speed: Unknown

  Type: Unknown

  Installed Size: Not Installed

  Enabled Size: Not Installed

  Error Status: OK

  Handle 0x000B, DMI type 6, 12 bytes.

  Memory Module Information

  Socket Designation: DIMM3

  Bank Connections: None

  Current Speed: Unknown

  Type: Unknown

  Installed Size: Not Installed

  Enabled Size: Not Installed

  Error Status: OK

  Handle 0x0010, DMI type 16, 15 bytes.

  Physical Memory Array

  Location: System Board Or Motherboard

  Use: System Memory

  Error Correction Type: None

  Maximum Capacity: 8 GB

  Error Information Handle: Not Provided

  Number Of Devices: 4

  Handle 0x0012, DMI type 17, 27 bytes.

  Memory Device

  Array Handle: 0x0010

  Error Information Handle: Not Provided

  Total Width: 64 bits

  Data Width: 72 bits

  Size: 512 MB

  Form Factor: DIMM

  Set: None

  Locator: DIMM0

  Bank Locator: BANK0

  Type: DDR2

  Type Detail: Synchronous

  Speed: 533 MHz (1.9 ns)

  Manufacturer: Manufacturer0

  Serial Number: SerNum0

  Asset Tag: AssetTagNum0

  Part Number: PartNum0

  Handle 0x0014, DMI type 17, 27 bytes.

  Memory Device

  Array Handle: 0x0010

  Error Information Handle: Not Provided

  Total Width: Unknown

  Data Width: 64 bits

  Size: No Module Installed

  Form Factor: DIMM

  Set: None

  Locator: DIMM1

  Bank Locator: BANK1

  Type: Unknown

  Type Detail: Unknown

  Speed: Unknown

  Manufacturer: Manufacturer1

  Serial Number: SerNum1

  Asset Tag: AssetTagNum1

  Part Number: PartNum1

  Handle 0x0016, DMI type 17, 27 bytes.

  Memory Device

  Array Handle: 0x0010

  Error Information Handle: Not Provided

  Total Width: Unknown

  Data Width: 64 bits

  Size: No Module Installed

  Form Factor: DIMM

  Set: None

  Locator: DIMM2

  Bank Locator: BANK2

  Type: Unknown

  Type Detail: Unknown

  Speed: Unknown

  Manufacturer: Manufacturer2

  Serial Number: SerNum2

  Asset Tag: AssetTagNum2

  Part Number: PartNum2

  Handle 0x0018, DMI type 17, 27 bytes.

  Memory Device

  Array Handle: 0x0010

  Error Information Handle: Not Provided

  Total Width: Unknown

  Data Width: 64 bits

  Size: No Module Installed

  Form Factor: DIMM

  Set: None

  Locator: DIMM3

  Bank Locator: BANK3

  Type: Unknown

  Type Detail: Unknown

  Speed: Unknown

  Manufacturer: Manufacturer3

  Serial Number: SerNum3

  Asset Tag: AssetTagNum3

  Part Number: PartNum3

  -------------------結(jié)束操作-------------------------

  在Memory Controller Information中,可以看到最大的內(nèi)存大小是8G,支持內(nèi)存種類(lèi)為DIMM和SDRAM。

  有四個(gè)Memory Slots。對(duì)應(yīng)接下來(lái)的4個(gè)Memory Module Information。DMI type 16 (man

  dmidecode里面有DMI TYPES specification)的意思是 Physical Memory Array。 這里也可以看出來(lái),

  最大支持內(nèi)存為8G, 有4個(gè)內(nèi)存設(shè)備。最后則列出具體的4個(gè)內(nèi)存設(shè)備,其中發(fā)現(xiàn)了一個(gè)內(nèi)存設(shè)備為512M,

  類(lèi)型Type:DDR2, 工作頻率Speed: 533 MHz (1.9 ns)。這個(gè)就我目前電腦上的那根內(nèi)存條。

592842