<?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: PROC GLIMMIX and insufficient memory in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/970445#M84014</link>
    <description>&lt;P&gt;Hi ChrisNZ,&lt;/P&gt;&lt;P&gt;Thank you for your responses and advice. I'd like to give you an update. I sent the issue to SAS Tech Support as soon as I saw your reply. Now, the ticket is moved to R&amp;amp;D. I hope they will release a fix sooner than later.&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Rakkoo&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jul 2025 14:29:08 GMT</pubDate>
    <dc:creator>rchung</dc:creator>
    <dc:date>2025-07-09T14:29:08Z</dc:date>
    <item>
      <title>PROC GLIMMIX and insufficient memory</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/968334#M83997</link>
      <description>&lt;P&gt;Hello.&lt;BR /&gt;I am running SAS 9.4 / SAS-EG 8.3 under Windows 10 Enterprise 64-bit OS. I have 32GB of installed RAM. When no application is running, the task manager shows that 17GB is available.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to run 3-level random-intercept models with a count response variable (i.e., number of cases diagnosed with a certain disease) that takes the Poisson distribution.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The level-3 variable is county: There are ~60 counties.&lt;/LI&gt;&lt;LI&gt;The level-2 variable is census tract: There are ~5,000 census tracts.&lt;/LI&gt;&lt;LI&gt;The sample size is ~200,000.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried a null model:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;proc glimmix data=m100 method=laplace;&lt;BR /&gt;class tract county ;&lt;BR /&gt;model n_case=&amp;nbsp;&amp;nbsp;/dist=poisson link=log offset=logpop solution;&lt;BR /&gt;random intercept / subject=county type=chol;&lt;BR /&gt;random intercept / subject=tract(county) type=chol;&lt;BR /&gt;run;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, PROC GLIMMIX stops running due to &lt;STRONG&gt;ERROR: The SAS System stopped processing this step because of insufficient memory&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried these configurations in the sasv9.cfg file:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;-MEMSIZE MAX&lt;BR /&gt;-FULLSTIMER&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;-MEMSIZE 24G&lt;BR /&gt;-FULLSTIMER&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;-MEMSIZE 40G&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--&amp;gt; so that SAS could use HDD space as virtual memory?&lt;BR /&gt;-REALMEMSIZE 24G&lt;BR /&gt;-FULLSTIMER&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Unfortunately, PROC GLIMMIX kept stopping in 10 seconds and showing the same error. When I tried&amp;nbsp;METHOD=QUAD(FASTQUAD), I ran into the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, I started running the same model on smaller data. The table below shows the data size and a couple FULLSTIMER stats.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;data&lt;/TD&gt;&lt;T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t;200 min&lt;/TD&gt;&lt;TD&gt;9780144.00k&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;m98&lt;/TD&gt;&lt;TD&gt;183091&lt;/TD&gt;&lt;TD&gt;4866&lt;/TD&gt;&lt;TD&gt;61&lt;/TD&gt;&lt;TD&gt;stops at 41 min&lt;/TD&gt;&lt;TD&gt;10050376.00k&lt;/TD&gt;&lt;TD&gt;write access violation&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;m100&lt;/TD&gt;&lt;TD&gt;183243&lt;/TD&gt;&lt;TD&gt;4870&lt;/TD&gt;&lt;TD&gt;62&lt;/TD&gt;&lt;TD&gt;stops at 10 sec&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;insufficient memory&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was interesting to find this&amp;nbsp;&lt;STRONG&gt;ERROR: Write Access Violation GLIMMIX (2)&amp;nbsp;&lt;/STRONG&gt;when I ran the model on a nearly full data.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I wonder that only 10GB of memory was available for SAS, despite the configurations.&lt;/LI&gt;&lt;LI&gt;I also wonder that HDD space was not available for SAS to use as virtual memory because I do not have the admin privileges on this computer.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I wonder how much of additional RAM will do the job. Any suggestions will be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you!&lt;BR /&gt;Rakkoo&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 14:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/968334#M83997</guid>
      <dc:creator>rchung</dc:creator>
      <dc:date>2025-06-06T14:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX and insufficient memory</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/968377#M83998</link>
      <description>&lt;P&gt;Strange that SAS would fail at 10 GB when you allocate much more.&lt;/P&gt;
&lt;P&gt;See the value of&amp;nbsp;undocumented option&amp;nbsp;&lt;STRONG&gt;XMRLMEM&lt;/STRONG&gt;&amp;nbsp;to know&amp;nbsp;the amount of memory available to SAS at any point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jun 2025 10:10:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/968377#M83998</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2025-06-07T10:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX and insufficient memory</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/968378#M83999</link>
      <description>&lt;P&gt;How much memory do you see available in Windows?&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jun 2025 10:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/968378#M83999</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2025-06-07T10:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX and insufficient memory</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/968458#M84001</link>
      <description>&lt;P&gt;I ran this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DATA _NULL_; mem = (GETOPTION('XMRLMEM')); PUT '**mem=' mem; RUN;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Available memory when other apps (Outlook, Chrome, Excel, Word, PPT, etc., as well as SAS and Chrome) are running:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;**mem=19360390144&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Available memory when no other apps (but SAS and Chrome) are running:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;**mem=19360600064&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 09 Jun 2025 14:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/968458#M84001</guid>
      <dc:creator>rchung</dc:creator>
      <dc:date>2025-06-09T14:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX and insufficient memory</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/968459#M84002</link>
      <description>&lt;P&gt;For now, I am not running any other apps but SAS and Chrome. Task manager reports memory usage as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In use: 12.0 GB&lt;/P&gt;&lt;P&gt;Available: 19.6 GB&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 13:12:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/968459#M84002</guid>
      <dc:creator>rchung</dc:creator>
      <dc:date>2025-06-09T13:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX and insufficient memory</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/968707#M84003</link>
      <description>&lt;P&gt;So you have 20 GB available. Contact Tech suport. There's no reason SAS should stop at 10 GB. There are other memory settings like SORTSIZE and SUMSIZE, but they don't affect this procedure. Tech support might know more. Now you have good information to give them.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 22:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/968707#M84003</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2025-06-10T22:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX and insufficient memory</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/970445#M84014</link>
      <description>&lt;P&gt;Hi ChrisNZ,&lt;/P&gt;&lt;P&gt;Thank you for your responses and advice. I'd like to give you an update. I sent the issue to SAS Tech Support as soon as I saw your reply. Now, the ticket is moved to R&amp;amp;D. I hope they will release a fix sooner than later.&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Rakkoo&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 14:29:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/970445#M84014</guid>
      <dc:creator>rchung</dc:creator>
      <dc:date>2025-07-09T14:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLIMMIX and insufficient memory</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/970838#M84024</link>
      <description>&lt;P&gt;Thanks for the update.&lt;/P&gt;
&lt;P&gt;So that behaviour has been replicated and a defect has been created?&amp;nbsp;&lt;BR /&gt;That's all you can do for now.&lt;/P&gt;
&lt;P&gt;If the defect affects other procedures too, a fix might come at some point.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 00:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-GLIMMIX-and-insufficient-memory/m-p/970838#M84024</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2025-07-16T00:22:09Z</dc:date>
    </item>
  </channel>
</rss>

