3 ms·
I set vm.swappiness to 0 on my Fedora laptop. Meaning the kernel will only swap to save the system. I've been doing this for years and had no issues. Edit: A
by INTPenis 9y ago
I set vm.swappiness to 0 on my Fedora laptop.
Meaning the kernel will only swap to save the system.
I've been doing this for years and had no issues.
Edit: Actually in recent kernels, which I am using, 0 means it's disabled. I was thinking of 1.
- AstralStorm 9y agoIt does not help, just makes the problem appear later in a more dire way. Try overcommit settings instead.
- INTPenis 9y agoI googled that and was pleasantly surprised to learn something new.[1] But if I'm reading that right I would probably want to do both. Because overcommit settings seem to be a memory saving technique. To avoid needing swap by decreasing the allowed overcommit memory. Anyways, in the many years that I've been changing vm.swappiness I've never had any issues and I've always had a minimum of 8G RAM so I don't think this will be a big issue. 1. http://engineering.pivotal.io/post/virtual_memory_settings_in_linux_-_the_problem_with_overcommit/ http://engineering.pivotal.io/post/virtual_memory_settings_i...