Set cache pressure and swapiness for current session without rebooting

This commit is contained in:
2016-02-03 07:57:04 -05:00
parent 7ef9c68b34
commit 94a1a9ac9d

View File

@@ -85,5 +85,11 @@
- name: Fix swappiness
shell: echo "sysctl vm.swappiness=10" >> /etc/sysctl.conf
- name: Set current swappiness
shell: sysctl vm.swappiness=10
- name: Fix cache pressure
shell: echo "sysctl vm.vfs_cache_pressure=50" >> /etc/sysctl.conf
- name: Set current cache pressure
shell: sysctl vm.vfs_cache_pressure=50