aboutsummaryrefslogtreecommitdiff
path: root/files/sysctl.d/81-rpi-vm.conf
diff options
context:
space:
mode:
authorJan Wagner <mail@jwagner.eu>2016-03-06 14:51:22 +0100
committerJan Wagner <mail@jwagner.eu>2016-03-06 14:51:22 +0100
commit1f5000be9fe21add745d1c9a03c391ddf1321e51 (patch)
treef6f777f32f960c5dd959ab34b029e2514781cc68 /files/sysctl.d/81-rpi-vm.conf
parenta03e217233d19052cc24f51e8ed4efcd78c6aafd (diff)
parent18794fc3f26e9bf9df23d5bc55a502065069ed67 (diff)
downloadrpi2-gen-image-1f5000be9fe21add745d1c9a03c391ddf1321e51.tar.gz
rpi2-gen-image-1f5000be9fe21add745d1c9a03c391ddf1321e51.tar.bz2
rpi2-gen-image-1f5000be9fe21add745d1c9a03c391ddf1321e51.zip
Merge branch 'fpytloun-master'
Diffstat (limited to 'files/sysctl.d/81-rpi-vm.conf')
-rw-r--r--files/sysctl.d/81-rpi-vm.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/files/sysctl.d/81-rpi-vm.conf b/files/sysctl.d/81-rpi-vm.conf
new file mode 100644
index 0000000..b818fc6
--- /dev/null
+++ b/files/sysctl.d/81-rpi-vm.conf
@@ -0,0 +1,6 @@
+# Avoid swapping and increase cache sizes
+vm.swappiness=1
+vm.dirty_background_ratio=20
+vm.dirty_ratio=40
+vm.dirty_writeback_centisecs=500
+vm.dirty_expire_centisecs=6000