Skip to content

Instantly share code, notes, and snippets.

@kofemann
Created December 13, 2017 12:31
Show Gist options
  • Save kofemann/2eeaa0c0dc8c7bc714027eb66353f7ba to your computer and use it in GitHub Desktop.
Save kofemann/2eeaa0c0dc8c7bc714027eb66353f7ba to your computer and use it in GitHub Desktop.
tuned profile for VM based nfs client
#
# tuned configuration
# /etc/tuned/virtual-guest-nfs-client/tuned.conf
#
[main]
summary=Optimize for running inside a virtual guest
include=throughput-performance
[sysctl]
# If a workload mostly uses anonymous memory and it hits this limit, the entire
# working set is buffered for I/O, and any more write buffering would require
# swapping, so it's time to throttle writes until I/O can catch up.
#
vm.dirty_background_ratio = 0
vm.dirty_ratio = 0
vm.dirty_background_bytes = 67108864
vm.dirty_bytes = 536870912
# Filesystem I/O is usually much more efficient than swapping, so try to keep
# swapping low.
vm.swappiness = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment