Skip to content

Instantly share code, notes, and snippets.

@paulodeleo
Last active March 15, 2018 12:37
Show Gist options
  • Save paulodeleo/6b33cbf7e96fee784d2270ee3eeb976c to your computer and use it in GitHub Desktop.
Save paulodeleo/6b33cbf7e96fee784d2270ee3eeb976c to your computer and use it in GitHub Desktop.

Revisions

  1. paulodeleo renamed this gist Mar 15, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. paulodeleo created this gist Dec 29, 2016.
    19 changes: 19 additions & 0 deletions gistfile1.txt
    Original 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