<?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>question Re: swap warning in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411982#M253179</link>
    <description>&lt;P&gt;Yes,&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/128444"&gt;@Malrashed&lt;/a&gt;,&amp;nbsp;that should help as well. Mainly we are bypassing the warning by increasing the threshold&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2025 04:33:07 GMT</pubDate>
    <dc:creator>upadhyayk04</dc:creator>
    <dc:date>2025-07-31T04:33:07Z</dc:date>
    <item>
      <title>swap warning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411712#M253138</link>
      <description>&lt;P&gt;Hello Cloudera Support,&lt;/P&gt;&lt;P&gt;We are receiving warnings in Cloudera Manager related to &lt;STRONG&gt;swapping activity&lt;/STRONG&gt; on one or more cluster nodes. However, swap has already been disabled across all our hosts, and we've verified that no active swap space is configured.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Despite this, Cloudera Manager continues to raise the warning.&lt;/P&gt;&lt;P&gt;We would appreciate your assistance in clarifying the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;What conditions or metrics trigger this warning?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Are there additional configurations or steps we should take to prevent this alert?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Please let us know if any diagnostics or host information is required from our end.&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Swap has been disabled across all nodes via OS configuration.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Modhi Alrashed&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 10:58:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411712#M253138</guid>
      <dc:creator>Malrashed</dc:creator>
      <dc:date>2025-07-24T10:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: swap warning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411724#M253147</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/128444"&gt;@Malrashed&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reaching out to the community&lt;/P&gt;&lt;P&gt;Could you please confirm what services are giving a swap warning? If possible please attach a screenshot to further understand the issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 10:59:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411724#M253147</guid>
      <dc:creator>upadhyayk04</dc:creator>
      <dc:date>2025-07-25T10:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: swap warning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411740#M253149</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95611"&gt;@upadhyayk04&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;All the services affected except Hue ,hive, hive on Tez , Yarn (MR2 included) and Nifi&lt;/P&gt;&lt;P&gt;please find attached screenshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen.jpg" style="width: 696px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46210iD4CD84CC5ED4C3B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="screen.jpg" alt="screen.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 12:56:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411740#M253149</guid>
      <dc:creator>Malrashed</dc:creator>
      <dc:date>2025-07-28T12:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: swap warning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411755#M253152</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/128444"&gt;@Malrashed&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;did you completely disable swap at the operating system level?&lt;/P&gt;&lt;P&gt;comment out the swap line in the fstab file.&lt;BR /&gt;run the swap off command.&lt;BR /&gt;the free command returns swap 0 (zero).&lt;/P&gt;&lt;P&gt;after disabling, did you restart the Cloudera agent?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 20:04:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411755#M253152</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2025-07-28T20:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: swap warning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411759#M253154</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/128444"&gt;@Malrashed&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to the last update&lt;/P&gt;&lt;P&gt;Also, check the current threshold you have set for the process . There could be a possibility that it could be set to a very low value like KB's if that is the case then you can tweak those&lt;/P&gt;&lt;P&gt;CM UI &amp;gt;&amp;gt; HDFS &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; Process Swap Memory Thresholds&lt;/P&gt;&lt;P&gt;Also, share the output of free -mh to check the free memory and swap consumed. You might need to swapoff and swapon&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 04:59:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411759#M253154</guid>
      <dc:creator>upadhyayk04</dc:creator>
      <dc:date>2025-07-29T04:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: swap warning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411863#M253157</link>
      <description>&lt;P&gt;dears&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95611"&gt;@upadhyayk04&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96163"&gt;@yagoaparecidoti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask about the recommendations from Cloudera about :&lt;/P&gt;&lt;P&gt;1- What is the optimal swap value for all services?&lt;/P&gt;&lt;P&gt;2- Is it recommended to enable swap? if so, under what conditions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 12:29:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411863#M253157</guid>
      <dc:creator>Malrashed</dc:creator>
      <dc:date>2025-07-29T12:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: swap warning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411867#M253158</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/128444"&gt;@Malrashed&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your update&lt;/P&gt;&lt;P&gt;Are you talking about enabling swap threshold on services or actual swap on operating system?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 12:32:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411867#M253158</guid>
      <dc:creator>upadhyayk04</dc:creator>
      <dc:date>2025-07-29T12:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: swap warning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411868#M253159</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/128444"&gt;@Malrashed&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;we do not use swap on Cloudera cluster hosts.&lt;/P&gt;&lt;P&gt;we disable 100% or keep the value 1 in the vm.swappiness parameter.&lt;BR /&gt;&lt;BR /&gt;reference:&lt;BR /&gt;&lt;A href="https://docs.cloudera.com/cdp-reference-architectures/latest/cdp-pvc-base-ra/topics/ra-cdpdc-swapiness.html" target="_blank" rel="noopener"&gt;https://docs.cloudera.com/cdp-reference-architectures/latest/cdp-pvc-base-ra/topics/ra-cdpdc-swapiness.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-main"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-main-content"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;best regards &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 12:35:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411868#M253159</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2025-07-29T12:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: swap warning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411970#M253170</link>
      <description>&lt;P&gt;Dear &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95611"&gt;@upadhyayk04&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response. I was actually referring to both.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 08:32:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411970#M253170</guid>
      <dc:creator>Malrashed</dc:creator>
      <dc:date>2025-07-30T08:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: swap warning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411971#M253171</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/128444"&gt;@Malrashed&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your update&lt;/P&gt;&lt;P&gt;I think my colleague has already shared the answer to your query. In general for host level swap configuration you can refer the below redhat document&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/storage_administration_guide/ch-swapspace" target="_blank" rel="noopener"&gt;https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/storage_administration_guide/ch-swapspace&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if swap is available on a host in linux, the Kernel can elect to store things in swap at any time. The system does not have to be out of memory for the Kernel place. As an example a significant number of the pages used by an application during its startup phase may only be used for initialisation and then never used again. The system can swap out those pages and free the memory for other applications or even for the disk cache. That being said sometimes running into swap space is un-avoidable unless the swapiness value is set to 0. Cloudera Manager is set to alert on any usage at all. Cloudera officially recommends setting the swapiness value to 1, but this can lead to the Swap Memory alerts that you're experiencing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;POSSIBLE SOLUTIONS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There are two options we have. We can raise the warning threshold, or change the swapiness value to 0. It's really up to you, but most customers raise the warning threshold because with newer versions of the Linux kernel, the swappiness value of 0 now means to "never swap" and in Out of Memory (OOM) situations the kernel is more likely to indiscriminately kill important processes needed reclaim RAM. This may be fine on worker nodes but certainly not Master nodes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to fix the error you can do one of the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To Raise the Threshold:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.) CM =&amp;gt; Search for "host_memswap_thresholds" (Host Memory Swapping Thresholds) =&amp;gt; Specify for both Warning and Critical and put the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Warning: 51200&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Critical : 102400&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The thresholds are specified in pages (256 = 1MB)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So for warning the Memory limit = 200 MB and Critical Memory limit = 400 MB&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To Change Swapiness Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.) In order to change the swap space on a running machine you must issue first the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;echo "0" &amp;gt; /proc/sys/vm/swappiness&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.) To make the swap parameter persistent upon a reboot, use the following command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;echo "vm.swappiness=0" &amp;gt;&amp;gt; /etc/sysctl.conf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(NOTE: Also vi the sysctl.conf file and delete any vm.swappiness=1 entries)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.) Issue the command: swapoff -a then swapon -a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This will turn off swap space completely and get rid of the warnings, then turn swap back on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE : As per the official document [Ref1] Cloudera recommends swapiness to 1 so please check on that in your environment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Ref1] :&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.5/managing-clusters/topics/cm-setting-vmswappiness-linux-kernel-parameter.html" target="_blank" rel="noopener noreferrer"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.5/managing-clusters/topics/cm-setting-vmswappiness-linux-kernel-parameter.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help our community grow. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 08:41:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411971#M253171</guid>
      <dc:creator>upadhyayk04</dc:creator>
      <dc:date>2025-07-30T08:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: swap warning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411972#M253172</link>
      <description>&lt;P&gt;Dear &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95611"&gt;@upadhyayk04&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I will raise the threshold to be as what you recommended, but the host threshold already 200 ( warning).&lt;/P&gt;&lt;P&gt;Can I change the Process Swap Memory Threshold? to fix my issue ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 10:16:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411972#M253172</guid>
      <dc:creator>Malrashed</dc:creator>
      <dc:date>2025-07-30T10:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: swap warning</title>
      <link>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411982#M253179</link>
      <description>&lt;P&gt;Yes,&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/128444"&gt;@Malrashed&lt;/a&gt;,&amp;nbsp;that should help as well. Mainly we are bypassing the warning by increasing the threshold&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 04:33:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/swap-warning/m-p/411982#M253179</guid>
      <dc:creator>upadhyayk04</dc:creator>
      <dc:date>2025-07-31T04:33:07Z</dc:date>
    </item>
  </channel>
</rss>

