Skip to content

Instantly share code, notes, and snippets.

@mthh
Created October 23, 2018 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mthh/edce8294d3cb5521a1788b2b87d33c4a to your computer and use it in GitHub Desktop.
Save mthh/edce8294d3cb5521a1788b2b87d33c4a to your computer and use it in GitHub Desktop.
[Unit]
Description=Disable Transparent Huge Pages
Documentation=https://redis.io/topics/latency
[Service]
Type=oneshot
ExecStart=/bin/sh -c "/bin/echo 'never' > /sys/kernel/mm/transparent_hugepage/enabled"
ExecStart=/bin/sh -c "/bin/echo 'never' > /sys/kernel/mm/transparent_hugepage/defrag"
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment