Controllo memoria RAM e altro..su Linux
In questo breve articolo andremo a vedere come controllare in un sistema Linux la velocità e il tipo di memoria RAM.
Supponiamo di avere a disposizione una macchina Ubuntu 16.04 preinstallata (guarda il seguente articolo), anche una macchina CentOS 7 andrebbe bene.
Utilizziamo il seguente comando
dmidecode
# dmidecode 2.12
SMBIOS 2.6 present.
17 structures occupying 728 bytes.
Table at 0x000EBE70.Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: American Megatrends Inc.
Version: R1170Y8
Release Date: 01/28/2011
Address: 0xF0000
Runtime Size: 64 kB
ROM Size: 4096 kB
Characteristics:……..
grazie a dmidecode, otteniamo informazioni dettagliate del nostro hardware, come il BIOS,la scheda madre, la RAM ed altro.
Per esempio consideriamo di voler investigare quanti banchi di RAM abbiamo e la loro dimensione,
dmidecode --type memory
Handle 0x000C, DMI type 17, 21 bytes
Memory Device
Array Handle: 0x0009
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 2048 MB
Form Factor: SODIMM
Set: None
Locator: SODIMM2
Bank Locator: Bank 1
Type: DDR3
Type Detail: Unknown
per avere il dettaglio di altre componenti è possibile fare uso di questo elenco
dmidecode --type
Valid type keywords are:
bios
system
baseboard
chassis
processor
memory
cache
connector
slot