Thrashing - swap?

Hi,
i switched to Bazzite on my ROG Ally and experience what i assume is system thrashing in Jedi Survivor. So a few minutes into the game, i see RAM and VRAM usages exceeding what the system physically has, suddenly framerste goes to zero. occasionally one frame comes through but system is and stays unresponsive. Only force reboot helps.

I assume that is thrashing due to ram and vram spill over into swap and constantly swapping in and out pages. Does not happen under Windows.

Is there a possibility to turn swapp off? Should i do that even? Is there a better way to prevent this, e.g. telling Apps “you can’t use more than X amount of memory”?

There’s always swapoff -a to disable all swap space on the currently running system. But the swap will be back after the next reboot.

Hi, i switched to Bazzite on my Legion Go and see the same behavior in Anno 1800.
Does turning off swap help?
Is it possible to enable swap on Drive (instead on RAM) and resize it to 16GiB?