Per the kernel documentation:This control is used to define how aggressive the kernel will swapmemory pages.  Higher values will increase aggressiveness, lower valuesdecrease the amount of swap.However this is kind of vague. I'm trying to figure out exactly what the parameter ultimately controls. I know it adjusts how aggressively the kernel tries to swap out pages, but what decision making process in the kernel code does it affect?Does it adjust how long ago a page must have been accessed before the kernel swaps it out? If so what does the default value of 60 represent? And how much is changed by a increment/decrement of 1 (a formula would be nice)?Or does it swap out pages based on their access frequency?Or something else?
What does the vm.swappiness parameter really control?
linux;kernel;memory;swap