Linux: quantos pentes de memória tenho?

O lshw é uma pequena ferramenta para extrair informações detalhadas sobre a configuração de hardware da máquina.

No exemplo abaixo eu utilizei a opção para ver apenas informações de memória, e agora sei que estou com 2 dos 4 bancos ocupados por um pente de 4GB em cada, e o tipo é DDR3.

ricardo@Melquior:~$ sudo lshw -class memory
  *-firmware
       description: BIOS
       vendor: LENOVO
       physical id: 0
       version: 29CN40WW(V2.17)
       date: 04/13/2011
       size: 1MiB
       capacity: 1984KiB
       capabilities: pci upgrade shadowing cdboot bootselect edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int9keyboard int10video acpi usb biosbootspecification
  *-memory
       description: System Memory
       physical id: 19
       slot: System board or motherboard
       size: 8GiB
     *-bank:0
          description: SODIMM DDR3 Synchronous 1067 MHz (0,9 ns)
          product: 8JSF25664HZ-1G4D1
          physical id: 0
          serial: FFFFFFFF
          slot: DIMM0
          size: 4GiB
          width: 64 bits
          clock: 1067MHz (0.9ns)
     *-bank:1
          description: DIMM DDR3 Synchronous 1067 MHz (0,9 ns) [empty]
          physical id: 1
          serial: 00000000
          slot: DIMM1
          width: 8 bits
          clock: 1067MHz (0.9ns)
     *-bank:2
          description: SODIMM DDR3 Synchronous 1067 MHz (0,9 ns)
          product: HB3SU004GFM8MML33
          physical id: 2
          serial: CA000000
          slot: DIMM1
          size: 4GiB
          width: 64 bits
          clock: 1067MHz (0.9ns)
     *-bank:3
          description: DIMM DDR3 Synchronous 1067 MHz (0,9 ns) [empty]
          physical id: 3
          serial: 00000000
          slot: DIMM3
          width: 8 bits
          clock: 1067MHz (0.9ns)
  *-cache:0
       description: L3 cache
       physical id: 2d
       slot: L3 Cache
       size: 3MiB
       capacity: 3MiB
       capabilities: synchronous internal write-through unified
       configuration: level=3
  *-cache:1
       description: L2 cache
       physical id: 2f
       slot: L2 Cache
       size: 256KiB
       capacity: 256KiB
       capabilities: synchronous internal write-through unified
       configuration: level=2
  *-cache:2
       description: L1 cache
       physical id: 30
       slot: L1 Cache
       size: 32KiB
       capacity: 32KiB
       capabilities: synchronous internal write-through instruction
       configuration: level=1
  *-cache
       description: L1 cache
       physical id: 2e
       slot: L1 Cache
       size: 32KiB
       capacity: 32KiB
       capabilities: synchronous internal write-through data
       configuration: level=1
ricardo@Melquior:~$

2 comments

  1. #dmidecode tambem mostra. Nao somente o numero de pastilha, mas tambem a quantidade de slot vago e sua capacidade

    1. Obrigado, não conhecia, executei agora. Traz um monte de informações da BIOS também, por exemplo, até se permite boot por CD.

      [root@Baltazar ~]# dmidecode
      # dmidecode 3.1
      Getting SMBIOS data from sysfs.
      SMBIOS 2.7 present.
      19 structures occupying 1146 bytes.
      Table at 0x000EB060.
      
      Handle 0x0000, DMI type 0, 24 bytes
      BIOS Information
              Vendor: American Megatrends Inc.
              Version: P1.20
              Release Date: 11/02/2011
              Address: 0xF0000
              Runtime Size: 64 kB
              ROM Size: 4096 kB
              Characteristics:
                      PCI is supported
                      BIOS is upgradeable
                      BIOS shadowing is allowed
                      Boot from CD is supported
                      Selectable boot is supported
                      BIOS ROM is socketed
                      EDD is supported
                      5.25"/1.2 MB floppy services are supported (int 13h)
                      3.5"/720 kB floppy services are supported (int 13h)
                      3.5"/2.88 MB floppy services are supported (int 13h)
                      Print screen service is supported (int 5h)
                      8042 keyboard services are supported (int 9h)
                      Serial services are supported (int 14h)
                      Printer services are supported (int 17h)
                      ACPI is supported
                      USB legacy is supported
                      BIOS boot specification is supported
                      Targeted content distribution is supported
                      UEFI is supported
              BIOS Revision: 4.6
      
      Handle 0x0001, DMI type 1, 27 bytes
      System Information
              Manufacturer: To Be Filled By O.E.M.
              Product Name: To Be Filled By O.E.M.
              Version: To Be Filled By O.E.M.
              Serial Number: To Be Filled By O.E.M.
              UUID: 03000200-0400-0500-0006-000700080009
              Wake-up Type: Power Switch
              SKU Number: To Be Filled By O.E.M.
              Family: To Be Filled By O.E.M.
      
      Handle 0x0002, DMI type 2, 15 bytes
      Base Board Information
              Manufacturer: ASRock
              Product Name: A55M-HVS
              Version:
              Serial Number:
              Asset Tag:
              Features:
                      Board is a hosting board
                      Board is replaceable
              Location In Chassis:
              Chassis Handle: 0x0003
              Type: Motherboard
              Contained Object Handles: 0
      
      Handle 0x0003, DMI type 3, 22 bytes
      Chassis Information
              Manufacturer: To Be Filled By O.E.M.
              Type: Desktop
              Lock: Not Present
              Version: To Be Filled By O.E.M.
              Serial Number: To Be Filled By O.E.M.
              Asset Tag: To Be Filled By O.E.M.
              Boot-up State: Safe
              Power Supply State: Safe
              Thermal State: Safe
              Security Status: None
              OEM Information: 0x00000000
              Height: Unspecified
              Number Of Power Cords: 1
              Contained Elements: 0
              SKU Number: To be filled by O.E.M.
      
      Handle 0x0004, DMI type 9, 17 bytes
      System Slot Information
              Designation: PCI1
              Type: 32-bit PCI
              Current Usage: In Use
              Length: Short
              ID: 1
              Characteristics:
                      3.3 V is provided
                      Opening is shared
                      PME signal is supported
      
      Handle 0x0005, DMI type 9, 17 bytes
      System Slot Information
              Designation: PCIE2
              Type: x16 PCI Express
              Current Usage: In Use
              Length: Short
              ID: 17
              Characteristics:
                      3.3 V is provided
                      Opening is shared
                      PME signal is supported
              Bus Address: 0000:00:02.0
      
      Handle 0x0006, DMI type 9, 17 bytes
      System Slot Information
              Designation: PCIE3
              Type: x4 PCI Express
              Current Usage: In Use
              Length: Short
              ID: 18
              Characteristics:
                      3.3 V is provided
                      Opening is shared
                      PME signal is supported
              Bus Address: 0000:00:04.0
      
      Handle 0x0007, DMI type 11, 5 bytes
      OEM Strings
              String 1: To Be Filled By O.E.M.
      
      Handle 0x0008, DMI type 16, 23 bytes
      Physical Memory Array
              Location: System Board Or Motherboard
              Use: System Memory
              Error Correction Type: None
              Maximum Capacity: 16 GB
              Error Information Handle: Not Provided
              Number Of Devices: 2
      
      Handle 0x0009, DMI type 19, 31 bytes
      Memory Array Mapped Address
              Starting Address: 0x00000000000
              Ending Address: 0x003FFFFFFFF
              Range Size: 16 GB
              Physical Array Handle: 0x0008
              Partition Width: 255
      
      Handle 0x000A, DMI type 17, 34 bytes
      Memory Device
              Array Handle: 0x0008
              Error Information Handle: Not Provided
              Total Width: 64 bits
              Data Width: 64 bits
              Size: 8192 MB
              Form Factor: DIMM
              Set: None
              Locator: A1_DIMM0
              Bank Locator: A1_BANK0
              Type: DDR3
              Type Detail: Synchronous
              Speed: 1600 MT/s
              Manufacturer: Apacer
              Serial Number: 00000000
              Asset Tag: A1_AssetTagNum0
              Part Number:
              Rank: 2
              Configured Clock Speed: 533 MT/s
      
      Handle 0x000B, DMI type 20, 35 bytes
      Memory Device Mapped Address
              Starting Address: 0x00000000000
              Ending Address: 0x001FFFFFFFF
              Range Size: 8 GB
              Physical Device Handle: 0x000A
              Memory Array Mapped Address Handle: 0x0009
              Partition Row Position: 1
      
      Handle 0x000C, DMI type 17, 34 bytes
      Memory Device
              Array Handle: 0x0008
              Error Information Handle: Not Provided
              Total Width: 64 bits
              Data Width: 64 bits
              Size: 8192 MB
              Form Factor: DIMM
              Set: None
              Locator: A1_DIMM1
              Bank Locator: A1_BANK1
              Type: DDR3
              Type Detail: Synchronous
              Speed: 1600 MT/s
              Manufacturer: Apacer
              Serial Number: 00000000
              Asset Tag: A1_AssetTagNum1
              Part Number:
              Rank: 2
              Configured Clock Speed: 533 MT/s
      
      Handle 0x000D, DMI type 20, 35 bytes
      Memory Device Mapped Address
              Starting Address: 0x00200000000
              Ending Address: 0x003FFFFFFFF
              Range Size: 8 GB
              Physical Device Handle: 0x000C
              Memory Array Mapped Address Handle: 0x0009
              Partition Row Position: 1
      
      Handle 0x000E, DMI type 32, 20 bytes
      System Boot Information
              Status: No errors detected
      
      Handle 0x000F, DMI type 7, 19 bytes
      Cache Information
              Socket Designation: L1 CACHE
              Configuration: Enabled, Not Socketed, Level 1
              Operational Mode: Write Back
              Location: Internal
              Installed Size: 512 kB
              Maximum Size: 512 kB
              Supported SRAM Types:
                      Pipeline Burst
              Installed SRAM Type: Pipeline Burst
              Speed: 1 ns
              Error Correction Type: Multi-bit ECC
              System Type: Unified
              Associativity: 2-way Set-associative
      
      Handle 0x0010, DMI type 7, 19 bytes
      Cache Information
              Socket Designation: L2 CACHE
              Configuration: Enabled, Not Socketed, Level 2
              Operational Mode: Write Back
              Location: Internal
              Installed Size: 4096 kB
              Maximum Size: 4096 kB
              Supported SRAM Types:
                      Pipeline Burst
              Installed SRAM Type: Pipeline Burst
              Speed: 1 ns
              Error Correction Type: Multi-bit ECC
              System Type: Unified
              Associativity: 16-way Set-associative
      
      Handle 0x0012, DMI type 4, 42 bytes
      Processor Information
              Socket Designation: CPUSocket
              Type: Central Processor
              Family: A-Series
              Manufacturer: AMD
              ID: 10 0F 30 00 FF FB 8B 17
              Signature: Family 18, Model 1, Stepping 0
              Flags:
                      FPU (Floating-point unit on-chip)
                      VME (Virtual mode extension)
                      DE (Debugging extension)
                      PSE (Page size extension)
                      TSC (Time stamp counter)
                      MSR (Model specific registers)
                      PAE (Physical address extension)
                      MCE (Machine check exception)
                      CX8 (CMPXCHG8 instruction supported)
                      APIC (On-chip APIC hardware supported)
                      SEP (Fast system call)
                      MTRR (Memory type range registers)
                      PGE (Page global enable)
                      MCA (Machine check architecture)
                      CMOV (Conditional move instruction supported)
                      PAT (Page attribute table)
                      PSE-36 (36-bit page size extension)
                      CLFSH (CLFLUSH instruction supported)
                      MMX (MMX technology supported)
                      FXSR (FXSAVE and FXSTOR instructions supported)
                      SSE (Streaming SIMD extensions)
                      SSE2 (Streaming SIMD extensions 2)
                      HTT (Multi-threading)
              Version: AMD A8-3870 APU with Radeon(tm) HD Graphics
              Voltage: 1.4 V
              External Clock: 100 MHz
              Max Speed: 3000 MHz
              Current Speed: 3000 MHz
              Status: Populated, Enabled
              Upgrade: Socket FM1
              L1 Cache Handle: 0x000F
              L2 Cache Handle: 0x0010
              L3 Cache Handle: Not Provided
              Serial Number: Not Specified
              Asset Tag: Not Specified
              Part Number: Not Specified
              Core Count: 4
              Core Enabled: 4
              Thread Count: 4
              Characteristics:
                      64-bit capable
      
      Handle 0x0013, DMI type 127, 4 bytes
      End Of Table
      
      [root@Baltazar ~]#
      

Leave a Reply

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

Esse site utiliza o Akismet para reduzir spam. Aprenda como seus dados de comentários são processados.