когда надо узнать не просто объем памяти, который, к слову, проверяется командой
sysctl -a | grep mem
а более подробную информацию о памяти (сколько слотов есть на материнской плате и сколько из них заняты и какими модулями, и какой максимальный объем для данной платы)
dmidecode -t 16,17 Handle 0x002C, DMI type 16, 15 bytes Physical Memory Array Location: System Board Or Motherboard Use: System Memory Error Correction Type: Multi-bit ECC Maximum Capacity: 16 GB Error Information Handle: Not Provided Number Of Devices: 6 Handle 0x002E, DMI type 17, 27 bytes Memory Device Array Handle: 0x002C Error Information Handle: Not Provided Total Width: 72 bits Data Width: 64 bits Size: 1024 MB Form Factor: DIMM Set: None Locator: DIMM1 A Bank Locator: BANK1 Type: DDR2 Type Detail: Other Speed: 667 MHz Manufacturer: 7F7F7F7F7F510000 Serial Number: 1500e616 Asset Tag: Part Number: 373254313238303030455033534232202020
кроме этого данная команда позволяет узнать еще много разной информации о железе и биосе сервера
Type Information
----------------------------------------
0 BIOS
1 System
2 Base Board
3 Chassis
4 Processor
5 Memory Controller
6 Memory Module
7 Cache
8 Port Connector
9 System Slots
10 On Board Devices
11 OEM Strings
12 System Configuration Options
13 BIOS Language
14 Group Associations
15 System Event Log
16 Physical Memory Array
17 Memory Device
18 32-bit Memory Error
19 Memory Array Mapped Address
20 Memory Device Mapped Address
21 Built-in Pointing Device
22 Portable Battery
23 System Reset
24 Hardware Security
25 System Power Controls
26 Voltage Probe
27 Cooling Device
28 Temperature Probe
29 Electrical Current Probe
30 Out-of-band Remote Access
31 Boot Integrity Services
32 System Boot
33 64-bit Memory Error
34 Management Device
35 Management Device Component
36 Management Device Threshold Data
37 Memory Channel
38 IPMI Device
39 Power Supply
40 Additional Information
41 Onboard Device