<div dir="ltr"><div>There is an advisement in the documentation about disabling redhat transparent hugepages. I think this patch would be a nice addition to the init script.</div><div><br></div><div>Arnoud</div><div><br></div>
<div>---</div><div> redhat/varnish.initrc | 7 +++++++</div><div> 1 file changed, 7 insertions(+)</div><div><br></div><div>diff --git a/redhat/varnish.initrc b/redhat/varnish.initrc</div><div>index 0db3ab6..0e7a2e9 100755</div>
<div>--- a/redhat/varnish.initrc</div><div>+++ b/redhat/varnish.initrc</div><div>@@ -50,6 +50,13 @@ start() {</div><div> <span class="" style="white-space:pre">   </span>fi</div><div> <span class="" style="white-space:pre">       </span>echo -n "Starting Varnish Cache: "</div>
<div><br></div><div>+      if /bin/uname -r | /bin/grep -q el6</div><div>+      then</div><div>+            # It is recommended to disable transparent hugepages on RHEL6</div><div>+            # <a href="https://www.varnish-cache.org/docs/trunk/installation/platformnotes.html">https://www.varnish-cache.org/docs/trunk/installation/platformnotes.html</a></div>
<div>+            echo "never" > /sys/kernel/mm/redhat_transparent_hugepage/enabled</div><div>+      fi</div><div>+</div><div> <span class="" style="white-space:pre">       </span># Open files (usually 1024, which is way too small for varnish)</div>
<div> <span class="" style="white-space:pre">  </span>ulimit -n ${NFILES:-131072}</div><div><br></div><div>--</div><div>1.8.5.2 (Apple Git-48)</div></div>