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

This commit is contained in:
Li Yi 2020-01-27 16:19:15 -08:00 committed by kannappanr
parent 0cbebf0f57
commit 0414f01b6e

View File

@ -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.