[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fwd: Debian 11: Tuning kernel parameters swappiness and watermark_boost_factor to stop SWAP Storm



On 28.01.22 22:55, Tixy wrote:
On Fri, 2022-01-28 at 17:31 +0100, Marco Möller wrote:
On 28.01.22 11:15, Steven J. West wrote:
Comparing the Ubuntu and Debian kernel parameters using sudo sysctl
-a
showed two key differences in virtual memory (vm) management
parameters.

   * Ubuntu:
       o vm.swappiness=60
       o vm.watermark_boost_factor=0
   * Debian:
       o vm.swappiness=10
       o vm.watermark_boost_factor=150

Might this "150" be a typographical error and you wanted to write
150000?
Your reference to the Red Hat documentation states 150000 to be the
default in Red Hat, and in my Debian, where I have not touched this
value, it is also set to 150000.

Might 150000 be a typographical error too? ;-) On my machine...

# cat /proc/sys/vm/watermark_boost_factor
15000

Which matches the default in the kernel source code [1] and 'git blame'
shows that line hasn't been changed since the original commit in 2018
[2]

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/mm/page_alloc.c?id=169387e2aa291a4e3cb856053730fe99d6cec06f#n354
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1c30844d2dfe272d58c8fc000960b835d13aa2ac


You are right. 15000 is the value I wanted to write. Shame on me. Sorry.
Marco


Reply to: