<?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: Driver: how much memory is actually available? in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/driver-how-much-memory-is-actually-available/m-p/107729#M2894</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/144942"&gt;@dbuserng&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;free -h&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;command in the web terminal shows only 8.9GB of available memory on your driver, which is a Standard_DS3_v2 instance with 14GB of memory, because Databricks has services running on each node. This means the maximum allowable memory for Spark is less than the total memory capacity of the VM reported by the cloud provider. Even if&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;spark.driver.memory&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;is not explicitly set, some memory is reserved for these services, reducing the amount available for Spark processes.&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-30 at 1.45.35 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14434i6161462242D5CC81/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-01-30 at 1.45.35 PM.png" alt="Screenshot 2025-01-30 at 1.45.35 PM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-30 at 1.45.49 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14435i2C33C7816789DF62/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-01-30 at 1.45.49 PM.png" alt="Screenshot 2025-01-30 at 1.45.49 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As a preface, the maximum memory size given to Spark is constrained by the other internal services we run on the VM. The current formula for this is&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;container_size = (vm_size * 0.97 - 4800MB)&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;and is implicitly defined in&amp;nbsp;&lt;CODE&gt;&lt;A class="external-link" href="https://github.com/databricks/universe/blob/master/cluster-common/src/main/scala/com/databricks/backend/cluster/NodeTypeConf.scala" rel="nofollow" target="_blank"&gt;NodeTypeConf.scala&lt;/A&gt;&lt;/CODE&gt;. For most node types, Databricks will set&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;spark.executor.memory = (0.8 * container_size)&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;spark.driver.memory = (0.8 * c&lt;/CODE&gt;&lt;CODE&gt;ontainer_size) - conf.chauffeurMemorySizeMB&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2025 08:17:58 GMT</pubDate>
    <dc:creator>Sidhant07</dc:creator>
    <dc:date>2025-01-30T08:17:58Z</dc:date>
    <item>
      <title>Driver: how much memory is actually available?</title>
      <link>https://community.databricks.com/t5/administration-architecture/driver-how-much-memory-is-actually-available/m-p/106668#M2818</link>
      <description>&lt;P&gt;I have a cluster where Driver type is Standard_DS3_v2 (14GB Memory and 4 Cores).&amp;nbsp;When I use free -h command in Web terminal (see attached screenshot) I get the response that I only have 8.9GB memory available on my driver - why is that?&lt;/P&gt;&lt;P&gt;fyi, spark.driver.memory is not set&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 14:48:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/driver-how-much-memory-is-actually-available/m-p/106668#M2818</guid>
      <dc:creator>dbuserng</dc:creator>
      <dc:date>2025-01-22T14:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Driver: how much memory is actually available?</title>
      <link>https://community.databricks.com/t5/administration-architecture/driver-how-much-memory-is-actually-available/m-p/107729#M2894</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/144942"&gt;@dbuserng&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;free -h&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;command in the web terminal shows only 8.9GB of available memory on your driver, which is a Standard_DS3_v2 instance with 14GB of memory, because Databricks has services running on each node. This means the maximum allowable memory for Spark is less than the total memory capacity of the VM reported by the cloud provider. Even if&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;spark.driver.memory&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;is not explicitly set, some memory is reserved for these services, reducing the amount available for Spark processes.&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-30 at 1.45.35 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14434i6161462242D5CC81/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-01-30 at 1.45.35 PM.png" alt="Screenshot 2025-01-30 at 1.45.35 PM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-30 at 1.45.49 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14435i2C33C7816789DF62/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-01-30 at 1.45.49 PM.png" alt="Screenshot 2025-01-30 at 1.45.49 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As a preface, the maximum memory size given to Spark is constrained by the other internal services we run on the VM. The current formula for this is&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;container_size = (vm_size * 0.97 - 4800MB)&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;and is implicitly defined in&amp;nbsp;&lt;CODE&gt;&lt;A class="external-link" href="https://github.com/databricks/universe/blob/master/cluster-common/src/main/scala/com/databricks/backend/cluster/NodeTypeConf.scala" rel="nofollow" target="_blank"&gt;NodeTypeConf.scala&lt;/A&gt;&lt;/CODE&gt;. For most node types, Databricks will set&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;spark.executor.memory = (0.8 * container_size)&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;spark.driver.memory = (0.8 * c&lt;/CODE&gt;&lt;CODE&gt;ontainer_size) - conf.chauffeurMemorySizeMB&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 08:17:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/driver-how-much-memory-is-actually-available/m-p/107729#M2894</guid>
      <dc:creator>Sidhant07</dc:creator>
      <dc:date>2025-01-30T08:17:58Z</dc:date>
    </item>
  </channel>
</rss>

