free -m
total used free shared buff/cache available
Mem: 7953 3334 1265 61 3353 4262
Swap: 6047 0 6047
sudo lshw -c memory
*-firmware
description: BIOS
vendor: American Megatrends Inc.
physical id: 0
version: 4022
date: 08/08/2018
size: 64KiB
capacity: 16MiB
capabilities: pci apm upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
*-memory
description: System Memory
physical id: 23
slot: System board or motherboard
size: 16GiB
*-bank:0
description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0.4 ns)
product: KHX2400C15/8G
vendor: Kingston
physical id: 0
serial: ED3FC90A
slot: DIMM_A1
size: 8GiB
width: 64 bits
clock: 2400MHz (0.4ns)
*-bank:1
description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0.4 ns)
product: KHX2400C15/8G
vendor: Kingston
physical id: 1
serial: ECBA5B02
slot: DIMM_B1
size: 8GiB
width: 64 bits
clock: 2400MHz (0.4ns)
sudo dmidecode -s bios-version
4022
I started with 8GB RAM on my computer. Then I installed an extra 8GB module but Ubuntu didn't recognize total RAM as 16GB, but still 8GB. The strange thing is that when I enter the BIOS it recognizes both 8gb modules(DIM_A1 and DIM_A2 slots) but in total RAM it still 8gb. Also from first command it shows 8gb RAM, but second one it is showing both modules (16gb)...
Motherboard : Asus Prime A320m-K CPU : AMD Ryzen 5 2600
BIOS
Asus Prime A320m-K
You have BIOS 4022 from 9/7/2018.
There's a newer BIOS available, version 5602, dated 7/27/2020, and it can be downloaded from here.
Note: Confirm that I have the correct web page for your motherboard.
Note: Have good backups before updating the BIOS.
Memory
AMD Ryzen 5 2600
Ryzen processors are notorious for memory compatibility issues.
We need to test your RAM, but we do it after the BIOS update.
Go to https://www.memtest86.com/ and download/run their free
memtest
to test your memory. Get at least one complete pass of all the 4/4 tests to confirm good memory. This may take many hours to complete.CPU Support: https://www.asus.com/us/Motherboards/PRIME-A320M-K/HelpDesk_CPU/
Memory Support: https://www.asus.com/us/Motherboards/PRIME-A320M-K/HelpDesk_QVL/