Comment on Why is my server using all my Swap but I have RAM to spare?
WhyJiffie@sh.itjust.works 4 weeks ago“hey, this memory page is never used and this file block is used a lot, so I’m going to put the memory page on disk and the file block in memory and everything will be faster.”
except when not, like when I just copied a multi GB file, it was cached in RAM to be not read again for long, but at least half of my running programs are swapped out. Additionally if swap is o SSD, it has put totally unnecessary wear into it by doing this
mlfh@lemmy.sdf.org 4 weeks ago
That’s why you can adjust swappiness, or designate a different high-endurance storage device for it.
WhyJiffie@sh.itjust.works 4 weeks ago
my swappiness is 0. yet my swap usage isn’t. plenty of “available” memory (as in, multiple GB)
aBundleOfFerrets@sh.itjust.works 3 weeks ago
“sensibly” “intuitively” and “performant” are all different objectives and I assure you kernel devs working on such a central subsystem are primarily optimizing for one.
WhyJiffie@sh.itjust.works 3 weeks ago
the meaning of zero really shouldn’t be an objective thing. it means: don’t do that