[SOLVED] Maybe issue with swap and the 6.6 kernel?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Slackware64-current with multilib, nvidia 545.29.02, 16GB RAM, Geforce 1050ti, Ryzen 5 1600. (6.6.8 huge kernel with preempt=full) Everything is patched as of last night.
I've noticed that when my computer is under a heavy load (like while playing Guild Wars 2 via proton and DXVK) that while I'll have at least 7GB buff/cache and 7GB available memory (as reported to top), my swap usage will go up. (Performance doesn't seem to be affected any, and I can quit the application, and the number will slowly go down. I can clear the swap with swapoff/swapon.) With the holidays, I haven't had as much time to game, but I was having similar issues with Diablo IV. (Also with proton, but with VKD3D, and also does have an nvidia-based memory leak that's affecting windows.)
The gamingonlinux people didn't think this was too much of an issue, because swap does get used, and I'm probably not noticing it, because most people don't obsessively watch top while they do other things. My partner says this is just a bug, and it's probably not a problem, either.
There's nothing in dmesg, messages, or syslog to indicate any OOM errors. I probably wouldn't notice it, if I didn't randomly check top.
No issues with supercollider, playing videos, or just non-gaming usage. I can play Vampire Survivors and watch youtube videos, and no problems with RAM.
So did something change with memory usage and the 6.6 kernel that I'm noticing? Is this a kernel bug? vulkan bug? Buggy software (gw2 and diablo IV)? Not a bug at all?
Tentatively marking this one solved, because I don't think it's a Slackware problem, and I think it's a Steam problem, since I only see it with dxvk games.
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,023
Rep:
You can always play with VM parameters. These can improve overall performance:
vm.vfs_cache_pressure = 50
vm.swappiness = 10 vm.dirty_background_ratio = 10
vm.dirty_background_bytes = 0
vm.dirty_ratio = 20
vm.dirty_bytes = 0
vm.dirty_writeback_centisecs = 3000
vm.dirty_expire_centisecs = 500
These are examples to tweak. Once tuned, probably will improve system responsiveness (not for server). The ratio variant will become 0 if we set the bytes variant, and vice versa.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.