<?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 CM enforces max locked memory on datanode process in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CM-enforces-max-locked-memory-on-datanode-process/m-p/18610#M2892</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When setting the parameter "&lt;SPAN&gt;dfs.datanode.max.locked.memory" to a value other than 0, it is supposed to be the user's responsibility to set the MEMLOCK limits accordingly. CM does not leave that for the user and enforces it. (as seen on /proc/&amp;lt;pid&amp;gt;/limits)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This parameter is used by HDFS only to limt cache resources, so there is no real reason for CM to enforce this limit on an OS level. By doing so, CM does not allow external libraries (non-cache related) on the datanode to allocate memory past this limit.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To make a long story short, I'd like to cancel CM's enforcement of this limit and set the limits myself. Is there any way I could do so?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Elad&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:07:24 GMT</pubDate>
    <dc:creator>eladi</dc:creator>
    <dc:date>2022-09-16T09:07:24Z</dc:date>
    <item>
      <title>CM enforces max locked memory on datanode process</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CM-enforces-max-locked-memory-on-datanode-process/m-p/18610#M2892</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When setting the parameter "&lt;SPAN&gt;dfs.datanode.max.locked.memory" to a value other than 0, it is supposed to be the user's responsibility to set the MEMLOCK limits accordingly. CM does not leave that for the user and enforces it. (as seen on /proc/&amp;lt;pid&amp;gt;/limits)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This parameter is used by HDFS only to limt cache resources, so there is no real reason for CM to enforce this limit on an OS level. By doing so, CM does not allow external libraries (non-cache related) on the datanode to allocate memory past this limit.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To make a long story short, I'd like to cancel CM's enforcement of this limit and set the limits myself. Is there any way I could do so?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Elad&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:07:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CM-enforces-max-locked-memory-on-datanode-process/m-p/18610#M2892</guid>
      <dc:creator>eladi</dc:creator>
      <dc:date>2022-09-16T09:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: CM enforces max locked memory on datanode process</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CM-enforces-max-locked-memory-on-datanode-process/m-p/18612#M2893</link>
      <description>Hi Elad,&lt;BR /&gt;&lt;BR /&gt;You can set probably dfs.datanode.max.locked.memory to the value you want to enforced by the OS, then use the Advanced Configuration Snippet for hdfs-site.xml to change the value that HDFS actually sees for this parameter in hdfs-site.&lt;BR /&gt;&lt;BR /&gt;If CM didn't set memlock, then HDFS caching would be at the mercy of the default memlock setting and could fail unexpectedly, with essentially no workaround. So it's pretty important that CM sets this limit to something that will make caching work.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Darren</description>
      <pubDate>Thu, 11 Sep 2014 14:24:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CM-enforces-max-locked-memory-on-datanode-process/m-p/18612#M2893</guid>
      <dc:creator>Darren</dc:creator>
      <dc:date>2014-09-11T14:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: CM enforces max locked memory on datanode process</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CM-enforces-max-locked-memory-on-datanode-process/m-p/18616#M2894</link>
      <description>&lt;P&gt;Thanks a lot Darren, a very simple solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2014 14:47:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CM-enforces-max-locked-memory-on-datanode-process/m-p/18616#M2894</guid>
      <dc:creator>eladi</dc:creator>
      <dc:date>2014-09-11T14:47:26Z</dc:date>
    </item>
  </channel>
</rss>

