<?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: Swapping to disk when MEMMAXSZ cap is reached in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Swapping-to-disk-when-MEMMAXSZ-cap-is-reached/m-p/394077#M277830</link>
    <description>&lt;P&gt;The path you give (&amp;nbsp;&lt;SPAN&gt;"c:\inmem" in your case) is a dummy. &lt;/SPAN&gt;&lt;SPAN&gt;It is not used.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So the dataset must fit in the space you define with&amp;nbsp;MEMMAXSZ.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note that REALMEMSIZE (the space used by procedures) +&amp;nbsp;MEMMAXSZ (the space used by RAM libraries) must fit side by side in&amp;nbsp;MEMSIZE.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And REALMEMSIZE must be larger than SORTSIZE or&amp;nbsp;SUMSIZE (the space used by some procedures like proc means or proc sort).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to read a lot more about this, click on the link below, a section is dedicated to in-memory data allocation (SASFILE, MEMLIB, MEMCACHE, etc).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2017 00:00:17 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2017-09-08T00:00:17Z</dc:date>
    <item>
      <title>Swapping to disk when MEMMAXSZ cap is reached</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Swapping-to-disk-when-MEMMAXSZ-cap-is-reached/m-p/393572#M277829</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have just started experimenting with one of the in memory options for SAS. The in memory libname.&lt;/P&gt;&lt;P&gt;I start by setting my MEMMAXSZ=2147483648 and then setting MEMSIZE = 4294967296.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I declare the libname like:&lt;/P&gt;&lt;P&gt;libname turbo&amp;nbsp;&amp;nbsp; "c:\inmem" memlib;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I try loading a dataset of approximately 3 GB into the “turbo” library. This could be like&lt;/P&gt;&lt;P&gt;Data turbo.TEST_DATA_MARHA;&lt;/P&gt;&lt;P&gt;Set big_data_3_gb;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This means that we will exceed the allocated RAM size. This results to my surprise in the following error:&lt;/P&gt;&lt;P&gt;ERROR: Insufficient space in file TURBO.TEST_DATA_MARHA.DATA.&lt;/P&gt;&lt;P&gt;ERROR: File TURBO.TEST_DATA_MARHA.DATA is damaged. I/O processing did not complete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was actually expecting that SAS would swap to the diskpath ”c:\inmem” and finalize the dataset here. Now my question to you guys – is it possible to do so? (I know that it will hurt performance and so on)&lt;/P&gt;&lt;P&gt;If this is not possible – why do I have to give it a path when declaring the libname?&lt;/P&gt;&lt;P&gt;Im running 9.3 TS1M2 on a server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 14:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Swapping-to-disk-when-MEMMAXSZ-cap-is-reached/m-p/393572#M277829</guid>
      <dc:creator>Martin1</dc:creator>
      <dc:date>2017-09-06T14:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Swapping to disk when MEMMAXSZ cap is reached</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Swapping-to-disk-when-MEMMAXSZ-cap-is-reached/m-p/394077#M277830</link>
      <description>&lt;P&gt;The path you give (&amp;nbsp;&lt;SPAN&gt;"c:\inmem" in your case) is a dummy. &lt;/SPAN&gt;&lt;SPAN&gt;It is not used.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So the dataset must fit in the space you define with&amp;nbsp;MEMMAXSZ.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note that REALMEMSIZE (the space used by procedures) +&amp;nbsp;MEMMAXSZ (the space used by RAM libraries) must fit side by side in&amp;nbsp;MEMSIZE.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And REALMEMSIZE must be larger than SORTSIZE or&amp;nbsp;SUMSIZE (the space used by some procedures like proc means or proc sort).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to read a lot more about this, click on the link below, a section is dedicated to in-memory data allocation (SASFILE, MEMLIB, MEMCACHE, etc).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 00:00:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Swapping-to-disk-when-MEMMAXSZ-cap-is-reached/m-p/394077#M277830</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-09-08T00:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Swapping to disk when MEMMAXSZ cap is reached</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Swapping-to-disk-when-MEMMAXSZ-cap-is-reached/m-p/394078#M277831</link>
      <description>&lt;P&gt;As for splitting the dataset, the V9 engine doesn't do this.&lt;/P&gt;
&lt;P&gt;The SPDE engine does though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you can't use this engine and the memlib option on the same libname&amp;nbsp;statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A workaround is to define a RAM disk in the OS and create a multi-path spde library in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, try compressing your data, it might just fit in 2GB...&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 00:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Swapping-to-disk-when-MEMMAXSZ-cap-is-reached/m-p/394078#M277831</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-09-08T00:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Swapping to disk when MEMMAXSZ cap is reached</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Swapping-to-disk-when-MEMMAXSZ-cap-is-reached/m-p/394578#M277832</link>
      <description>Sadly this is not the perfect solution, but that is not on you - thank you for you help claryfying the problem and giving me an alternative.&lt;BR /&gt;&lt;BR /&gt;Good day to you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 11 Sep 2017 07:09:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Swapping-to-disk-when-MEMMAXSZ-cap-is-reached/m-p/394578#M277832</guid>
      <dc:creator>Martin1</dc:creator>
      <dc:date>2017-09-11T07:09:50Z</dc:date>
    </item>
  </channel>
</rss>

