doc: match code on sysctl -w vm.swappiness=1 (#8894)

master
Li Yi 5 years ago committed by kannappanr
parent 0cbebf0f57
commit 0414f01b6e
  1. 2
      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.

Loading…
Cancel
Save