{"action":"opened","issue":{"url":"https://api.github.com/repos/antirez/redis/issues/3176","repository_url":"https://api.github.com/repos/antirez/redis","labels_url":"https://api.github.com/repos/antirez/redis/issues/3176/labels{/name}","comments_url":"https://api.github.com/repos/antirez/redis/issues/3176/comments","events_url":"https://api.github.com/repos/antirez/redis/issues/3176/events","html_url":"https://github.com/antirez/redis/issues/3176","id":149193081,"number":3176,"title":"\"WARNING you have Transparent Huge Pages (THP) support enabled in your kernel\"","user":{"login":"shongololo","id":4347878,"avatar_url":"https://avatars.githubusercontent.com/u/4347878?v=3","gravatar_id":"","url":"https://api.github.com/users/shongololo","html_url":"https://github.com/shongololo","followers_url":"https://api.github.com/users/shongololo/followers","following_url":"https://api.github.com/users/shongololo/following{/other_user}","gists_url":"https://api.github.com/users/shongololo/gists{/gist_id}","starred_url":"https://api.github.com/users/shongololo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shongololo/subscriptions","organizations_url":"https://api.github.com/users/shongololo/orgs","repos_url":"https://api.github.com/users/shongololo/repos","events_url":"https://api.github.com/users/shongololo/events{/privacy}","received_events_url":"https://api.github.com/users/shongololo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-18T15:55:49Z","updated_at":"2016-04-18T15:55:49Z","closed_at":null,"body":"Redis server's log issues this warning on startup:\r\n```\r\nWARNING you have Transparent Huge Pages (THP) support enabled in your kernel\r\n```\r\nalong with instructions for how to change this. However, when adding the necessary configuration edits to the `rc.local` file it seems that redis manages to launch before `rc.local` is executed. (Since it gives the same warning, but the settings have indeed been changed and if restarting redis, then the warning goes away...)\r\n\r\nSo what I've done instead is add this:\r\n```\r\nif test -f /sys/kernel/mm/transparent_hugepage/enabled; then\r\n  echo never > /sys/kernel/mm/transparent_hugepage/enabled\r\nfi\r\n\r\nif test -f /sys/kernel/mm/transparent_hugepage/defrag; then\r\n  echo never > /sys/kernel/mm/transparent_hugepage/defrag\r\nfi\r\n```\r\nto the beginning of the /etc/init.d/redis_6379 file, which seems to do the trick.\r\n\r\nAny problems with this approach?\r\n\r\nThanks."}}