pc安装linux_如何判断Linux PC已安装哪种类型的内存

pc安装linux_如何判断Linux PC已安装哪种类型的内存

pc安装linux

If you are looking to upgrade the memory in your Linux PC, you are probably wondering how many open slots you have, what type of memory is already installed, and what you need to buy for an upgrade… without having to open your computer.

如果要升级Linux PC中的内存,您可能想知道您有多少个空插槽,已经安装了哪种类型的内存以及需要购买什么进行升级……而不必打开计算机。

Since you shouldn’t have to open up the computer just to figure out what you have installed, here’s how to detect the type of memory your Linux PC has installed without having to open up the case.

由于您不必只为了弄清已安装的内容而打开计算机,因此这里介绍了无需打开机箱即可检测Linux PC已安装的内存类型的方法。

Note: be sure to read our article on how to tell what type of memory your Windows PC has installed.

注意:请务必阅读有关如何确定Windows PC已安装哪种类型的内存的文章。

如何显示已安装的内存 (How to Show the Installed Memory)

Open up a terminal window and type in the following command:

打开一个终端窗口,然后输入以下命令:

sudo dmidecode --type memory

sudo dmidecode --type memory

pc安装linux_如何判断Linux PC已安装哪种类型的内存

At the beginning of the output you’ll see the maximum memory size allowed by your PC, which is important—you can’t put two 4GB memory modules into a machine that only allows a total of 4GB of RAM.

在输出的开始,您将看到PC允许的最大内存大小,这很重要-您不能将两个4GB内存模块放入仅允许总共4GB RAM的计算机中。

Once you’ve scrolled down a little further, you’ll see the rest of the memory details for each piece of RAM that’s installed. Here’s a sample from one of my Linux boxes, and I’ve highlighted the important bits in bold text.

向下滚动一点后,您将看到已安装的每个RAM的其余内存详细信息。 这是我的一个Linux机器中的一个示例,并且我以粗体突出显示了重要的部分。

Handle 0x0120, DMI type 17, 27 bytesMemory Device        Array Handle: 0x011F        Error Information Handle: No Error        Total Width: 64 bits        Data Width: 64 bits        Size: 512 MB        Form Factor: DIMM        Set: None        Locator: DIMM0        Bank Locator: BANK 0        Type: DDR2        Type Detail: Synchronous        Speed: 667 MHz (1.5 ns)        Manufacturer: 0x7F7F7F0B00000000        Serial Number: 0xC773441A        Asset Tag: Unknown        Part Number: 0x4E543531325436345548384230464E2D3343

句柄0x0120,DMI类型17,27字节存储设备阵列句柄:0x011F错误信息句柄:无错误总宽度:64位数据宽度:64位大小:512 MB 外形 尺寸 :DIMM设置:无定位符:DIMM0银行定位符:BANK 0 类型:DDR2 类型详细信息:同步 速度:667 MHz(1.5 ns)制造商:0x7F7F7F0B00000000***:0xC773441A资产标签:未知部件号:0x4E543531325436345548548230464E2D3343

You’ll see that I’ve got DDR2-667 RAM installed on the system, so if I’m going to upgrade, I’ll need to find RAM that matches.

您会看到我在系统上安装了DDR2-667 RAM,因此,如果要升级,则需要找到匹配的RAM。

查找内存类型的其他选项 (Other Options for Finding the Memory Type)

Here’s a few other options that you can use:

您可以使用以下一些其他选项:

  • You can look up the specs for your system to figure out what memory types your computer takes. I usually google for “modelnumber specs”, for instance I’d type in “nc8430 specs”.

    您可以查找系统规格,以了解计算机需要使用哪种内存类型。 我通常会在Google上搜索“型号编号规格”,例如,我会输入“ nc8430规格”。
  • Pull out the manual for your computer or motherboard, and take a look at your receipts to figure out what you bought last time.

    拿出计算机或主板的手册,并查看收据以了解您上次购买的产品。
  • If you built a computer with parts from Newegg, you can look at your order history to re-order the exact same memory module if you know you have empty slots.

    如果您是用Newegg的零件制造的计算机,则在知道有空插槽的情况下,可以查看订购历史来重新订购完全相同的内存模块。
  • If you are running Mac OS X, you can just look under your “About this Mac” and then click on More Info.

    如果您运行的是Mac OS X,则只需在“关于本机”下查看,然后单击“更多信息”。

If you’re running Windows instead, make sure to read our article on how to tell what type of memory your Windows PC has installed.

如果您使用的是Windows,请确保阅读我们的文章, 了解如何确定Windows PC已安装的内存类型

翻译自: https://www.howtogeek.com/howto/28475/how-to-tell-what-type-of-memory-your-linux-pc-has-installed/

pc安装linux