You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
302 B

  1. [Unit]
  2. Description=Disable transparent hugepage for redis
  3. Before=redis.service
  4. [Service]
  5. Type=oneshot
  6. ExecStart=/bin/bash -c 'echo never > /sys/kernel/mm/transparent_hugepage/enabled'
  7. ExecStart=/bin/bash -c 'echo never > /sys/kernel/mm/transparent_hugepage/defrag'
  8. [Install]
  9. RequiredBy=redis.service