Presentation is loading. Please wait.

Presentation is loading. Please wait.

L11C8C9ops400.ppt1 SUBSYSTEMS and PERFORMANCE Chapter 8.

Similar presentations


Presentation on theme: "L11C8C9ops400.ppt1 SUBSYSTEMS and PERFORMANCE Chapter 8."— Presentation transcript:

1 L11C8C9ops400.ppt1 SUBSYSTEMS and PERFORMANCE Chapter 8

2 2 SUBSYSTEM CONFIGURATION QBASE QSPL QSYSWRK QCTL - system console QINTER QBATCH QSPL QCMN QSYSWRK + + + + + QBASEQCTL QCTLSBSD

3 3 No restriction on the number of subsystems allowed to run simultaneously. A SUBSYTEM is an operating environment with its own job queue partitioned from the main system Running with multiple subsystems provides for better control and performance of the whole system the multiple subsystem environment is activated by changing the system value QCTLSBSD to QCTL

4 4 Two major categories IBM supplied QBASE QCTL QBATCH QINTER QSPL QCMN QSYSWRK USER supplied Application dependent. Some supplied by “off the shelf” Software houses Other created in house as needed

5 5 IBM supplied QBASE - Default subsystem can run all jobs when the system is first installed - inefficient for later use QCTL - Starts and ends other subsystems. System console MUST be assigned to it A System is said to be in RESTRICTED STATE when QCTL is the only SBS active. Requirement for RCLSTG function. QBATCH - arranges and manages batch entries, job priorities and the running of active jobs (max 2 or 3! recommended) QINTER- has workstation entries allowing interactive jobs to run simultaneously in this subsystem QSPL - has spooled job queue entries for spooled jobs. E.g. reader and writer jobs QCMN - communication entries for all communication jobs to run in this subsystem QSYSWRK - systems functions

6 6 Common USER supplied / created SUBSYSTEMS Common to see QPGMR - for programmers environment QINTER2 - special interactive jobs QBATCH2 - additional batch stream QBATCH3 - additional batch streams ETC.

7 7 JOB entry types Subsystem QINTER Workstation entries Subsystem ???? Entries 3rd party Supplied Subsystem QBATCH Job Queue entries Subsystem QSPL Job Queue / spooler entries Subsystem QCMN Communication entries USER SUPPLIED Subsystem ????? entries

8 8 JOB TYPES Batch typically a series of programs to be executed consecutively Back up, Month end SBMJOB CMD(CALL PGM(ARPOST) PARM(DB400A01)) Interactive on line real time processing - a dialogue between users and programs CALL PGM(ARPOST) PARM(DB400A01)) Spooled can be input or output - retrieved or send to queues WRKSPLF Communication - started by a request from a remote system to initialize a program and allocate resources

9 9 SUBSYSTEM COMMANDS CHGSYSVAL SYSVAL(QCTLSBSD) VALUE(QCTL) CRTSBSD CRTSBSD SBSD(ANDRE) POOLS((3 2000 10)) MAXJOBS(3) TEXT('dummy sample') STRSBS SBSD(QBATCH2) ENDSBS SBS(QBATCH2) OPTION(*CNTRLD) DSPSBSD, WRKSBS, JOB Commands CALL -- starts a program and optionally pass parameters to it SBMJOB - submit a job to another subsystem (most common to batch) to be executed in sequential order or by priority WRKACTJOB - displays the current status of all active jobs currently running in the system (across all subsystems)

10 10 The JOB Description - *JOBD Contains a set of parameters the value of which defines how and where a job is to be processed some of these are *JOBQ which job queue is to be used *OUTQ - where the output is to be directed *JOBPTY - at what priority is this job to run *INLLIBL - What libraries are to be used in the search path IBM ships the AS/400 with default job descriptions for batch, interactive and spooled jobs

11 11 SYSTEM / STORAGE POOLS Defined Max Allocated Pool -Paging Option-- Pool Size (M) Active Size (M) ID Defined Current *MACHINE 112.27 +++++ 112.27 1 *FIXED *FIXED *BASE 485.85 43 485.85 2 *CALC *CALC *INTERACT 415.63 62 415.63 4 *FIXED *FIXED *SPOOL 10.23 7 10.23 3 USRDFN USRDFN *SHRPOOL1.00 0 *FIXED *SHRPOOL2.00 0 WRKSHRPOOL

12 12 *MACHINE - hardware dependent - different for each site reserved for operating system usage *BASE - Main storage can optionally be shared by all *INTERACT - interactive jobs (dedicated) *SPOOL - for spooled jobs (dedicated) *SHRPOOL1 - as designated *SHRPOOL2 QBASE will use *BASE and *INTERACT by default QSPL will use *BASE and *SPOOL by default

13 13 SYSTEM POOLS Have a predefined size and activity level (max jobs) To much activity in a specific pool leads too trashing and reduced performance *BASE pool is used for excess memory demand for jobs where not enough memory is available in the assigned pool. Subsystem pool numbers are used for routing purposes (primary use / secondary use)

14 14 POOLS Subsystem description: QBASE Status: INACTIVE Pool Storage Activity ID Size (K) Level 1 *BASE 2 *INTERACT System Pool Reserved Max Pool Size (M) Size (M) Active Pool Subsystem Library 1 106.48 63.57 +++++ *MACHINE 2 510.29.29 43 *BASE 3 10.23.00 7 *SPOOL 4 396.98.00 62 *INTERACT

15 15 Work with Subsystems System: ODIN Type options, press Enter. 4=End subsystem 5=Display subsystem description 8=Work with subsystem jobs Total -----------Subsystem Pools------------ Opt Subsystem Storage (M) 1 2 3 4 5 6 7 8 9 10 __ QDNNOTIFY.00 2 2 __ QINTER.00 2 4 __ QSERVER.00 2 __ QSPL.00 2 3 Cross relationship between pools SYSTEM POOL referenced

16 16 End Subsystem ( ENDSBS ) Type choices, press Enter. Subsystem........... QCMN__ Name, *ALL How to end........... *CNTRLD *CNTRLD, *IMMED Delay time, if *CNTRLD..... *NOLIMIT Seconds, *NOLIMIT Additional Parameters End subsystem option...... *DFT *DFT, *NOJOBLOG, *CHGPTY... + for more values ONLY to be done when no jobs are running in that subsystems *NOLIMIT allows jobs to finish naturally Should always end CONTROLLED

17 17 Display System Value System value..... : QPFRADJ Description..... : Performance adjustment Performance adjustment... : 2 0=No adjustment 1=Adjustment at IPL 2=Adjustment at IPL and automatic adjustment done by system 3=Automatic adjustment done by system SYSTEM PERFORMANCE performance adjustment control Use HELP on the DSPSYSVAL QPFRADJ screen to get a complete explanation

18 18 Monitoring and adjusting system performance DASD - stay below 80% - buy Memory - reallocate pool storage - buy CPU - exceeds threshold - trashing - buy time slices - max cpu time given per serving run priorities 1 - 99 highest = 1 lowest = 99 interactive normally @ 20 batch jobs normally @ 50 BALANCE the SYTEM based on DEMAND

19 19 JOB STATES ACTIVE uses the processor occupies storage within the activity level of the storage pool WAITING In wait for I/O activity (some action) INELIGIBLE Activity level exceeded (no space/time available to run)

20 20 Monitoring System Status WRKSYSSTS Especially keep an eye on disk usage When disk usage > 85% serious response time problems occur What to do when this happens? Get rid of old spooled files, joblogs, unused objects, archive older files, etc. Compress and reorganize physical files to reclaim delete records space. Reclaim storage (combine with an IPL)

21 21 MEASURING system performance Work with System Status ODIN 11/19/00 20:53:30 % CPU used....... : 10.0 Auxiliary storage: Elapsed time...... : 01:24:31 System ASP...... : 68.71 G Jobs in system..... : 17999 % system ASP used.. : 28.2158 % addresses used: Total........ : 68.71 G Permanent...... :.007 Current unprotect used : 6088 M Temporary...... :.021 Maximum unprotect.. : 6091 M Type changes (if allowed), press Enter. System Pool Reserved Max -----DB----- ---Non-DB--- Pool Size (M) Size (M) Active Fault Pages Fault Pages 1 116.09 63.55 +++++.0.0 2.5 2.7 2 502.91.29 43.5.7 2.8 7.8 3 10.23.00 7.0.0.0.0 4 394.75.00 62.1.4 2.3 5.0

22 22 Work with System Status ODIN 11/29/00 22:05:47 % CPU used....... : 7.0 Auxiliary storage: Elapsed time...... : 00:00:01 System ASP...... : 68.71 G Jobs in system..... : 19168 % system ASP used.. : 24.2497 % addresses used: Total........ : 68.71 G Permanent...... :.007 Current unprotect used : 2676 M Temporary...... :.024 Maximum unprotect.. : 2697 M Type changes (if allowed), press Enter. System Pool Reserved Max -----DB----- ---Non-DB--- Pool Size (M) Size (M) Active Fault Pages Fault Pages 1 113.96 63.50 +++++.0.0.8.8 2 468.27 6.39 88.0.0.0.0 3 10.23.00 8.0.0.0.0 4 431.51.00 62.0.0 5.3 7.0 Monitoring system performance WRKSYSSTS

23 23 Display System Value System value..... : QMCHPOOL Description..... : Machine storage pool size Pool size in K bytes.... : 112048 256-2147483647

24 24 WRKACTJOB Especially keep an eye on CPU %%%% When CPU usage = ++++ serious response time problems might occur based on duration of status What to do when this happens? Verify individual usage, make sure no one is in an infinite loop THEN 1st Send a message to heavy users 2nd Change RUN priorities 3rd Put lesser users on HOLD then KILL repeat offenders. Monitor active users

25 25 Work with Active Jobs WRKACTJOB ODIN 04/03/01 15:39:20 CPU %: 16.7 Elapsed time: 00:01:10 Active jobs: 218 Type options, press Enter. 2=Change 3=Hold 4=End 5=Work with 6=Release 7=Display message 8=Work with spooled files 13=Disconnect... Opt Subsystem/Job User Type CPU % Function Status __ QCMN QSYS SBS.0 DEQW __ QCTL QSYS SBS.0 DEQW __ QSYSSCD QPGMR BCH.0 PGM-QEZSCNEP EVTW __ QINTER QSYS SBS.0 DEQW __ QPADEV000M DB344A16 INT.0 CMD-STRSEU DSPW __ QPADEV001C CE234B14 INT.0 CMD-WRKOBJPDM DSPW __ QPADEV001D DB344B05 INT.1 CMD-STRSEU DSPW __ QPADEV001S DB234F18 INT.0 CMD-STRSEU DSPW __ QPADEV001T ABERNS INT 1.9 CMD-WRKACTJOB RUN __ QPADEV001V DB444B17 INT.0 CMD-STRPDM DSPW More... Parameters or command ===> --------------------------------------------------------------------------------------- F3=Exit F5=Refresh F7=Find F10=Restart statistics F11=Display elapsed data F12=Cancel F23=More options F24=More keys

26 26 WRKDSKSTS Work with Disk Status ODIN 11/19/00 21:16:47 Elapsed time: 00:00:31 Size % I/O Request Read Write Read Write % Unit Type (M) Used Rqs Size (K) Rqs Rqs (K) (K) Busy 1 6717 8589 28.2 6.5 6.5 1.8 4.7 6.8 6.4 0 2 6717 7516 28.2 3.9 7.4 1.1 2.8 8.9 6.8 1 3 6717 7516 28.2 4.2 5.7 1.0 3.2 4.0 6.3 3 4 6717 7516 28.2 2.6 7.2.2 2.4 4.0 7.5 0 5 6717 7516 28.2 3.9 6.3.7 3.1 4.9 6.7 3

27 27 Powering down the system PWRDWNSYS Make sure to do a SNDBRKMSG to ALL users to notify them well in advance of the intended shut down! Power Down System Type choices, press Enter. How to end........... *CNTRLD *CNTRLD, *IMMED Delay time, if *CNTRLD..... 3600 Seconds, *NOLIMIT Restart options: Restart after power down... *NO *NO, *YES Restart type......... *IPLA *IPLA, *SYS, *FULL IPL source........... *PANEL *PANEL, A, B, D Additional Parameters End subsystem option...... *DFT *DFT, *NOJOBLOG, *CHGPTY... + for more values Timeout option......... *CONTINUE *CONTINUE, *MSD, *SYSREFCDE

28 28 Operations Navigator the GUI Interface DO LAB ’s A and B from MY web page ON YOUR OWN


Download ppt "L11C8C9ops400.ppt1 SUBSYSTEMS and PERFORMANCE Chapter 8."

Similar presentations


Ads by Google