I have 16GB of RAM. If I were to play a game like minecraft with few mods (RLCraft), then it completely fills up my memory. No other app can run beside it and even then sometimes system runs out of memory and shut down plasma-shell to have enough memory for the game. (I don’t use swap)

Now if I restart and use X11, I can play that exact same game and have firefox, mozilla thunderbird & signal running and still have 5 GB free memory.

The weird thing is that memory consumption per app doesn’t really differ much between X11 and wayland session but in wayland amount of memory used by all apps don’t add up to amount used memory. like there is couple of GIgabytes unaccounted for.

I asked about that before and people suggested disk cache might be the culprit but why I don’t have this problem with wayland?

I use KDE plasma / Gentoo if this is at all relevant.