It's unlikely you have 24GB. What you probably have is 24GiB. See
here for background. Different reporting tools have different methods of reporting, some using GB correctly, some using GiB correctly, some using neither correctly, some using a mixture. Make sure dmidecode is installed, then try these:
Code:
# free
total used free shared buff/cache available
Mem: 16303064 532264 15708968 1928 339616 15770800
Swap: 1052220 0 1052220
# free -h
total used free shared buff/cache available
Mem: 15Gi 519Mi 14Gi 1.0Mi 331Mi 15Gi
Swap: 1.0Gi 0B 1.0Gi
# sudo inxi -ma
Memory:
System RAM: total: 16 GiB available: 15.55 GiB used: 559.5 MiB (3.5%)
Array-1: capacity: 32 GiB note: est. slots: 4 modules: 2 EC: None
max-module-size: 8 GiB note: est.
Device-1: A0 info: double-bank type: N/A size: 8 GiB speed: 1600 MT/s
volts: N/A width (bits): data: 64 total: 64 manufacturer: N/A part-no: N/A
serial: N/A
Device-2: A1 info: double-bank type: N/A size: 8 GiB speed: 1600 MT/s
volts: N/A width (bits): data: 64 total: 64 manufacturer: N/A part-no: N/A
serial: N/A
Device-3: A2 type: no module installed
Device-4: A3 type: no module installed
memtest86 and memtest86+ try to report DIMM slots, size and timings.