From 0414f01b6e7b4b30aa06b5030d7562c4ab458fc0 Mon Sep 17 00:00:00 2001 From: Li Yi <49734070+liyiberkeley@users.noreply.github.com> Date: Mon, 27 Jan 2020 16:19:15 -0800 Subject: [PATCH] doc: match code on sysctl -w vm.swappiness=1 (#8894) --- docs/deployment/kernel-tuning/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/deployment/kernel-tuning/README.md b/docs/deployment/kernel-tuning/README.md index 8a66adf53..0e1287af5 100644 --- a/docs/deployment/kernel-tuning/README.md +++ b/docs/deployment/kernel-tuning/README.md @@ -35,7 +35,7 @@ Recommended virtual memory settings are as follows. - *`swappiness`* : This parameter controls the relative weight given to swapping out runtime memory, as opposed to dropping pages from the system page cache. It takes values from 0 to 100, both inclusive. We recommend setting it to 10. ```sh -sysctl -w vm.swappiness=10 +sysctl -w vm.swappiness=1 ``` - *`dirty_background_ratio`*: This is the percentage of system memory that can be filled with `dirty` pages, i.e. memory pages that still need to be written to disk. We recommend writing the data to the disk as soon as possible. To do this, set the `dirty_background_ratio` to 1.