Last active
March 15, 2018 12:37
-
-
Save paulodeleo/6b33cbf7e96fee784d2270ee3eeb976c to your computer and use it in GitHub Desktop.
Raspberry pi test settings
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 characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment