Set cache pressure and swapiness for current session without rebooting
This commit is contained in:
@@ -85,5 +85,11 @@
|
|||||||
- name: Fix swappiness
|
- name: Fix swappiness
|
||||||
shell: echo "sysctl vm.swappiness=10" >> /etc/sysctl.conf
|
shell: echo "sysctl vm.swappiness=10" >> /etc/sysctl.conf
|
||||||
|
|
||||||
|
- name: Set current swappiness
|
||||||
|
shell: sysctl vm.swappiness=10
|
||||||
|
|
||||||
- name: Fix cache pressure
|
- name: Fix cache pressure
|
||||||
shell: echo "sysctl vm.vfs_cache_pressure=50" >> /etc/sysctl.conf
|
shell: echo "sysctl vm.vfs_cache_pressure=50" >> /etc/sysctl.conf
|
||||||
|
|
||||||
|
- name: Set current cache pressure
|
||||||
|
shell: sysctl vm.vfs_cache_pressure=50
|
||||||
|
|||||||
Reference in New Issue
Block a user