@drewdevault I don’t use swap! Really, with modern systems, what’s the point? If I run out of 16 GB memory running 4 applications, I have other problems.
Browsers are pigs, though. Never thought a styled text display programme would be the biggest drain on performance. Then again, the browser is the computer.
@drewdevault @ttmevans
True, but @ttmevans' point is still valid, if the RAM you have is enough to support what you do, swap is superfluous
@ljs That's interesting. I always assumed it was only used as "extra memory".
@ljs @drewdevault @levitte @ttmevans You're very kind, and thanks for the poke :-) I have been meaning to update it with more graphs/data, better sidenotes, and in general bring it up to date with more recent developments. Hopefully I will have time to do that soon.
@ljs @drewdevault @levitte @ttmevans Aside from technical concerns, the swappiness business is hairy at least in part because it races with sysctl setup. For example, on cgroup v1, the value would almost always not be updated from the default of 60 because cgroups were setup before sysctls were read and updated from sysctl.conf. After my talk at Kernel Recipes last year I [...]
@ljs @drewdevault @levitte @ttmevans [...] went on an unscheduled rant about sysctls and that they should be replaced with more granular interfaces during Q&A (https://www.youtube.com/watch?v=crZwA7JbxGw&t=2344s) which, judging by the reception in the room, was generally agreed with, so hopefully I'll also have some time to think about how we might best go about that in the coming couple of years. My vision is [...]
@ljs @drewdevault @levitte @ttmevans [...] that we have these tunables in something akin to namespaces, but both from a technical perspective (most tunables are just direct writes/reads to some object in the kernel, look at int arrays for example) and from an API perspective (which sysctls are reasonable to tune in a more granular fashion), this is probably a multi-year endeavour.
For the longest time Kubernetes kubelet did not support swap on worker nodes. Many still held it as true even though swap management feature has gone beta since version 1.28 (Aug 2023)
https://kubernetes.io/blog/2023/08/24/swap-linux-beta/