Comment on Why is my home server using so much RAM for cache + buffer?
marcos@lemmy.world 7 hours ago
IMO, the easiest way to make your system not swap into some disk you don’t want it to is to not enable any swap partition on that disk.
If it’s using that much RAM for cache, it will survive not having a swap with a minimum impact on performance.
You can just set swapiness kernel level parameter (vm.swappiness).