Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Subsystems
Basic Facts
All work is carried out in a subsystem. All jobs are divided by type into subsystems. Subsystems are started when the AS/400 powers up and loads the Operating System. A way of organizing, in order to increase efficiency.
OFFICE J
O
B S
Each job secures enough resources to run efficiently Too large of a number will force jobs to compete for system resources and ultimately slow completion of all jobs
Subsystems Are:
A subsystem is an environment unique to a type of program. It allows computer run-time attributes to be applied to all jobs within it, while other jobs in other subsystems keep their own attributes.
Single - QBASE
Multiple
The subsystem for all work active upon installation Convenient for installation Doesnt take advantage of systems capabilities
Improves performance to separate workload AS/400 comes preloaded with basic 5 subsystems Change system value for QCTLSBSD to QCTL & the AS/400 understands to start using multiple subsystems
5 Basic Subsystems
QCTL
the controlling subsystem in a multiple subsystem configuration The system console is attached to this subsystem
This is so the system console can carry out functions during IPL
QINTER
QSPL
QCMN
QBATCH
10
The AS/400 allows for any combination of jobs within a subsystem. However, doing so will reduce the systems efficiency. The object, subsystem description, is required whenever a new subsystem is created.
Understanding AS/400 System Operations 11
System Pools
Also called a storage pool. A logical division of main memory reserved for processing jobs. Subsystems are pre-assigned to main memory pools by the Operating System. Work is divided into types of jobs (Just like types of pools).
Understanding AS/400 System Operations 12
Activity Level
Pre-defined size
Max number of jobs that can be run simultaneously in the pool How many lanes
number of bytes that can be stored in the pool How much water
13
*MACHINE is the storage pool where the system runs. *BASE can be where everything else runs.
14
QMCHPOOL - Sets Size OF *Machine pool. QBASPOOL - Sets minimum size of *BASE pool.
15
Portion of Memory
A pool is the amount of allocated memory.
16
memory page to DASD so an active page can be read into memory. Faulting is when a program (or its data) attempts to access a page not in memory. It then is fetched.
17
allocated for CPU usage by a job when it executes. Thrashing is excessive faulting.
18
CPU Considerations
Time Slices
The amount of processor time a job has before the CPU moves to another job Within a storage pool, job with highest prior acquires system resources first Ex: Print writers, then interactive jobs, then batch jobs
Understanding AS/400 System Operations 19
Run Priorities
Run priority is the priority of job while executing Job priority is the relative order of job waiting on job queue
20
ActiveThe job is running. Job is occupying storage, using processor, and hasnt exceeded activity level. WaitThe job is waiting for something to happen. Waiting until next user request to start. Ineligible The job is ready to run, but the system is not available. Ineligible job cant occupy storage or processor due to activity level is at max.
Understanding AS/400 System Operations 21
Jobs shift between states automatically, depending on systems work load Job may need to become ineligible at end of its time slice
22
Shared Pools
Special shared pools. The two pools that come with the AS/400, *MACHINE and *BASE, are special shared pools. These are the only special shared pools. General shared pools. Private Pools
Pre-defined Pools
The AS/400 comes with predetermined names and, in two cases, predetermined uses, for shared pools. Here is the list:
*INTERACT Supports interactive subsystems jobs. *SPOOLSupports spool writers (printing). *SHRPOOL1 through *SHRPOOL60 Names available for customer-defined shared pools.
Understanding AS/400 System Operations 24
Bottom F12=Cancel
25
Three commands that change memory and activity level settings on pools. They are:
Work with System Status (WRKSYSSTS) Change Subsystem Description (CHGSBSD) Change Shared Pool (CHGSHRPOOL)
26
There are also two system values that affect memory pools and activity levels:
27
28
CHGSHRPOOL command
Change Shared Storage Pool (CHGSHRPOOL) Type choices, press Enter. Pool identifier . . . . . . . . __________ *MACHINE, *BASE, *INTERACT... Storage size . . . . . . . . . . *SAME Number, *SAME, *NOSTG Activity level . . . . . . . . . *SAME Number, *SAME Paging option . . . . . . . . . *SAME *SAME, *FIXED, *CALC Text 'description' . . . . . . . *SAME ____________________________________________________________________________
F10=Additional parameters
Bottom F12=Cancel
29
Bottom F12=Cancel
30
Opt _ _ _ _ _ _ _ _ _ _
Subsystem QBASE QBATCH QCMN QCTL QINTER QCOMPILE QSERVER QSPL QSYSSBSD QSYSWRK
Bottom Parameters or command ===>_________________________________________________________________ F3=Exit F5=Refresh F11=Display system data F12=Cancel F14=Work with system status
31
32
Type changes (if allowed), press Enter. System Pool 11 Pool Size (K) 50000 Reserved Size (K) 0 Max Active 4 -----DB----Fault Pages .0 .3 ---Non-DB--Fault Pages 2.7 .0
System Pool Number Bottom Command ===>___________________________________________________________ F3=Exit F4=Prompt F5=Refresh F9=Retrieve F10=Restart F11=Display transition data F12=Cancel F24=More keys
33
Pool *MACHINE *BASE *INTERACT *SPOOL *SHRPOOL1 *SHRPOOL2 *SHRPOOL3 *SHRPOOL4 *SHRPOOL5 *SHRPOOL6
Command ===>____________________________________________________________________ F3=Exit F4=Prompt F5=Refresh F9=Retrieve F11=Display tuning data F12=Cancel
34
Subsystem Description
Create Subsystem Description (CRTSBSD) Type choices, press Enter.
Subsystem description . . . . NEWSBS Name Library . . . . . . . . . . *CURLIB Name, *CURLIB Storage pools: _ Pool identifier . . . . . . 2 1-10 Storage size . . . . . . . . *BASE Number, *BASE, *NOSTG... Activity level . . . . . . . Number + for more values Maximum jobs . . . . . . . . . 4 0-1000, *NOMAX Text 'description' . . . . . . *BLANK ______________________________________________________________________
Additional Parameters Sign-on display file . . . . . Library . . . . . . . . . . Subsystem library . . . . . .
F3=Exit F4=Prompt F5=Refresh
F12=Cancel
F24=More keys
35
36
Routing Entries
Display Job Description System: Job description: QINTER Library: QGPL BIGBLUE Message logging: Level . . . . . . . . Severity . . . . . . . Text . . . . . . . . . Log CL program commands Accounting code . . . . Print text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . : : : : : : 4 0 *NOLIST *NO *USRPRF *SYSVAL
Routing data . . . . . . . . . . . . . . . . . . :
QCMDI
37
System: ACTIVE
BIGBLUE
Opt _ _ _ _ _
Bottom
F3=Exit F9=Display all detailed descriptions F12=Cancel
38
. . . . . . . . . . :
39
Workstation Entries
AS/400 workstations are devices (Interactive Jobs Only) Job Queues Autostart Jobs Communication Jobs Pre-start Jobs
40
Starting Subsystems
Start Subsystem (STRSBS) Type choices, press Enter. Subsystem description . . . Library . . . . . . . . . Name Name, *LIBL, *CURLIB *LIBL
Bottom F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys
41
Ending Subsystems
End Subsystem (ENDSBS) Type choices, press Enter. Subsystem . . . . . . . . . . . > QBATCH How to end . . . . . . . . . . . *CNTRLD Delay time, if *CNTRLD . . . . . *NOLIMIT Name, *ALL *CNTRLD, *IMMED Seconds, *NOLIMIT
Bottom F12=Cancel
42
43
44