<?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: SAS System Options, Is MAX Too Much?? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365874#M275157</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22691"&gt;@NKormanik&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Performance tuning can be quite intense. What's going to work best for you really depends on your environment and also how you're going to use SAS, i.e. are your processes mainly I/O bound or mainly CPU&amp;nbsp;bound, are they often multithreaded or not.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/51/659.html&amp;nbsp;" target="_blank"&gt;http://support.sas.com/kb/51/659.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS tables for example are up to SAS Viya single threaded so how many CPU's you've got won't make any difference there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your first step will be to implement valid test cases for your actual SAS usage. You will then also have to make sure that there aren't any other processes running while you're testing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Changing one option at a time, through all possibilities for each option,would take a year or so to complete&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;You could write a script which batch submits your test cases. And you could implement a loop which passes in different parameter values to the SAS batch command and then just collect the stats. That would allow you to test a lot of cases in a fully automated fashion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2017 03:02:57 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2017-06-10T03:02:57Z</dc:date>
    <item>
      <title>SAS System Options, Is MAX Too Much??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365856#M275153</link>
      <description>&lt;P&gt;Using a new stand-alone computer that has 32 GB RAM, 6 core processors. Trying to tell SAS to go ahead and use as much of the resources as possible.&lt;/P&gt;
&lt;P&gt;Trouble is, with the settings below, a job is SLOWER than with a previous average computer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise on which of these 'options' likely needs to be changed:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-JREOPTIONS=(&lt;BR /&gt;-Xms1g&lt;BR /&gt;-Xmx1g )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-BUFNO MAX&lt;BR /&gt;-BUFSIZE MAX&lt;BR /&gt;-CPUCOUNT 6&lt;BR /&gt;-DMSLOGSIZE = 999999&lt;BR /&gt;-IBUFNO MAX&lt;BR /&gt;-IBUFSIZE MAX&lt;BR /&gt;-LRECL = MAX&lt;BR /&gt;-MEMSIZE = MAX&lt;BR /&gt;-REALMEMSIZE = MAX&lt;BR /&gt;-SET SAS_NO_RANDOM_ACCESS = "0"&lt;BR /&gt;-SORTSIZE = MAX&lt;BR /&gt;-SUMSIZE = MAX&lt;BR /&gt;-THREADS&lt;BR /&gt;-UBUFNO MAX&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks very much!&lt;/P&gt;
&lt;P&gt;Nicholas Kormanik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 23:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365856#M275153</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2017-06-09T23:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS System Options, Is MAX Too Much??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365857#M275154</link>
      <description>&lt;P&gt;I'm not an expert on this stuff, but if I recall you shouldn't set the REALMEMSIZE bigger than the amount of physical RAM your system has. &amp;nbsp;I think there's diminishing returns on the various buffer related options and it's somewhat filesystem dependent on what's best. I think I just wrote a quick shell script that iterated over a range of values to try and find the sweet spot.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 00:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365857#M275154</guid>
      <dc:creator>Sven111</dc:creator>
      <dc:date>2017-06-10T00:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS System Options, Is MAX Too Much??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365858#M275155</link>
      <description>&lt;P&gt;Defining MAX for so many options makes system great overhead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try change options to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;-BUFNO 3
-BUFSIZE MAX
-CPUCOUNT 6                         /* is your PC with 6 CPUs ? */
-DMSLOGSIZE = 999999
-IBUFNO 3
-IBUFSIZE MAX
-LRECL = MAX
-MEMSIZE = 0                        /* 0 means using MAX with HD if need */
-REALMEMSIZE =                  /* use default value */
-SET SAS_NO_RANDOM_ACCESS = "0"
-SORTSIZE = MAX
-SUMSIZE = MAX
-THREADS
-UBUFNO MAX&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With so many options, you should try changing each time one option and check for performence.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 00:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365858#M275155</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-06-10T00:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS System Options, Is MAX Too Much??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365863#M275156</link>
      <description>Changing one option at a time, through all possibilities for each option,&lt;BR /&gt;would take a year or so to complete.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Hoping for a more direct approach for finding the "sweet spot."&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Sat, 10 Jun 2017 01:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365863#M275156</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2017-06-10T01:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS System Options, Is MAX Too Much??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365874#M275157</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22691"&gt;@NKormanik&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Performance tuning can be quite intense. What's going to work best for you really depends on your environment and also how you're going to use SAS, i.e. are your processes mainly I/O bound or mainly CPU&amp;nbsp;bound, are they often multithreaded or not.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/51/659.html&amp;nbsp;" target="_blank"&gt;http://support.sas.com/kb/51/659.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS tables for example are up to SAS Viya single threaded so how many CPU's you've got won't make any difference there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your first step will be to implement valid test cases for your actual SAS usage. You will then also have to make sure that there aren't any other processes running while you're testing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Changing one option at a time, through all possibilities for each option,would take a year or so to complete&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;You could write a script which batch submits your test cases. And you could implement a loop which passes in different parameter values to the SAS batch command and then just collect the stats. That would allow you to test a lot of cases in a fully automated fashion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 03:02:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365874#M275157</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-06-10T03:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS System Options, Is MAX Too Much??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365877#M275158</link>
      <description>&lt;P&gt;If I were you I would start with the SAS defaults for the options you listed. How does performance&amp;nbsp;compare to your previous computer just with defaults? You need a benchmark before you start tweeking and the defaults will provide that. There is a good reason for the default values &amp;nbsp;- they are generally pretty efficient for most types of usage.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 03:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365877#M275158</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-06-10T03:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS System Options, Is MAX Too Much??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365878#M275159</link>
      <description>&lt;P&gt;Sometime, if you could try SPDE engine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname xx spde 'c:\temp\';&lt;/P&gt;
&lt;P&gt;options work=xx ;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 03:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365878#M275159</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-06-10T03:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS System Options, Is MAX Too Much??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365891#M275160</link>
      <description>&lt;P&gt;Before you start changing settings, get a clear picture of your performance issues. This means using tools to watch memory &amp;amp; cpu usage, and i/o throughput, and the "busy" states of the disks. Misconfigured storage can slow a supercomputer down to a crawl.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Allowing SAS to use all resources might deprive the operating system of the chance to optimise resource use itself. SAS provides whitepapers for all supported platforms that deal with optimising the settings for a given platform. In my experience, they have been very helpful (SAS on AIX/pSeries).&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 09:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/365891#M275160</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-10T09:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS System Options, Is MAX Too Much??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/366014#M275161</link>
      <description>Ksharp, tried SPDE on this stand-alone computer.  Seemed everything took&lt;BR /&gt;longer.  May have done it wrong, though.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Everyone else, thanks for your tips.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;List below seems to work fine.  Was just attempting to maximize resource&lt;BR /&gt;use.  Any further suggestions, love to hear 'em.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;-ALIGNSASIOFILES&lt;BR /&gt;&lt;BR /&gt;-BUFNO 10&lt;BR /&gt;&lt;BR /&gt;-BUFSIZE 64K&lt;BR /&gt;&lt;BR /&gt;-CPUCOUNT 6&lt;BR /&gt;&lt;BR /&gt;-DMSLOGSIZE 999999&lt;BR /&gt;&lt;BR /&gt;-FULLSTIMER&lt;BR /&gt;&lt;BR /&gt;-IBUFNO 10&lt;BR /&gt;&lt;BR /&gt;-IBUFSIZE 32767&lt;BR /&gt;&lt;BR /&gt;-LRECL MAX&lt;BR /&gt;&lt;BR /&gt;-MEMSIZE 10G&lt;BR /&gt;&lt;BR /&gt;-NOPRNGETLIST&lt;BR /&gt;&lt;BR /&gt;-REALMEMSIZE 8G&lt;BR /&gt;&lt;BR /&gt;-SET SAS_NO_RANDOM_ACCESS "0"&lt;BR /&gt;&lt;BR /&gt;-SORTSIZE 8G&lt;BR /&gt;&lt;BR /&gt;-SOURCE&lt;BR /&gt;&lt;BR /&gt;-SOURCE2&lt;BR /&gt;&lt;BR /&gt;-SUMSIZE 8G&lt;BR /&gt;&lt;BR /&gt;-THREADS&lt;BR /&gt;&lt;BR /&gt;-UBUFNO 10&lt;BR /&gt;&lt;BR /&gt;-UBUFSIZE 64K&lt;BR /&gt;&lt;BR /&gt;-VALIDVARNAME ANY&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Sun, 11 Jun 2017 23:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/366014#M275161</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2017-06-11T23:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS System Options, Is MAX Too Much??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/366018#M275162</link>
      <description>&lt;P&gt;libname XX spde 'c:\temp\' partsize=200g compress=binary;&lt;/P&gt;
&lt;P&gt;options work=XX;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;should work better:&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;normally no need to split data files when there is only one path, I/O is usually the bottleneck, and you might as well keep it sequential&lt;/P&gt;
&lt;P&gt;- much reduced I/O with SPDE's fantastic compression algorithm&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2017 23:51:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/366018#M275162</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-06-11T23:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS System Options, Is MAX Too Much??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/366019#M275163</link>
      <description>&lt;P&gt;Here are two schemas taken from the book&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.amazon.com/High-Performance-SAS-Coding-Christian-Graffeuille/dp/1512397490" target="_blank" rel="nofollow noopener noreferrer"&gt;High Performance SAS Coding&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that summarise how&amp;nbsp;the memory settings are nested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/9318i1523A65C1DA90CAE/image-size/original?v=1.0&amp;amp;px=-1" alt="aaa1.PNG" title="aaa1.PNG" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/9319i348EF6325D9E3ECD/image-size/original?v=1.0&amp;amp;px=-1" alt="aaa1.PNG" title="aaa1.PNG" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 00:15:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-System-Options-Is-MAX-Too-Much/m-p/366019#M275163</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-06-12T00:15:08Z</dc:date>
    </item>
  </channel>
</rss>

