<?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 Code execution is not using the CAS worker nodes in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Code-execution-is-not-using-the-CAS-worker-nodes/m-p/331569#M5138</link>
    <description>&lt;P&gt;With 64M observations I am not surprised this is taking a long time with this setup - it appears that your CAS server was started in SMP mode...meaning that it all runs on the same machine with no worker nodes. &amp;nbsp;How was your CAS server started?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just as some back-info here for those that might not be aware...the CAS &lt;STRONG&gt;server&amp;nbsp;&lt;/STRONG&gt;establishes the distributed in-memory execution environment that is &lt;STRONG&gt;available&lt;/STRONG&gt; to you - you start a CAS &lt;STRONG&gt;session&lt;/STRONG&gt; as your own isolated&amp;nbsp;process on that server to govern execution of your own jobs. &amp;nbsp;The session environment can only be a subset of how&amp;nbsp;the server environment is established.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So please provide info on how your CAS server is started.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2017 15:56:47 GMT</pubDate>
    <dc:creator>BrettWujek</dc:creator>
    <dc:date>2017-02-10T15:56:47Z</dc:date>
    <item>
      <title>SAS Code execution is not using the CAS worker nodes</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Code-execution-is-not-using-the-CAS-worker-nodes/m-p/331227#M5137</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to execute the below SAS code in SAS Viya CAS environment and it took a long time as it is not using the CAS worker nodes. The log shows the session is using 0 worker node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// code&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;cas MySession sessopts=(caslib=casuser);&lt;BR /&gt;libname mycas cas caslib=casuser;&lt;/P&gt;
&lt;P&gt;proc casutil;&lt;BR /&gt;load data=sashelp.cars replace;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;data mycas.bigcars;&lt;BR /&gt;set mycas.cars;&lt;BR /&gt;do i=1 to 150000;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;data mycas.bigcars_score;&lt;BR /&gt;set mycas.bigcars;&lt;BR /&gt;length myscore 8;&lt;BR /&gt;myscore=0.3*Invoice/(MSRP-Invoice)&lt;BR /&gt;+0.5*(EngineSize+Horsepower)/Weight + 0.2*(MPG_City+MPG_Highway);&lt;BR /&gt;Thread=_threadid_;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//log info&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;56&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;57&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;58 cas MySession sessopts=(caslib=casuser);&lt;/DIV&gt;
&lt;DIV id="sasLogNote1_1486657758521" class="sasNote"&gt;NOTE: The session MYSESSION connected successfully to Cloud Analytic Services rpclab03045.exnet.sas.com using port 5570. The UUID&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;is cd58cd44-5125-0445-b613-019d12ffb677. The user is viyauser and the active caslib is CASUSER(viyauser).&lt;/DIV&gt;
&lt;DIV id="sasLogNote2_1486657758521" class="sasNote"&gt;NOTE: The SAS option SESSREF was updated with the value MYSESSION.&lt;/DIV&gt;
&lt;DIV id="sasLogNote3_1486657758521" class="sasNote"&gt;NOTE: The SAS macro _SESSREF_ was updated with the value MYSESSION.&lt;/DIV&gt;
&lt;DIV id="sasLogNote4_1486657758521" class="sasNote"&gt;&lt;STRONG&gt;NOTE: The session is using 0 workers.&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV id="sasLogNote5_1486657758521" class="sasNote"&gt;NOTE: 'CASUSER(viyauser)' is now the active caslib.&lt;/DIV&gt;
&lt;DIV id="sasLogNote6_1486657758521" class="sasNote"&gt;NOTE: The CAS statement request to update one or more session options for session MYSESSION completed.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;59 libname mycas cas caslib=casuser;&lt;/DIV&gt;
&lt;DIV id="sasLogNote7_1486657758521" class="sasNote"&gt;NOTE: Libref MYCAS was successfully assigned as follows:&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Engine: CAS&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Physical Name: cd58cd44-5125-0445-b613-019d12ffb677&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;60&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;61 proc casutil;&lt;/DIV&gt;
&lt;DIV id="sasLogNote8_1486657758521" class="sasNote"&gt;NOTE: The UUID 'cd58cd44-5125-0445-b613-019d12ffb677' is connected using session MYSESSION.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;62&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;62 ! load data=sashelp.cars replace;&lt;/DIV&gt;
&lt;DIV id="sasLogNote9_1486657758521" class="sasNote"&gt;NOTE: SASHELP.CARS was successfully added to the "CASUSER(viyauser)" caslib as "CARS".&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;63 run;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;64&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="sasLogNote10_1486657758521" class="sasNote"&gt;NOTE: PROCEDURE CASUTIL used (Total process time):&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;cpu time 0.00 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;65 data mycas.bigcars;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;66 set mycas.cars;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;67 do i=1 to 150000;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;68 output;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;69 end;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;70 run;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="sasLogNote11_1486657758521" class="sasNote"&gt;NOTE: Running DATA step in Cloud Analytic Services.&lt;/DIV&gt;
&lt;DIV id="sasLogNote12_1486657758521" class="sasNote"&gt;NOTE: The DATA step will run in multiple threads.&lt;/DIV&gt;
&lt;DIV id="sasLogNote13_1486657758521" class="sasNote"&gt;NOTE: There were 428 observations read from the table CARS in caslib CASUSER(viyauser).&lt;/DIV&gt;
&lt;DIV id="sasLogNote14_1486657758521" class="sasNote"&gt;NOTE: The table bigcars in caslib CASUSER(viyauser) has 64200000 observations and 16 variables.&lt;/DIV&gt;
&lt;DIV id="sasLogNote15_1486657758521" class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;real time 45.17 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;cpu time 0.01 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;71&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;72 data mycas.bigcars_score;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;73 set mycas.bigcars;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;74 length myscore 8;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;75 myscore=0.3*Invoice/(MSRP-Invoice)&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;76 +0.5*(EngineSize+Horsepower)/Weight + 0.2*(MPG_City+MPG_Highway);&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;77 Thread=_threadid_;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;78 run;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="sasLogNote16_1486657758521" class="sasNote"&gt;NOTE: Running DATA step in Cloud Analytic Services.&lt;/DIV&gt;
&lt;DIV id="sasLogNote17_1486657758521" class="sasNote"&gt;NOTE: The DATA step will run in multiple threads.&lt;/DIV&gt;
&lt;DIV id="sasLogNote18_1486657758521" class="sasNote"&gt;NOTE: There were 64200000 observations read from the table BIGCARS in caslib CASUSER(viyauser).&lt;/DIV&gt;
&lt;DIV id="sasLogNote19_1486657758521" class="sasNote"&gt;NOTE: The table bigcars_score in caslib CASUSER(viyauser) has 64200000 observations and 18 variables.&lt;/DIV&gt;
&lt;DIV id="sasLogNote20_1486657758521" class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;real time 23.69 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;cpu time 0.00 seconds&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Feb 2017 16:33:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-Code-execution-is-not-using-the-CAS-worker-nodes/m-p/331227#M5137</guid>
      <dc:creator>sivaram_veerabagu</dc:creator>
      <dc:date>2017-02-09T16:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code execution is not using the CAS worker nodes</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Code-execution-is-not-using-the-CAS-worker-nodes/m-p/331569#M5138</link>
      <description>&lt;P&gt;With 64M observations I am not surprised this is taking a long time with this setup - it appears that your CAS server was started in SMP mode...meaning that it all runs on the same machine with no worker nodes. &amp;nbsp;How was your CAS server started?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just as some back-info here for those that might not be aware...the CAS &lt;STRONG&gt;server&amp;nbsp;&lt;/STRONG&gt;establishes the distributed in-memory execution environment that is &lt;STRONG&gt;available&lt;/STRONG&gt; to you - you start a CAS &lt;STRONG&gt;session&lt;/STRONG&gt; as your own isolated&amp;nbsp;process on that server to govern execution of your own jobs. &amp;nbsp;The session environment can only be a subset of how&amp;nbsp;the server environment is established.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So please provide info on how your CAS server is started.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 15:56:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-Code-execution-is-not-using-the-CAS-worker-nodes/m-p/331569#M5138</guid>
      <dc:creator>BrettWujek</dc:creator>
      <dc:date>2017-02-10T15:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code execution is not using the CAS worker nodes</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Code-execution-is-not-using-the-CAS-worker-nodes/m-p/332083#M5139</link>
      <description>&lt;P&gt;I am using SAS Viya&amp;nbsp;Early Preview program environment and I am not aware of how the CAS server is started.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 07:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-Code-execution-is-not-using-the-CAS-worker-nodes/m-p/332083#M5139</guid>
      <dc:creator>sivaram_veerabagu</dc:creator>
      <dc:date>2017-02-13T07:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code execution is not using the CAS worker nodes</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Code-execution-is-not-using-the-CAS-worker-nodes/m-p/332184#M5140</link>
      <description>&lt;P&gt;Ok - Yes our Early Preview program is set up to provide you with an SMP (symmetric multiprocessing) server meaning everything runs on a single machine (still multi-threaded though). &amp;nbsp;For larger problems like working with a 64M observation data set you would definitely want to be using an MPP (massively parallel processing) server with worker nodes. &amp;nbsp;You don't have control over that in the EP program. &amp;nbsp;If you would like to explore this further I can see if someone can work more closely with you on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an example, I just ran your same code on a MPP server with 4 worker nodes. &amp;nbsp;The times are much better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;197 libname mycas cas caslib=casuserhdfs;&lt;BR /&gt;NOTE: Libref MYCAS was successfully assigned as follows:&lt;BR /&gt; Engine: CAS&lt;BR /&gt; Physical Name: cfc4294c-f22f-094b-9ad5-36f9b0950c66&lt;BR /&gt;198 proc casutil;&lt;BR /&gt;NOTE: The UUID 'cfc4294c-f22f-094b-9ad5-36f9b0950c66' is connected using session MYSESS.&lt;BR /&gt;199 load data=sashelp.cars replace;&lt;BR /&gt;NOTE: SASHELP.CARS was successfully added to the "CASUSERHDFS(brwuje)" caslib as "CARS".&lt;BR /&gt;200 run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;NOTE: PROCEDURE CASUTIL used (Total process time):&lt;BR /&gt; real time 0.15 seconds&lt;BR /&gt; cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;201 data mycas.bigcars;&lt;BR /&gt;202 set mycas.cars;&lt;BR /&gt;203 do i=1 to 150000;&lt;BR /&gt;204 output;&lt;BR /&gt;205 end;&lt;BR /&gt;206 run;&lt;/P&gt;
&lt;P&gt;NOTE: Running DATA step in Cloud Analytic Services.&lt;BR /&gt;NOTE: The DATA step will run in multiple threads.&lt;BR /&gt;NOTE: There were 428 observations read from the table CARS in caslib CASUSERHDFS(brwuje).&lt;BR /&gt;NOTE: The table bigcars in caslib CASUSERHDFS(brwuje) has 64200000 observations and 16&lt;BR /&gt; variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt; &lt;STRONG&gt;real time 15.67 seconds&lt;/STRONG&gt;&lt;BR /&gt; cpu time 0.12 seconds&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;207 data mycas.bigcars_score;&lt;BR /&gt;208 set mycas.bigcars;&lt;BR /&gt;209 length myscore 8;&lt;BR /&gt;210 myscore=0.3*Invoice/(MSRP-Invoice)&lt;BR /&gt;211 +0.5*(EngineSize+Horsepower)/Weight + 0.2*(MPG_City+MPG_Highway);&lt;BR /&gt;212 Thread=_threadid_;&lt;BR /&gt;213 run;&lt;/P&gt;
&lt;P&gt;NOTE: Running DATA step in Cloud Analytic Services.&lt;BR /&gt;NOTE: The DATA step will run in multiple threads.&lt;BR /&gt;NOTE: There were 64200000 observations read from the table BIGCARS in caslib&lt;BR /&gt; CASUSERHDFS(brwuje).&lt;BR /&gt;NOTE: The table bigcars_score in caslib CASUSERHDFS(brwuje) has 64200000 observations and 18&lt;BR /&gt; variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt; &lt;STRONG&gt;real time 10.26 seconds&lt;/STRONG&gt;&lt;BR /&gt; cpu time 0.03 seconds&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 14:25:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-Code-execution-is-not-using-the-CAS-worker-nodes/m-p/332184#M5140</guid>
      <dc:creator>BrettWujek</dc:creator>
      <dc:date>2017-02-13T14:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code execution is not using the CAS worker nodes</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Code-execution-is-not-using-the-CAS-worker-nodes/m-p/332494#M5141</link>
      <description>&lt;P&gt;Thanks for your explanation and the logs from MPP server.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 07:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-Code-execution-is-not-using-the-CAS-worker-nodes/m-p/332494#M5141</guid>
      <dc:creator>sivaram_veerabagu</dc:creator>
      <dc:date>2017-02-14T07:20:41Z</dc:date>
    </item>
  </channel>
</rss>

