<?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: Running multiple programs in batch mode and computer resources in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/611239#M178112</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;If I submit a program in batch mode that takes a week to finish and, during that week I submit another program in batch mode, will it immediately execute that program or will it wait until the 1st one finishes?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;It will immediately execute as a separate process.&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;how does running two progs in parallel impact the computer's resources&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Depends. On your 16-core CPU the first program is probably only using one or two CPUs, so starting another batch program should not affect it negatively.&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;If the programs are I/O intensive, would they compete?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;They may. In which case you should look at the disk usage under the "Performance" tab in the task manager, to see what disks are heavily used, and under "Processes" to see which programs are disk heavy.&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Would adding a second drive and directing the output of the second program to the second drive reduce the I/O competition?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;It might, depends on how hard the I/O competition is.&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Would I be worse off running both in parallel rather than in series?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I my experience, rarely. Competition for disk and CPU might make both jobs run slower than if they had the computer to themselves, but total elapsed times for the two jobs will probably be lower. If you are short on memory there may be a problem, though, as starting too many processes will cause the computer to swap more working memory to and from disks, which can bring the machine to an almost complete standstill.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 09:36:01 GMT</pubDate>
    <dc:creator>s_lassen</dc:creator>
    <dc:date>2019-12-12T09:36:01Z</dc:date>
    <item>
      <title>Running multiple programs in batch mode and computer resources</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/611206#M178094</link>
      <description>&lt;P&gt;If I submit a program in batch mode that takes a week to finish and, during that week I submit another program in batch mode, will it immediately execute that program or will it wait until the 1st one finishes?&amp;nbsp; If the former, how does running two progs in parallel impact the computer's resources.&amp;nbsp; In particular, a 16-core CPU that is only using 4% of its capacity on the first program.&amp;nbsp; If the programs are I/O intensive, would they compete?&amp;nbsp; Would adding a second drive and directing the output of the second program to the second drive reduce the I/O competition?&amp;nbsp; Would I be worse off running both in parallel rather than in series?&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 05:00:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/611206#M178094</guid>
      <dc:creator>texasmfp</dc:creator>
      <dc:date>2019-12-12T05:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Running multiple programs in batch mode and computer resources</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/611239#M178112</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;If I submit a program in batch mode that takes a week to finish and, during that week I submit another program in batch mode, will it immediately execute that program or will it wait until the 1st one finishes?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;It will immediately execute as a separate process.&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;how does running two progs in parallel impact the computer's resources&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Depends. On your 16-core CPU the first program is probably only using one or two CPUs, so starting another batch program should not affect it negatively.&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;If the programs are I/O intensive, would they compete?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;They may. In which case you should look at the disk usage under the "Performance" tab in the task manager, to see what disks are heavily used, and under "Processes" to see which programs are disk heavy.&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Would adding a second drive and directing the output of the second program to the second drive reduce the I/O competition?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;It might, depends on how hard the I/O competition is.&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Would I be worse off running both in parallel rather than in series?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I my experience, rarely. Competition for disk and CPU might make both jobs run slower than if they had the computer to themselves, but total elapsed times for the two jobs will probably be lower. If you are short on memory there may be a problem, though, as starting too many processes will cause the computer to swap more working memory to and from disks, which can bring the machine to an almost complete standstill.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 09:36:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/611239#M178112</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2019-12-12T09:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Running multiple programs in batch mode and computer resources</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/611272#M178130</link>
      <description>&lt;P&gt;There are also the typical issues to consider (not part of your original question).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is one program tying up a data set that the other program requires?&amp;nbsp; (Sorting a data set usually ties it up.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does an output of one program become an input to another program?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 12:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/611272#M178130</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-12-12T12:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Running multiple programs in batch mode and computer resources</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/611300#M178150</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/296215"&gt;@texasmfp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;In particular, a 16-core CPU that is only using 4% of its capacity on the first program.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which means you already have a problem. 4% is about half a core, very little in light of many SAS procedures being multi-threaded. This points to a lot of I/O waits or delays caused by network transfers (are you reading from a remote DBMS?).&lt;/P&gt;
&lt;P&gt;You need to inspect your jobs in this regard.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 13:54:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/611300#M178150</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-12T13:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Running multiple programs in batch mode and computer resources</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/612580#M178786</link>
      <description>&lt;P&gt;Yes, some definite degradation in run time when running multiple batches, but that is more than made up for in total overall time reduction compared to running in series.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CPU usage was less than expected.&amp;nbsp; For example, one prog used 3-4% of CPU.&amp;nbsp; However, running 26 progs in parallel only used 50-60% of CPU.&amp;nbsp; (Although I did notice that CORE 14 was bumping along at 90-100%; slightly less pure silicone I guess.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, with 26 progs running, initial sampling showed the run time was only double that of running a single instance.&amp;nbsp; Suggesting lots of I/O headroom.&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 06:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/612580#M178786</guid>
      <dc:creator>texasmfp</dc:creator>
      <dc:date>2019-12-18T06:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Running multiple programs in batch mode and computer resources</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/612597#M178796</link>
      <description>&lt;P&gt;You should still take a look at waitstates, I think that you should get a higher CPU consumption form a process.&lt;/P&gt;
&lt;P&gt;We run a 2-core POWER8 AIX, and a single SAS process routinely gets over 50% CPU (more than one core) with a rather moderate I/O throughput.&lt;/P&gt;
&lt;P&gt;Your CPU load of less than a full core lets me suspect lots of wait states.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 09:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/612597#M178796</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-18T09:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Running multiple programs in batch mode and computer resources</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/612901#M178929</link>
      <description>Thanks Kurt.  How would I go about looking at "waitstates"?</description>
      <pubDate>Thu, 19 Dec 2019 02:32:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/612901#M178929</guid>
      <dc:creator>texasmfp</dc:creator>
      <dc:date>2019-12-19T02:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Running multiple programs in batch mode and computer resources</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/612936#M178943</link>
      <description>&lt;P&gt;I use topas (out-of-the-box system utility) on my AIX server to display important server performance information, the display looks like this:&lt;/P&gt;
&lt;PRE&gt;Topas Monitor for host:xxxxxxxx                 EVENTS/QUEUES    FILE/TTY       
Thu Dec 19 07:27:34 2019   Interval:2           Cswitch    1012  Readch     4234
                                                Syscall    4097  Writech   11039
Kernel    2.54  |#                           |  Reads        17  Rawin         0
User      1.84  |#                           |  Writes      752  Ttyout      354
Wait      0.28  |#                           |  Forks         0  Igets         0
Idle     95.34  |########################### |  Execs         0  Namei       173
Physc =   0.08                  %Entc =   8.42  Runqueue      0  Dirblk        0
                                                Waitqueue   0.0                 
Network    BPS  I-Pkts  O-Pkts    B-In   B-Out                   MEMORY         
Total     176K   187.5   189.0   86.4K   89.7K  PAGING           Real,MB   81920
                                                Faults        0  % Comp     25  
Disk    Busy%      BPS     TPS  B-Read  B-Writ  Steals        0  % Noncomp  13  
hdisk101  2.5    60.0K   15.00       0   60.0K  PgspIn        0  % Client   13  
hdisk104  2.5    60.0K   15.00       0   60.0K  PgspOut       0                 
hdisk1    0.0        0       0       0       0  PageIn        0  PAGING SPACE   
hdisk0    0.0        0       0       0       0  PageOut      15  Size,MB   98688
hdisk100  0.0        0       0       0       0  Sios         15  % Used      0  
hdisk106  0.0        0       0       0       0                   % Free    100  
hdisk103  0.0        0       0       0       0  AME             
hdisk105  0.0        0       0       0       0  TMEM       32.00GWPAR Activ    0
cd0       0.0        0       0       0       0  CMEM       16.00MWPAR Total    0
                                                EF[T/A]   2.5/2.5Press: "h"-help
FileSystem          BPS    TPS  B-Read  B-Writ  CI:    0CO:    0        "q"-quit
Total             5.54K  742.0   1.20K   4.34K

Name           PID  CPU%  PgSp Owner
reaffin      524308  2.0  100K root            
java       48234514  1.3 1.12G sas             
topas_nm    8192046  0.5 7.44M root            
java       27918426  0.5  212M sas             
nfssync_    2293778  0.3  108K root            
java       14876674  0.3  209M sas             
topas      19529824  0.2 5.27M root            
dtterm     26148896  0.2 1.58M root            
&lt;/PRE&gt;
&lt;P&gt;You can see the line for the waitstates; at the moment I took this snapshot, the server was quite idle.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 06:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-multiple-programs-in-batch-mode-and-computer-resources/m-p/612936#M178943</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-19T06:38:21Z</dc:date>
    </item>
  </channel>
</rss>

