Last active
March 15, 2018 12:37
-
-
Save paulodeleo/6b33cbf7e96fee784d2270ee3eeb976c to your computer and use it in GitHub Desktop.
Revisions
-
paulodeleo renamed this gist
Mar 15, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
paulodeleo created this gist
Dec 29, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ # based on this article: https://www.linux-toys.com/?p=1153 # original pi settings vm.swappiness = 60 vm.vfs_cache_pressure = 100 vm.dirty_background_ratio = 10 vm.dirty_ratio = 20 # test settings sudo sysctl -w vm.swappiness=15 sudo sysctl -w vm.vfs_cache_pressure=50 sudo sysctl -w vm.dirty_background_ratio=15 sudo sysctl -w vm.dirty_ratio=20 # back to original sudo sysctl -w vm.swappiness=60 sudo sysctl -w vm.vfs_cache_pressure=100 sudo sysctl -w vm.dirty_background_ratio=10 sudo sysctl -w vm.dirty_ratio=20