Manjaro allocates wrong amount of RAM(only the KDE version)

My system is only locating 14.98GB of RAM, when I have 16GB in my laptop. When I tried Gnome, instead of KDE(manjaro too) - it was showing 15.8(as it should).
What can be the problem?

-inxi Fza

System:
  Kernel: 5.15.72-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-5.15-x86_64
    root=UUID=b11151cf-968d-43ca-b20e-de830fdcd43d rw rootflags=subvol=@
    quiet udev.log_priority=3
  Desktop: KDE Plasma v: 5.25.5 tk: Qt v: 5.15.6 info: latte-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Acer product: Swift SF314-43 v: V1.04
    serial: <superuser required>
  Mobo: LN model: Sake_CA v: V1.04 serial: <superuser required>
    UEFI: Insyde v: 1.04 date: 07/28/2021
Battery:
  ID-1: BAT1 charge: 53.2 Wh (100.0%) condition: 53.2/53.2 Wh (99.9%)
    volts: 13.1 min: 11.6 model: COSMX AP20CBL type: Li-ion serial: <filter>
    status: full
CPU:
  Info: model: AMD Ryzen 5 5500U with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 2 gen: 3 level: v3 note: check built: 2020-22 process: TSMC n7
    (7nm) family: 0x17 (23) model-id: 0x68 (104) stepping: 1
    microcode: 0x8608102
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
    L3: 8 MiB desc: 2x4 MiB
  Speed (MHz): avg: 2363 high: 2870 min/max: 1400/4056 boost: enabled
    scaling: driver: acpi-cpufreq governor: ondemand cores: 1: 2092 2: 2870
    3: 2245 4: 2385 5: 1799 6: 2018 7: 2547 8: 2498 9: 2433 10: 2388 11: 2679
    12: 2407 bogomips: 50327
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP
    protection
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP:
    always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Lucienne vendor: Acer Incorporated ALI driver: amdgpu
    v: kernel arch: GCN-5.1 code: Vega-2 process: TSMC n7 (7nm) built: 2018-21
    pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s
    ports: active: eDP-1 empty: DP-1,HDMI-A-1 bus-ID: 03:00.0
    chip-ID: 1002:164c class-ID: 0300 temp: 40.0 C
  Device-2: Quanta HD User Facing type: USB driver: uvcvideo bus-ID: 1-3:2
    chip-ID: 0408:a094 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.3
    compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting
    alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 mapped: eDP model: AU Optronics 0x683d built: 2019
    res: 1920x1080 hz: 60 dpi: 158 gamma: 1.2 size: 309x174mm (12.17x6.85")
    diag: 355mm (14") ratio: 16:9 modes: max: 1920x1080 min: 640x480
  OpenGL: renderer: AMD RENOIR (LLVM 14.0.6 DRM 3.42 5.15.72-1-MANJARO)
    v: 4.6 Mesa 22.1.7 direct render: Yes
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio vendor: Acer Incorporated
    ALI driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 03:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Acer Incorporated
    ALI driver: snd_rn_pci_acp3x v: kernel
    alternate: snd_pci_acp3x,snd_pci_acp5x pcie: gen: 3 speed: 8 GT/s
    lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 03:00.5
    chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Acer Incorporated ALI
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 03:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Sound API: ALSA v: k5.15.72-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.58 running: yes
Network:
  Device-1: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
    vendor: Lite-On driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s
    lanes: 1 bus-ID: 01:00.0 chip-ID: 14c3:7961 class-ID: 0280
  IF: wlp1s0 state: up mac: <filter>
  IF-ID-1: tap-easytether state: down mac: <filter>
Bluetooth:
  Device-1: Lite-On Wireless_Device type: USB driver: btusb v: 0.8
    bus-ID: 1-4:3 chip-ID: 04ca:3802 class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Drives:
  Local Storage: total: 476.94 GiB used: 205.57 GiB (43.1%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston model: OM8PDP3512B-AA1
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: EDFK0S03
    temp: 42.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 476.64 GiB size: 476.64 GiB (100.00%) used: 205.57 GiB
    (43.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 608 KiB
    (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 476.64 GiB size: 476.64 GiB (100.00%) used: 205.57
    GiB (43.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 476.64 GiB size: 476.64 GiB (100.00%) used: 205.57
    GiB (43.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 45.6 C mobo: N/A gpu: amdgpu temp: 41.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 361 Uptime: 3h 26m wakeups: 57102 Memory: 14.98 GiB used: 6.74
  GiB (45.0%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman pkgs: 1361
  libs: 405 tools: pamac Shell: Zsh v: 5.9 default: Bash v: 5.1.16
  running-in: yakuake inxi: 3.3.22

The DE (Desktop Environment) makes no difference how much shared memory is allocated as VRAM for the integrated graphics. Usually 2GB is allocated, so having 14.98GB available sounds about right.

But why then it’s different in windows and Gnome?
I wouldn’t have worried if it would’ve always been 14.98, but the problem is that it’s 1GB less than on different systems(or manjaro Gnome).

It’s probably due to dynamic allocation. Anywhere from 512MB to 2GB is normal.

1 Like

It’s always the same depending on the system. No matter how many times it was reinstalled(by different reasons).
Does this mean that KDE just allocates more by default or is it something I can change and make it like everywhere else(15.6-15.8 available out of 16GB)?

It’s probably down to the difference between decimal units and binary units.

1 MB  = 1'000 KB  = 1'000'000 B
1 MiB = 1'024 KiB = 1'048'576 B

Try running the following in the terminal:

free --human

For example:

$ free --human                                                                                                                                                                                                                                       1 ↵
total        used        free      shared  buff/cache   available
Mem:            15Gi       4.6Gi       7.0Gi       160Mi       4.0Gi        10Gi
Swap:          7.8Gi          0B       7.8Gi

(On my KDE system with 16GB RAM.)

Edit:

More info here:

1 Like

Here.

$ free --human                                                                                                                                                                                        
total        used        free      shared  buff/cache   available
Mem:            14Gi       4.1Gi       3.8Gi       418Mi       7.1Gi        10Gi
Swap:             0B          0B          0B

Well I don’t understand why is there such difference. Especially since, again, it shows all ram on other systems.

Btw, when I try to use free -m from that link it shows this:

$ free -m                                                                                                                                                                                         
free: Multiple unit options doesn't make sense.

Check your BIOS/UEFI for memory assigned to integrated graphics.

(No, I don’t know why the discrepency, either.)

I don’t have such option in bios.
Plus if it was truly BIOS setting and not something OS related - wouldn’t I had the same 14.98GB on windows/linux mint/manjaro gnome? I only have these 14.98gb on manjaro KDE, nowhere else
Btw, BIOS shows correct ammount of ram - 16384.

2 Likes