Tune swap on zram
This commit is contained in:
parent
a7180e39e7
commit
6ee03f0d27
5 changed files with 12 additions and 0 deletions
1
etc/sysctl.d/20-high-swappines.conf
Normal file
1
etc/sysctl.d/20-high-swappines.conf
Normal file
|
@ -0,0 +1 @@
|
|||
vm.swappiness=180
|
1
etc/sysctl.d/20-no-page-cluster.conf
Normal file
1
etc/sysctl.d/20-no-page-cluster.conf
Normal file
|
@ -0,0 +1 @@
|
|||
vm.page-cluster=0
|
4
etc/systemd/zram-generator.conf
Normal file
4
etc/systemd/zram-generator.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
# /etc/systemd/zram-generator.conf
|
||||
[zram0]
|
||||
zram-size = ram * 2
|
||||
compression-algorithm=zstd
|
Loading…
Add table
Add a link
Reference in a new issue