<?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: Comparing 2 SAS servers - program runs 4 hours longer on one server - Block Input Operations ? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/487964#M13951</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; Looks like the OP is using ODS to create a CVS using PROC PRINT. In my experience ODS is a resource hog when writing out large files. I bet a simple PROC EXPORT using DBMS = CSV would be hugely faster.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Aug 2018 23:21:51 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2018-08-17T23:21:51Z</dc:date>
    <item>
      <title>Comparing 2 SAS servers - program runs 4 hours longer on one server - Block Input Operations ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/486373#M13893</link>
      <description>&lt;P&gt;Have one physical server and one virtual server.&amp;nbsp; Programs run on the virtual server seem to take longer.&amp;nbsp; I have enabled performance logging.&amp;nbsp; One thing I have noticed is that on the slower server, the value of Block Input Operations is always 0 - this is not the case on the faster physical server.&amp;nbsp; The CPU clock speed is faster on the virtual server (2.3 vs 2.0ghz)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;faster physical server:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: There were 87651 observations read from the data set 
NOTE: PROCEDURE PRINT used (Total process time):
      real time           34:12:29.27
      user cpu time       34:11:31.35
      system cpu time     51.16 seconds
      memory              59511.96k
      OS Memory           72964.00k
      Timestamp           08/10/2018 10:50:41 PM
      Step Count                        2  Switch Count  0
      Page Faults                       95
      Page Reclaims                     29512917
      Page Swaps                        0
      Voluntary Context Switches        2278
      Involuntary Context Switches      56795
      Block Input Operations            418712
      Block Output Operations           1298184&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;      69         ods csv close;
NOTE: The SAS System used:
      real time           35:07:26.82
      user cpu time       35:06:05.80
      system cpu time     1:05.83
      memory              66841.34k
      OS Memory           72964.00k
      Timestamp           08/10/2018 10:50:41 PM
      Step Count                        2  Switch Count  20
      Page Faults                       229
      Page Reclaims                     29610854
      Page Swaps                        0
      Voluntary Context Switches        47504
      Involuntary Context Switches      60589
      Block Input Operations            923088
      Block Output Operations           1669976&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;slower virtual server:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: There were 87651 observations read from the data set 
NOTE: PROCEDURE PRINT used (Total process time):
      real time           37:10:44.68
      user cpu time       37:09:48.54
      system cpu time     52.78 seconds
      memory              61736.18k
      OS Memory           77348.00k
      Timestamp           08/11/2018 01:42:20 AM
      Step Count                        2  Switch Count  0
      Page Faults                       0
      Page Reclaims                     15173
      Page Swaps                        0
      Voluntary Context Switches        2519
      Involuntary Context Switches      41989
      Block Input Operations            0
      Block Output Operations           1298184&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;67         ods csv close;
NOTE: The SAS System used:
      real time           37:59:02.81
      user cpu time       37:57:21.07
      system cpu time     1:38.17
      memory              70975.18k
      OS Memory           77348.00k
      Timestamp           08/11/2018 01:42:20 AM
      Step Count                        2  Switch Count  20
      Page Faults                       0
      Page Reclaims                     23818
      Page Swaps                        0
      Voluntary Context Switches        2749
      Involuntary Context Switches      48514
      Block Input Operations            0
      Block Output Operations           1639480&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;any ideas why its so much slower on the virtual server?&amp;nbsp; Does it have anything to do with Block Input Operations?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 15:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/486373#M13893</guid>
      <dc:creator>gothaggis</dc:creator>
      <dc:date>2018-08-13T15:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 SAS servers - program runs 4 hours longer on one server - Block Input Operations ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/486429#M13895</link>
      <description>&lt;P&gt;Times don't look that different to me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;34/35 vs 37&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 18:10:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/486429#M13895</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-08-13T18:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 SAS servers - program runs 4 hours longer on one server - Block Input Operations ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/486431#M13896</link>
      <description>&lt;P&gt;those are hours - so 34/35 hours vs 37 hours.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 18:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/486431#M13896</guid>
      <dc:creator>gothaggis</dc:creator>
      <dc:date>2018-08-13T18:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 SAS servers - program runs 4 hours longer on one server - Block Input Operations ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/486471#M13898</link>
      <description>&lt;P&gt;Looks like your virtual servers are using more CPU time - nearly 10% more. Is this true of all SAS jobs? Due you have access to SAS Environment Manager? This may give you a better understanding of the differences.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 20:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/486471#M13898</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-08-13T20:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 SAS servers - program runs 4 hours longer on one server - Block Input Operations ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/486493#M13899</link>
      <description>&lt;P style="margin: 0in 0in 12pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;If the two underlying systems are the same, (same chipset; same number of cores/RAM; same connections to storage; same storage) this it is probably just the overhead of &amp;nbsp;virtualization – which can be up to 15%.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 12pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;It looks like there is a 10% difference in the times you have listed (2053 minutes compared to 2280 minutes) in the PROC PRINT statements.&amp;nbsp; So, it looks to be just the overhead of virtualization.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 12pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Cheers,&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 12pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Margaret&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 21:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/486493#M13899</guid>
      <dc:creator>MargaretC</dc:creator>
      <dc:date>2018-08-13T21:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 SAS servers - program runs 4 hours longer on one server - Block Input Operations ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/487350#M13919</link>
      <description>&lt;P&gt;You have a proc print to csv of a dataset with less than 100000 observations, and it runs more than 30 hours (and&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;eats&lt;/EM&gt;&lt;/STRONG&gt; more than 30 hours of CPU time)? What kind of dataset is that?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 11:32:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/487350#M13919</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-16T11:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 SAS servers - program runs 4 hours longer on one server - Block Input Operations ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/487964#M13951</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; Looks like the OP is using ODS to create a CVS using PROC PRINT. In my experience ODS is a resource hog when writing out large files. I bet a simple PROC EXPORT using DBMS = CSV would be hugely faster.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 23:21:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/487964#M13951</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-08-17T23:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 SAS servers - program runs 4 hours longer on one server - Block Input Operations ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/487966#M13952</link>
      <description>&lt;P&gt;Faster than PROC EXPORT is to just use a data step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file 'myfile.csv' dsd ;
  set have ;
  put (_all_) (+0);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can even have the data step write the header row as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10092"&gt;@Data_null_&lt;/a&gt;&amp;nbsp;has posted multiple places including:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Output-to-delimited-format/m-p/292822#M60848" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Output-to-delimited-format/m-p/292822#M60848&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a link to macro that uses that method:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/sasutils/macros/blob/master/csv_vnext.sas" target="_blank"&gt;https://github.com/sasutils/macros/blob/master/csv_vnext.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 23:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/487966#M13952</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-08-17T23:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 SAS servers - program runs 4 hours longer on one server - Block Input Operations ?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/488107#M13959</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; Looks like the OP is using ODS to create a CVS using PROC PRINT. In my experience ODS is a resource hog when writing out large files. I bet a simple PROC EXPORT using DBMS = CSV would be hugely faster.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In German-speaking countries, we call this "carrying the church around the cross". Using ODS which creates lots of formatting, just to completely lose that in the csv is - ahhh&amp;nbsp;- well, I'm in a civil mood today, so I won't write it here.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/175952"&gt;@gothaggis&lt;/a&gt;&amp;nbsp;if this is actually the case and you just wanted to avoid the 10 minutes of work it takes to write the data step (or even simpler: the proc export) for a csv export, let this be an object lesson in "do not take shortcuts".&lt;/P&gt;
&lt;P&gt;And have a look at Maxim 14.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 06:38:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Comparing-2-SAS-servers-program-runs-4-hours-longer-on-one/m-p/488107#M13959</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-20T06:38:45Z</dc:date>
    </item>
  </channel>
</rss>

