是否可以查询我的主板占用的最大内存?

chr*_*lee 18 hardware command-line ram 12.04

是否可以通过终端查询我的主板可以占用多少内存?

我想看看我是否甚至可以升级。

rev*_*dj1 25

您可以使用以下命令轻松找到它:

sudo dmidecode -t 16
Run Code Online (Sandbox Code Playgroud)

此命令将告诉您每个插槽中已有多少:

sudo dmidecode -t 17
Run Code Online (Sandbox Code Playgroud)

  • 您可能还想检查“-t 2”,它可以提供有关主板的信息,包括型号。然后,此型号可以生成文档,这*可能*对您更有帮助。 (3认同)
  • 在一行中:`sudo dmidecode -t16,17` (2认同)
  • `sudo dmidecode -t memory` 是等效的,并且排除 *handle*、*type* 和 *size* 信息,这些信息可能被认为是无关的 (2认同)

use*_*own 8

lshw(列出硬件)与 sudo,-Class 内存:

sudo lshw -C memory
[sudo] password for stefan: 
  *-firmware              
       description: BIOS
       vendor: American Megatrends Inc.
       physical id: 0
       version: 0208 (01/31/2005)
       size: 64KiB
       capacity: 448KiB
       capabilities: isa pci pcmcia pnp apm upgrade shadowing escd cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb agp ls120boot zipboot biosbootspecification netboot
  *-cache:0
       description: L1 cache
       physical id: 5
       slot: L1-Cache
       size: 32KiB
       capacity: 32KiB
       capabilities: pipeline-burst internal varies data
  *-cache:1
       description: L2 cache
       physical id: 6
       slot: L2-Cache
       size: 2MiB
       capacity: 2MiB
       capabilities: pipeline-burst internal varies unified
  *-memory
       description: System Memory
       physical id: 1b
       slot: System board or motherboard
       size: 1GiB
       capacity: 3GiB
     *-bank:0
          description: DIMM SDRAM Synchronous
          product: PartNum0
          vendor: Manufacturer0
          physical id: 0
          serial: SerNum0
          slot: DIMM0
          size: 512MiB
          width: 64 bits
     *-bank:1
          description: DIMM SDRAM Synchronous
          product: PartNum1
          vendor: Manufacturer1
          physical id: 1
          serial: SerNum1
          slot: DIMM1
          size: 512MiB
          width: 64 bits
Run Code Online (Sandbox Code Playgroud)

那个部分:

   size: 1GiB
   capacity: 3GiB
Run Code Online (Sandbox Code Playgroud)

就是你要找的。我的系统有 1GiB,但需要 3。