CaffeineAddict
Well-Known Member
I find it very interesting because kernel formula is provided giving more insights on how swappiness value is taken into account.
2.6 swapping behavior [LWN.net]
lwn.net
One change I know of is that max. swappiness value was increased from 100 to 200.That's almost exactly 20 years old.
I suspect the fundamentals are the same but that the code itself will have changed in the interim.
source:swap_tendency = mapped_ratio/2 + distress + vm_swappiness;
Changes to this parameter should be made in small increments and should be tested under the same conditions that the system normally operates.
htop
, example:What about your file cache and memory bar (orange portion)?I run LM21.3 on 32GB ram, and have zero swap
htop
because it will be read from disk which is almost the same as using swap.Swappiness of 10 should make cache (orange bar) fill up entire memory and release it as needed, but I haven't done extensive tests yet for higher values than 10.