<?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: Parallel Processing with PROC GLIMMIX in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Parallel-Processing-with-PROC-GLIMMIX/m-p/880926#M348087</link>
    <description>Sorry, should have been more specific: I am running SAS on Windows 11 desktop.  The ten programms running GLIMMIX models are submitted by right-clicking and "Batch Submit with SAS 9.4".  The code of GLIMMIX is probably not relevant but here it is just in case:&lt;BR /&gt;&lt;BR /&gt;proc glimmix data=BootData Method=Quad;&lt;BR /&gt;	where SampleID LE 50;&lt;BR /&gt;	by SampleID;&lt;BR /&gt;	freq NumberHits;&lt;BR /&gt;	class Stratum; * pre-sorted ;&lt;BR /&gt;	class ageGrp  / reference = last ;&lt;BR /&gt;	model OpMort (event="1 = Yes")  = &amp;amp;ModelVars  / dist=binary link=logit cl;&lt;BR /&gt;	random intercept / subject= Stratum; &lt;BR /&gt;	output out=out.B0 	pred(iLink BLUP)=PredProb_boot&lt;BR /&gt;						pred(	 noBLUP)=PredProb_boot_noBLUP_xBeta&lt;BR /&gt;;&lt;BR /&gt;run;</description>
    <pubDate>Thu, 15 Jun 2023 14:25:05 GMT</pubDate>
    <dc:creator>Haris</dc:creator>
    <dc:date>2023-06-15T14:25:05Z</dc:date>
    <item>
      <title>Parallel Processing with PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parallel-Processing-with-PROC-GLIMMIX/m-p/880541#M347909</link>
      <description>&lt;P&gt;Many SAS procedures have NTHREADS option that allows one to fine-tune computer resource allocation and can have dramatic impact on processing times.&amp;nbsp; As far as I know GLIMMIX is not one of them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In running bootstrap simulations, I am running the same GLIMMIX model 500 times and, with approximately 4 minutes per bootstrap Replication, processing time ends up 2,000 minutes or well over one day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Given that computer resource utilization is minimal during the whole run, I tried to split the 500 bootstrap samples into 10 parallel runs with 50 Replications in each.&amp;nbsp; To my surprise, when running exactly the same GLIMMIX model with 10 parallel processes, the per-replication processing times increased from 4 minutes to about 18 minutes.&amp;nbsp; Computer resource utilization did not show anything remotely close to reaching the limits of the powerful Windows machine I am using (64 core CPU, 128GB or RAM, NvME Hard Discs).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In summary, by parallelizing the process, I cut the total run time in half but that's not anywhere near close to 10 times corresponding to 10 parallel runs of the models.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help me understand why this is?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More importantly, how do I optimize the workflow.&amp;nbsp; That is, would 50 parallel runs be faster than 10 or would 5 be better?&amp;nbsp; I can, of course, just try but the process is very time-consuming.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your thoughts.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 20:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parallel-Processing-with-PROC-GLIMMIX/m-p/880541#M347909</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2023-06-13T20:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing with PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parallel-Processing-with-PROC-GLIMMIX/m-p/880781#M348007</link>
      <description>&lt;P&gt;Try re-posting under Analytics -&amp;gt; Statistical Procedures&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 19:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parallel-Processing-with-PROC-GLIMMIX/m-p/880781#M348007</guid>
      <dc:creator>JOL</dc:creator>
      <dc:date>2023-06-14T19:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing with PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parallel-Processing-with-PROC-GLIMMIX/m-p/880810#M348024</link>
      <description>&lt;P&gt;Compare your SAS log real and CPU time notes for GLIMMIX. If real time is much greater than CPU time you can be pretty much certain that your jobs are IO-bound. I suspect that a resource-intensive procedure like GLIMMIX uses a lot of WORK utility processing. Monitoring what your WORK folders do could identify this.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 20:30:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parallel-Processing-with-PROC-GLIMMIX/m-p/880810#M348024</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-06-14T20:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing with PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parallel-Processing-with-PROC-GLIMMIX/m-p/880914#M348078</link>
      <description>&lt;P&gt;When you say that you are running "10 parallel processes," how are you actually doing that?&amp;nbsp;Can you post the code you are submitting? For example, are you submitting 10 sas jobs from a linux command line, or doing something else?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 13:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parallel-Processing-with-PROC-GLIMMIX/m-p/880914#M348078</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-06-15T13:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing with PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parallel-Processing-with-PROC-GLIMMIX/m-p/880926#M348087</link>
      <description>Sorry, should have been more specific: I am running SAS on Windows 11 desktop.  The ten programms running GLIMMIX models are submitted by right-clicking and "Batch Submit with SAS 9.4".  The code of GLIMMIX is probably not relevant but here it is just in case:&lt;BR /&gt;&lt;BR /&gt;proc glimmix data=BootData Method=Quad;&lt;BR /&gt;	where SampleID LE 50;&lt;BR /&gt;	by SampleID;&lt;BR /&gt;	freq NumberHits;&lt;BR /&gt;	class Stratum; * pre-sorted ;&lt;BR /&gt;	class ageGrp  / reference = last ;&lt;BR /&gt;	model OpMort (event="1 = Yes")  = &amp;amp;ModelVars  / dist=binary link=logit cl;&lt;BR /&gt;	random intercept / subject= Stratum; &lt;BR /&gt;	output out=out.B0 	pred(iLink BLUP)=PredProb_boot&lt;BR /&gt;						pred(	 noBLUP)=PredProb_boot_noBLUP_xBeta&lt;BR /&gt;;&lt;BR /&gt;run;</description>
      <pubDate>Thu, 15 Jun 2023 14:25:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parallel-Processing-with-PROC-GLIMMIX/m-p/880926#M348087</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2023-06-15T14:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing with PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parallel-Processing-with-PROC-GLIMMIX/m-p/880927#M348088</link>
      <description>&lt;P&gt;Thanks for the recommendation regardgin WORK.&amp;nbsp; I am looking at Windows Resource Monitor and don't see anything of note on CPU, RAM, or Disk I/O.&amp;nbsp; Maybe up to 10-15% utilization.&amp;nbsp; Anything else you can recommend?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 14:27:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parallel-Processing-with-PROC-GLIMMIX/m-p/880927#M348088</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2023-06-15T14:27:39Z</dc:date>
    </item>
  </channel>
</rss>

