Fedora 40 using sometimes 90% RAM when browsing/vscode

I often find the system locking up and having to do a force shutdown, any tips for how to combat this?

Please share details of your system as preformatted text, the </>, of the output of inxi -Fzxx.

System:
  Kernel: 6.9.6-200.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: KDE Plasma v: 6.1.1 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
    Distro: Fedora Linux 40 (KDE Plasma)
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME B650M-A WIFI v: Rev 1.xx
    serial: <superuser required> part-nu: SKU UEFI: American Megatrends v: 0613
    date: 09/22/2022
CPU:
  Info: 8-core model: AMD Ryzen 7 7800X3D bits: 64 type: MT MCP arch: Zen 4
    rev: 2 cache: L1: 512 KiB L2: 8 MiB L3: 96 MiB
  Speed (MHz): avg: 4466 high: 4467 min/max: 400/5050 cores: 1: 4466 2: 4467
    3: 4466 4: 4466 5: 4467 6: 4466 7: 4467 8: 4466 9: 4466 10: 4467 11: 4466
    12: 4466 13: 4466 14: 4463 15: 4466 16: 4466 bogomips: 134142
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M] vendor: Gigabyte
    driver: amdgpu v: kernel arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports:
    active: HDMI-A-2 empty: DP-1, DP-2, HDMI-A-1, Writeback-1 bus-ID: 03:00.0
    chip-ID: 1002:73ff
  Device-2: AMD Raphael driver: amdgpu v: kernel arch: RDNA-2 pcie:
    speed: 16 GT/s lanes: 16 ports: active: none empty: DP-3, DP-4, HDMI-A-3,
    Writeback-2 bus-ID: 0e:00.0 chip-ID: 1002:164e temp: 36.0 C
  Display: wayland server: Xwayland v: 24.1.0 compositor: kwin_wayland
    driver: N/A display-ID: 0
  Monitor-1: HDMI-A-2 res: 1920x1080 size: N/A
  API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: radeonsi
    device: 2 drv: swrast gbm: drv: radeonsi surfaceless: drv: radeonsi wayland:
    drv: radeonsi x11: drv: radeonsi
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.1.2 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon RX 6600 (radeonsi navi23 LLVM
    18.1.6 DRM 3.57 6.9.6-200.fc40.x86_64) device-ID: 1002:73ff
    display-ID: :0.0
  API: Vulkan v: 1.3.283 surfaces: xcb,xlib,wayland device: 0
    type: discrete-gpu driver: N/A device-ID: 1002:73ff device: 1
    type: integrated-gpu driver: N/A device-ID: 1002:164e device: 2 type: cpu
    driver: N/A device-ID: 10005:0000
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
    speed: 16 GT/s lanes: 16 bus-ID: 03:00.1 chip-ID: 1002:ab28
  Device-2: AMD Rembrandt Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 0e:00.1 chip-ID: 1002:1640
  Device-3: AMD Family 17h/19h HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 0e:00.6 chip-ID: 1022:15e3
  API: ALSA v: k6.9.6-200.fc40.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
    pcie: speed: 5 GT/s lanes: 1 port: d000 bus-ID: 0a:00.0 chip-ID: 10ec:8125
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Realtek RTL8852BE PCIe 802.11ax Wireless Network
    vendor: AzureWave driver: rtw89_8852be v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: c000 bus-ID: 0b:00.0 chip-ID: 10ec:b852
  IF: wlp11s0 state: down mac: <filter>
Bluetooth:
  Device-1: IMC Networks Bluetooth Radio driver: btusb v: 0.8 type: USB
    rev: 1.0 speed: 12 Mb/s lanes: 1 bus-ID: 1-2:2 chip-ID: 13d3:3571
  Report: btmgmt ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 5.3
    lmp-v: 12
Drives:
  Local Storage: total: 2.5 TiB used: 973.3 GiB (38.0%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLW256HEHP-000H1
    size: 238.47 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 27.9 C
  ID-2: /dev/nvme1n1 vendor: Western Digital model: WD Blue SN570 500GB
    size: 465.76 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 24.9 C
  ID-3: /dev/sda vendor: Intel model: SSDSC2BW240H6 size: 223.57 GiB
    speed: 6.0 Gb/s serial: <filter>
  ID-4: /dev/sdb vendor: Samsung model: HN-M750MBB size: 698.64 GiB
    speed: 3.0 Gb/s serial: <filter>
  ID-5: /dev/sdc vendor: Toshiba model: MQ04ABF100 size: 903.57 GiB
    speed: 3.0 Gb/s serial: <filter>
  ID-6: /dev/sdd vendor: Verbatim model: STORE N GO size: 29.3 GiB type: USB
    rev: 2.0 spd: 480 Mb/s lanes: 1 serial: <filter>
Partition:
  ID-1: / size: 158.76 GiB used: 115.92 GiB (73.0%) fs: btrfs
    dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 394.8 MiB (40.6%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 45.8 MiB (7.6%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 158.76 GiB used: 115.92 GiB (73.0%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 1024 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 60.5 C mobo: N/A
  Fan Speeds (rpm): N/A
  GPU: device: amdgpu temp: 36.0 C device: amdgpu temp: 31.0 C mem: 28.0 C
    fan: 0
Info:
  Memory: total: 32 GiB note: est. available: 30.49 GiB
    used: 11.08 GiB (36.3%)
  Processes: 483 Power: uptime: 1h 25m wakeups: 1 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: 47 pm: flatpak pkgs: 34 pm: snap pkgs: 13 Compilers: clang: 17
    gcc: 14.1.1 Shell: Bash v: 5.2.26 running-in: konsole inxi: 3.3.34

Memory seems kinda low now 11GB lol but I’ve only got the browser open

can you share a screenshot of the system monitor tor see if it’s vscode that’s using that amount of ram?

Seems to be better now! I dunno lol too many tabs maybe…

I fixed the formatting of the inxi output for you,

You have lots of memory. If you see problems again we will need to check the journal logs to find out what happened.

FYI it is normal for a linux system to use all the memory of the system to optimise performance. For example caching file system data in memory.
Once an app needs memory linux will cache less to allow the app to run.

2 Likes

Thanks legend

Added memory