<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled? in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124526#M1531</link>
    <description>&lt;P&gt;So that you don't have to scroll:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rest /services/server/sysinfo | table transparent_hugepages.enabled transparent_hugepages.defrag transparent_hugepages.effective_state&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2017 17:28:48 GMT</pubDate>
    <dc:creator>wrangler2x</dc:creator>
    <dc:date>2017-08-31T17:28:48Z</dc:date>
    <item>
      <title>How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124490#M1495</link>
      <description>&lt;P&gt;I have heard that THP can be problematic for certain applications.  I would like to know how this can impact Splunk, and what I need to do about it?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2014 17:01:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124490#M1495</guid>
      <dc:creator>jwelch_splunk</dc:creator>
      <dc:date>2014-11-18T17:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124491#M1496</link>
      <description>&lt;P&gt;Some Linux distros have been shipping with THP enabled by default.&lt;BR /&gt;&lt;BR /&gt;
See the effects of this on the Splunk documentation &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/ReleaseNotes/SplunkandTHP"&gt;here&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;The Redhat info &lt;A href="https://access.redhat.com/solutions/46111"&gt;here&lt;/A&gt; explains 1 method of disabling THP (using grub.conf) as well as providing ways to validate they are disabled.&lt;/P&gt;

&lt;P&gt;I like to follow this procedure: &lt;BR /&gt;
(Each Sys Admin can come up with their own way to pull this off)&lt;/P&gt;

&lt;P&gt;I run these two commands on all my systems that are running CentOS/Redhat 6.x or later that are splunk servers.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;echo never &amp;gt; /sys/kernel/mm/redhat_transparent_hugepage/enabled
echo never &amp;gt; /sys/kernel/mm/redhat_transparent_hugepage/defrag
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;No need to restart splunk&lt;BR /&gt;
Then to make these changes persistent across reboots I add this to the bottom of my /etc/rc.local&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; #disable THP at boot time
if test -f /sys/kernel/mm/redhat_transparent_hugepage/enabled; then
      echo never &amp;gt; /sys/kernel/mm/redhat_transparent_hugepage/enabled
fi
if test -f /sys/kernel/mm/redhat_transparent_hugepage/defrag; then
    echo never &amp;gt; /sys/kernel/mm/redhat_transparent_hugepage/defrag
fi
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I then validate I am not running things like ktune or tuned  (this could actually override the settings you set above)   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  chkconfig --list |grep tune
     ktune           0:off   1:off   2:off   3:off   4:off   5:off   6:off
     tuned           0:off   1:off   2:off   3:off   4:off   5:off   6:off
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To validate THP is disabled, I run the below three commands, or any variant you choose from &lt;A href="https://access.redhat.com/solutions/46111"&gt;here&lt;/A&gt; .&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;cat /sys/kernel/mm/redhat_transparent_hugepage/defrag
       always madvise [never]
cat /sys/kernel/mm/redhat_transparent_hugepage/enabled
       always madvise [never]
egrep 'trans|thp' /proc/vmstat  (on this command I validate none of these results are changing)
        nr_anon_transparent_hugepages 2
        thp_fault_alloc 12793
        thp_fault_fallback 18
        thp_collapse_alloc 70
        thp_collapse_alloc_failed 0
        thp_split 2974
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;One thing to keep in mind, Splunk will log in $SPLUNK_HOME/var/log/splunk/splunkd.log on start up if THP is enabled or disabled&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    grep hugetables /opt/splunk/var/log/splunk/splunkd.log
   11-18-2014 08:19:42.052 -0600 INFO  ulimit - Linux transparent hugetables support, enabled="never" defrag="never"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;A possible concern with this log entry can be two fold.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;Because on my system /etc/rc.d/rc3.d/S90splunk is executed before /etc/rc.d/rc3.d/S99local after a reboot the splunkd.log entry will reflect they are enabled.   However subsequent splunk restarts would reflect the proper information.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;This check may not be aware of tuned/ktune running THP.&lt;/LI&gt;
&lt;/UL&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;In summary:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Splunk does not have to be restarted after making these changes for the performance gain to be realized.&lt;/LI&gt;
&lt;LI&gt;I prefer the rc.local over the grub.conf just because a future kernel upgrade might override my custom stanza.&lt;/LI&gt;
&lt;LI&gt;Disabling THP will help improve Splunk performance and recommended to be disabled.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 18 Nov 2014 17:53:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124491#M1496</guid>
      <dc:creator>jwelch_splunk</dc:creator>
      <dc:date>2014-11-18T17:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124492#M1497</link>
      <description>&lt;P&gt;We ran into severe performance degradation and deduced it was memory page handling. An alternative that worked well on our hardware was setting vm.zone_reclaim_mode = 1&lt;/P&gt;

&lt;P&gt;This was set to 0 causing memory allocation to occur across nodes in a NUMA architecture. Setting this value forced reclamation of memory assigned to the local node first. With the transient nature of the Splunk search workload processes the impact was stunning.&lt;/P&gt;

&lt;P&gt;Server load averages were regularly spiraling out of control many times s over 100 on  12 core / 24 hyperthreaded  indexers and searchheads. The symptoms are the same , servers became completely unresponsive for minutes at a time.  The root cause may be the same -- poor cross node memory management.  We set the parameter and in a matter of a few minutes the load was 2-3 and very hard to drive over 5-6. End user search performance was orders of magnitude faster.&lt;/P&gt;

&lt;P&gt;Red Hat Enterprise Linux Server release 6.5 my investigation shows this setting to be CPU specific and some users reported worse performance in our case it was dramatically improved. &lt;/P&gt;

&lt;P&gt;Another option to consider when facing similar performance issues.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:01:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124492#M1497</guid>
      <dc:creator>mwk1000</dc:creator>
      <dc:date>2020-09-28T19:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124493#M1498</link>
      <description>&lt;P&gt;Where did you set this config? I'm seeing similar issues on one of my indexers.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2015 15:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124493#M1498</guid>
      <dc:creator>dolivasoh</dc:creator>
      <dc:date>2015-04-03T15:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124494#M1499</link>
      <description>&lt;P&gt;The more general paths for these controls across different Linux distributions are&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/sys/kernel/mm/transparent_hugepage/enabled
/sys/kernel/mm/transparent_hugepage/defrag
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The Redhat-specific paths have to do with backporting the feature to older kernels when it was new.&lt;/P&gt;

&lt;P&gt;The more general way to persist this type of kernel system setting is via sysctl, but distributions or local practice may have preferred alternatives.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2015 13:14:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124494#M1499</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2015-06-05T13:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124495#M1500</link>
      <description>&lt;P&gt;For Redhat / CentOS 7.0 and later here is a possible solution to accommodate systemd:&lt;/P&gt;

&lt;P&gt;cat /sys/kernel/mm/transparent_hugepage/enabled  *should see []'s around always&lt;BR /&gt;
cat /sys/kernel/mm/transparent_hugepage/defrag *should see []'s around always&lt;BR /&gt;
chmod u+x /etc/rc.d/rc.local&lt;BR /&gt;
vi /etc/rc.d/rc.local&lt;BR /&gt;
Place at bottom of file: &lt;BR /&gt;
              #disable THP at boot time&lt;BR /&gt;
              if test -f /sys/kernel/mm/transparent_hugepage/enabled; then&lt;BR /&gt;
                  echo never &amp;gt; /sys/kernel/mm/transparent_hugepage/enabled&lt;BR /&gt;
                    fi&lt;BR /&gt;
            if test -f /sys/kernel/mm/transparent_hugepage/defrag; then&lt;BR /&gt;
                  echo never &amp;gt; /sys/kernel/mm/transparent_hugepage/defrag&lt;BR /&gt;
                    fi&lt;BR /&gt;
    6. systemctl start rc-local&lt;BR /&gt;
    7. Repeat steps 1 and 2 and you should now see []'s around never&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:07:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124495#M1500</guid>
      <dc:creator>jwelch_splunk</dc:creator>
      <dc:date>2020-09-29T07:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124496#M1501</link>
      <description>&lt;P&gt;It might not work while using tuned. This works as well without skipping tuned:&lt;/P&gt;

&lt;P&gt;~# if [ $(grep -E "^\s*GRUB_CMDLINE_LINUX\s*=\s*" /etc/default/grub | grep -Eo "transparent_hugepage\s*=\s*never" | wc -l) -eq 0 ]; then sed -i "s/^(^\s*GRUB_CMDLINE_LINUX\s*=\s*\"[^\"]&lt;EM&gt;)\s&lt;/EM&gt;\"\$/\1 transparent_hugepage=never\"/" /etc/default/grub; fi&lt;/P&gt;

&lt;P&gt;~# sed -i "s/^(^\s*transparent_hugepages\s*=\s*).*\$/\1never/" /usr/lib/tuned/throughput-performance/tuned.conf&lt;/P&gt;

&lt;P&gt;~# reboot&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:17:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124496#M1501</guid>
      <dc:creator>apfender_splunk</dc:creator>
      <dc:date>2020-09-29T07:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124497#M1502</link>
      <description>&lt;P&gt;Adding yet another version - just with nifty loops and hopefully addressing variants in paths. Perfect for your &lt;CODE&gt;/etc/rc.local&lt;/CODE&gt; edits...hopefully.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#SPLUNK: disable THP at boot time
THP=`find /sys/kernel/mm/ -name transparent_hugepage -type d | tail -n 1`
for SETTING in "enabled" "defrag";do
    if test -f ${THP}/${SETTING}; then
        echo never &amp;gt; ${THP}/${SETTING}
    fi
done
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 20 Sep 2015 17:57:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124497#M1502</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2015-09-20T17:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124498#M1503</link>
      <description>&lt;P&gt;The official Red Hat link is  &lt;A href="https://access.redhat.com/solutions/46111"&gt;https://access.redhat.com/solutions/46111&lt;/A&gt; (jwelsh you forgot a "1" in your link)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 11:03:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124498#M1503</guid>
      <dc:creator>giorgio_adami_m</dc:creator>
      <dc:date>2016-01-14T11:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124499#M1504</link>
      <description>&lt;P&gt;Syntax like vm.zone_reclaim_mode is a sysctl value.  There will be an equivalent virtual file in proc with slightly different naming.&lt;/P&gt;

&lt;P&gt;The existence of these values can be kernel version dependent, but the referred system is RHEL6.5, so typically it will be availble there and on newer systems.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:30:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124499#M1504</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2020-09-29T08:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124500#M1505</link>
      <description>&lt;P&gt;Hi mwk1000, &lt;/P&gt;

&lt;P&gt;Mind if I ask you what hardware you were running the indexers on when you had to set this?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 08:26:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124500#M1505</guid>
      <dc:creator>seunomosowon</dc:creator>
      <dc:date>2016-04-15T08:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124501#M1506</link>
      <description>&lt;P&gt;This problem is generic to all Linux kernels for the last several years.&lt;BR /&gt;
It becomes really catastrophic as memory becomes closer to exhausted (e.g over 80% in use and rising), because of the thrashing to defragment pages.  However, the work to simply map in transparent huge pages for relatively short lived search processes is always a net loss.&lt;/P&gt;

&lt;P&gt;It's a no-brainer to always turn these off in all Linux installs.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 08:59:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124501#M1506</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2016-04-15T08:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124502#M1507</link>
      <description>&lt;P&gt;Putting it in rc.local is too late. Using the legacy sysV init script which &lt;STRONG&gt;splunk enable boot-start&lt;/STRONG&gt; deploys, it's already started by then. &lt;/P&gt;

&lt;P&gt;What I do is modify /etc/init.d/splunk as follows:&lt;BR /&gt;
Add function:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;RETVAL=0 #existing

# disable hugepages

disable_huge() {
  echo "disabling huge page support"
  if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
     echo never &amp;gt; /sys/kernel/mm/transparent_hugepage/enabled
  fi
  if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
     echo never &amp;gt; /sys/kernel/mm/transparent_hugepage/defrag
  fi
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Use it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;case "$1" in
  start)
    disable_huge
    splunk_start
    ;;
  stop)
    splunk_stop
    ;;
  restart)
    disable_huge
    splunk_restart
    ;;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Tried all the other things here and in places like stackoverflow, seems to be the only thing that actually works.&lt;BR /&gt;
Yes we should all be using systemd methodology everywhere, but you know what? CBF learning yet another OS startup gadget, of which the woods seem to be full.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 06:30:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124502#M1507</guid>
      <dc:creator>cmeo</dc:creator>
      <dc:date>2016-12-13T06:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124503#M1508</link>
      <description>&lt;P&gt;As I mentioned in my original posting, THP can be disabled on the fly "without restarting splunk", and you are correct in normal SysV we would be disabling THP with rc.local after splunk has started, as I mentioned in the article as well.  However it is only enabled for about 1 second before rc.local turns it back off.  &lt;/P&gt;

&lt;P&gt;Also using grub.conf is an option as well.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 13:28:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124503#M1508</guid>
      <dc:creator>jwelch_splunk</dc:creator>
      <dc:date>2016-12-13T13:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124504#M1509</link>
      <description>&lt;P&gt;/sys/kernel/mm/redhat_transparent_hugepage/defrag does NOT need to be set to never if /sys/kernel/mm/redhat_transparent_hugepage/enabled is set to never. The system will not try to defrag something that is already off. This is documented in the RedHat guide to turning off THP.&lt;/P&gt;

&lt;P&gt;Also, doing it via grub will survive kernel upgrades. By default, all options are carried over to the new kernel lines in grub.conf.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:13:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124504#M1509</guid>
      <dc:creator>vliggio</dc:creator>
      <dc:date>2020-09-29T12:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124505#M1510</link>
      <description>&lt;P&gt;The grub.conf solution, as someone else already pointed out, can be overwritten by a kernel update.&lt;BR /&gt;
What might help is a proper systemd-type service to do this as a dependency for splunk before it starts (and a lot of other software doesn't like THP either so this would be widely useful). &lt;BR /&gt;
Alternatively some proper THP controls created upstream in the distros, but I'm not holding my breath. hugeadm in ubuntu is a step in the right direction but that doesn't work properly either as I discovered when I tried to use it. It's not sticky IIRC or perhaps it was some other problem--I don't recall. And it doesn't help you with any other distro anyway.&lt;BR /&gt;
Yet another possiblity would be for splunk to actually address the problem and update the boot script apparatus. The ulimit stuff is out of date too. The only thing I've found that actually worked is here:&lt;BR /&gt;
&lt;A href="http://stackoverflow.com/questions/39506149/ubuntu-16-04-systemd-redis-issues-with-ulimit"&gt;http://stackoverflow.com/questions/39506149/ubuntu-16-04-systemd-redis-issues-with-ulimit&lt;/A&gt;&lt;BR /&gt;
and this is a lot of messing around to achieve what used to be easy but now isn't.&lt;BR /&gt;
This still leaves you with a problem if someone runs $SPLUNK_HOME/bin/splunk start or restart without a wrapper script. All in all quite exasperating and I freely admit I've created an ugly hack.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 00:37:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124505#M1510</guid>
      <dc:creator>cmeo</dc:creator>
      <dc:date>2016-12-30T00:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124506#M1511</link>
      <description>&lt;P&gt;I've never had a grub.conf overwritten by a kernel update in 20 years using any RedHat derived distro. Maybe other ones don't behave well (I refuse to use ubuntu). I believe any modifications are probably happening through ktune or tuned, neither of which I use.&lt;/P&gt;

&lt;P&gt;It would definitely be better if Splunk took care of the configs as part of the install, at least for people who aren't so adept at creating their own configs. Or just don't start up until the underlying configs are correct. Why compromise the performance of Splunk for things that are known like THP and open file settings?&lt;/P&gt;

&lt;P&gt;There's no need to do the defrag setting when THP is off no matter how you turn off THP, since there's nothing to defrag.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 14:59:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124506#M1511</guid>
      <dc:creator>vliggio</dc:creator>
      <dc:date>2016-12-30T14:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124507#M1512</link>
      <description>&lt;P&gt;rc.local above updated as this is a link on some rh6.x but a directory on rh7.x&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; #SPLUNK: disable THP at boot time
     THP=`find /sys/kernel/mm/ -name transparent_hugepage \( -type l -o -type d \)| tail -n 1`
     for SETTING in "enabled" "defrag";do
         if test -f ${THP}/${SETTING}; then
             echo never &amp;gt; ${THP}/${SETTING}
         fi
     done
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Jan 2017 14:22:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124507#M1512</guid>
      <dc:creator>maraman_splunk</dc:creator>
      <dc:date>2017-01-03T14:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124508#M1513</link>
      <description>&lt;P&gt;Me gusta. &lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 13:41:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124508#M1513</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2017-01-04T13:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I disable Transparent Huge Pages (THP) and confirm that it is disabled?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124509#M1514</link>
      <description>&lt;P&gt;Can anyone suggest any easy way to validate whether disabling THP improved the performance ?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 23:47:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-disable-Transparent-Huge-Pages-THP-and-confirm-that-it/m-p/124509#M1514</guid>
      <dc:creator>kamal_jagga</dc:creator>
      <dc:date>2017-01-06T23:47:31Z</dc:date>
    </item>
  </channel>
</rss>

