EndeavourOS seems particularly triggerhappy about killing my games

I tried running the newly released Europa Universalis V on my laptop, but it keeps killing it with “Memory shortage avoided!“. This issue has also been occurring with Crusader Kings III. This is not an issue when I run Windows 11 on my machine. This also does not happen with my friend who uses non-EndeavourOS custom Arch setup. I have 16 GB of ram which should be enough.

inxi -bm -C -G -L -j -z -P

System:
  Kernel: 6.17.7-arch1-1 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.5.1 Distro: EndeavourOS
Machine:
  Type: Convertible System: HP product: HP Envy x360 2-in-1 Laptop 15-fh0xxx
    v: Type1ProductConfigId serial: <superuser required>
  Mobo: HP model: 8BE9 v: 75.44 serial: <superuser required> UEFI: Insyde
    v: F.10 date: 07/23/2024
Battery:
  ID-1: BAT1 charge: 7.3 Wh (23.4%) condition: 31.1/55.7 Wh (55.9%)
Memory:
  System RAM: total: 16 GiB available: 14.93 GiB used: 4.96 GiB (33.2%)
  Array-1: capacity: 64 GiB slots: 2 modules: 2 EC: None
  Device-1: Bottom - on board type: LPDDR4 size: 8 GiB speed: 4266 MT/s
  Device-2: Bottom - on board type: LPDDR4 size: 8 GiB speed: 4266 MT/s
CPU:
  Info: 8-core model: AMD Ryzen 7 7730U with Radeon Graphics bits: 64
    type: MT MCP cache: L2: 4 MiB
  Speed (MHz): avg: 1096 min/max: 411/4548 cores: 1: 1096 2: 1096 3: 1096
    4: 1096 5: 1096 6: 1096 7: 1096 8: 1096 9: 1096 10: 1096 11: 1096 12: 1096
    13: 1096 14: 1096 15: 1096 16: 1096
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Barcelo driver: amdgpu v: kernel
  Device-2: Luxvisions Innotech HP Wide Vision 5MP Camera
    driver: hid-sensor-hub,usbhid,uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.20 with: Xwayland v: 24.1.9
    compositor: kwin_wayland driver: X: loaded: amdgpu unloaded: modesetting
    dri: radeonsi gpu: amdgpu resolution: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.2.6-arch1.1
    renderer: AMD Radeon Graphics (radeonsi renoir ACO DRM 3.64 6.17.7-arch1-1)
  API: Vulkan v: 1.4.328 drivers: radv surfaces: N/A
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor wl: wayland-info
    x11: xdpyinfo, xprop, xrandr
Network:
  Device-1: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
    driver: mt7921e
Logical:
  Message: No logical block device data found.
Drives:
  Local Storage: total: 953.87 GiB used: 242.87 GiB (25.5%)
Partition:
  ID-1: / size: 935.85 GiB used: 155.77 GiB (16.6%) fs: ext4
    dev: /dev/nvme0n1p2
Swap:
  Alert: No swap data was found.
Info:
  Processes: 374 Uptime: 11m Shell: Bash inxi: 3.3.39

Additionally, running this on my home computer (which is quite a bit more powerful) works OK, but it freezes the rendering of both Discord and Steam.

I did find the forum post Linux Kernel keeps killing my games :frowning: (and other applications) - #26 by kip123, however it did not really solve my issues.

You need to add some swap. The number of processes being killed will always be higher with no swap.

It doesn’t matter if it is zram, a partition or a swap file. Just make sure you always have some swap available. This is true no matter how much ram you have.

1 Like

Never had any issues with gaming on linux. I am using linux since 2021.

I’d be curious to know what your Windows 11 paging file size is when running the affected games. Besides doing what @dalto suggested, a bump to 32 GB would also help a ton. I have that with zram (no physical swap) and I’ve only had one game trigger an oom condition (Last Epoch, due to a memory leak that also affected it on Windows).

I have added a ton of swap and the issue is pretty much fixed now. Although it still freezes discord, steam, and Zen Browser. Basically all the browsers, including electron based apps. It freezes the rendering, but I can still press buttons and type in the apps, so it seems graphics related. I thought the two issues were related, but fixing the ram thing hasn’t solved the freezing issue. Not sure how to fix it. The apps that do this are Crusader Kings III, Europa Universalis V, potentially Victoria 3, and Cities Skylines II.

I assume I won’t get an answer for my second question here. Ill just mark this as solved and maybe open another thread.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.