Hacker News new | ask | show | jobs
by vlovich123 518 days ago
Are you using Wayland? One thing I’ve noticed is that windows are allocated greedily in Wayland and Chrome in particular is more than happy to eat all your VRAM. There’s nothing like there is in Windows/Mac to swap out / drop and recreate existing allocations when you’re out of VRAM.
2 comments

Yes I'm using Wayland. The problem has nothing to do with Chrome usage or whatever. The desktop is super smooth no matter how many Chrome tabs I have or other apps. Also Gnome likes to use the iGPU by default so nothing to do with the Nvidia GPU really. For games I've tested both with iGPU or forcing them to use the Nvidia GPU.

The problem is games which have a lot of high res textures, it's obvious the dedicated GPU runs out of RAM. It's pretty speedy on games running at half-resolution and it can render a lot of effects like bloom, fancy lighting, reflections, etc... But I'd say my current go to game is Civ 6, I like to play at full resolution with high textures, which the dedicated GPU can't handle but the iGPU can without even heating up all that much.

You’re talking about swap? You can allocate a swap partition and register it in the fstab and the kernel as well and happily swap out to it. Unlike windows and mac, you can set the swappiness too to go from conservative to aggressive.
Not RAM to disk swap. We’re talking about VRAM/RAM here.