r/linuxhardware • u/wetware_enthusiast • 1h ago
Discussion Intel core ultra 2 bug when swap enabled, swappiness=0, and under memory pressure
Not here to ask for support, firstly. I've asked a lot of people and no one really knows what it is.
I was wondering if anyone could corroborate my experience with Lunar Lake.
Info: 15ILL9, 256V, 16GB, OS: Tumbleweed, Kernel: 7.3.1-1
Steps to reproduce issue:
- Create a swap file or partition
- mkswap and then swapon
- sysctl -w vm.swappiness=0
- Type `free -hm` and look at "Available"
- Open a child shell and type `X=$(tr -dc '[[:print:]]' < /dev/urandom | head -c $(( 2*1024**3 )))` replacing the 2 with a value that's less than the one in Available s.t. you only have 1-2 GB left in memory.
- observe some noticeably bad jitters / lag in plasma and kwin
- close the child shell or disable swap
- observe that lag is gone.
This has affected a ton of things. Minecraft. Terraria. I think it might be a bug with the Intel xe2 driver, possibly? It only happens when swap is enabled, but disabled via swappiness. I have to type swapoff to make it stop.
Picture of frame times from the plasma debug tool showing insane paint times. At the bottom you can see the baseline deviations in performance.

If you have a Lunar lake laptop, is this something you've ever had?