Comment on Why is my home server using so much RAM for cache + buffer?

WhyJiffie@sh.itjust.works ⁨5⁩ ⁨days⁩ ago

cache is good, but you shouldn’t have that much swap usage with that overall memory utilization. 8t seems the kernel is making a decision to move a significant amount of memory to swap to have just a little bit more cache. that could make sense in some situations, especially with lots of RAM and a slow disk that is frequently accessed… but probably not on your system. I see you have already reduced swappiness to 10, so maybe all that was snapped out is really rarely used memory, but I wouldn’t want even that on an SSD so you could try setting swappiness to 0. that way it should only use the swap when there is no more cache to free, I think, but the behaviour of this sysctl was not always clear like that.

docs.kernel.org/admin-guide/sysctl/vm.html?highli…

original
Sort:hotnewtop