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


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(( )) 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


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 *MACHINE *BASE *SPOOL *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) __ QDNNOTIFY __ QINTER __ QSERVER.00 2 __ QSPL 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 highest = 1 lowest = 99 interactive 20 batch jobs 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 : G Jobs in system..... : % system ASP used.. : % addresses used: Total : 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

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 : G Jobs in system..... : % system ASP used.. : % addresses used: Total : 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 Monitoring system performance WRKSYSSTS

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

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

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 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