<?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 Not sure if ArcPy Parallel Processing Environment is working correctly in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/not-sure-if-arcpy-parallel-processing-environment/m-p/1039049#M25340</link>
    <description>&lt;P&gt;I have a python 3 script that grabs a set of 3500 rasters and mosaics them using the Mosaic to New Raster tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the start of my script I have set the parallel processing environment setting to 100%&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;arcpy.env.parallelProcessingFactor = "100%"&lt;/LI-CODE&gt;&lt;P&gt;The machine I am running has 20 virtual&amp;nbsp; processors and 64 GB of RAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm only getting 6% CPU utilization and only 8 GB of RAM usage. My understanding is that using parallel processing at 100% would use all the cores. Is there something obvious I'm missing or need to change to make the script run faster?&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CPU.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9029i95258E0C5A47F995/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CPU.PNG" alt="CPU.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 20 Mar 2021 21:24:28 GMT</pubDate>
    <dc:creator>tigerwoulds</dc:creator>
    <dc:date>2021-03-20T21:24:28Z</dc:date>
    <item>
      <title>Not sure if ArcPy Parallel Processing Environment is working correctly</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/not-sure-if-arcpy-parallel-processing-environment/m-p/1039049#M25340</link>
      <description>&lt;P&gt;I have a python 3 script that grabs a set of 3500 rasters and mosaics them using the Mosaic to New Raster tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the start of my script I have set the parallel processing environment setting to 100%&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;arcpy.env.parallelProcessingFactor = "100%"&lt;/LI-CODE&gt;&lt;P&gt;The machine I am running has 20 virtual&amp;nbsp; processors and 64 GB of RAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm only getting 6% CPU utilization and only 8 GB of RAM usage. My understanding is that using parallel processing at 100% would use all the cores. Is there something obvious I'm missing or need to change to make the script run faster?&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CPU.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9029i95258E0C5A47F995/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CPU.PNG" alt="CPU.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 21:24:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/not-sure-if-arcpy-parallel-processing-environment/m-p/1039049#M25340</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2021-03-20T21:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Not sure if ArcPy Parallel Processing Environment is working correctly</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/not-sure-if-arcpy-parallel-processing-environment/m-p/1039055#M25341</link>
      <description>&lt;P&gt;You may increase the parallel processing factor.&lt;/P&gt;&lt;P&gt;Take a smaller sample of Rasters (say 100). Test with parallel processing factor of 150% or 200%, and check how it compares to 100% (&lt;A href="https://stackoverflow.com/questions/1557571/how-do-i-get-time-of-a-python-programs-execution" target="_self"&gt;Time taken&lt;/A&gt; and impact on System performance).&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/environment-settings/parallel-processing-factor.htm" target="_self"&gt;&lt;STRONG&gt;Parallel Processing Factor&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Specifying more processes than your machine has cores may incur a performance penalty. This is because multiple processes will compete for resources on one core. To specify the environment in a way that avoids this competition, you can use either a percent value less than 100% or a number of processes less than the number of cores on your machine.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;However, for cases in which all your processes are I/O bound to a disk or to an enterprise database connection, you may get better performance by specifying more processes than you have cores.&lt;/STRONG&gt; For example, the Add Rasters to Mosaic Dataset tool is I/O bound when the mosaic dataset is stored in an enterprise database. Also, the Build Overviews tool is primarily I/O bound to the disk. You can use more processes than your machine has cores by specifying either a percent value greater than 100% or a number of processes greater than the number of cores on your machine. For example, if you have a 4-core machine, specifying 8 or 200% will spread operations over 8 processes.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 21:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/not-sure-if-arcpy-parallel-processing-environment/m-p/1039055#M25341</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-03-20T21:52:38Z</dc:date>
    </item>
  </channel>
</rss>

