As400 Module1
As400 Module1
Application Application
OS OS
...
OS 1 OS 2 OS N OS
... ...
...
Performance
App 1 App2 ... App N (or how to share ressources)
OS Security Lecture 4
Availability
Do not
... confuse
work management
and
LPAR!
Process Scheduling
Source: Silberschatz, Galvin and Gagne: Operating System Concepts - 7th Edition
Source: Silberschatz, Galvin and Gagne: Operating System Concepts - 7th Edition
Source: Silberschatz, Galvin and Gagne: Operating System Concepts - 7th Edition
Source: Silberschatz, Galvin and Gagne: Operating System Concepts - 7th Edition
Source: Silberschatz, Galvin and Gagne: Operating System Concepts - 7th Edition Efficient process scheduling?
Module 5 © Copyright IBM Corporation 2008 14
Power Systems
Scheduling Criteria
Source: Silberschatz, Galvin and Gagne: Operating System Concepts - 7th Edition
Example: IBM i
Job
Job Types
System jobs
Q...
S po o ling User jobs
I nt e r ac t ive
A ut o s t ar t
Bat c h
Co m m unic at io n
SYSTEM NETWORK
OS/400 VALUES ATTRIBUTES
SUBSYSTEM SBSD
ROUTING CLASS
ENTRIES
POOLS PROGRAM
System Values
More...
Press Enter to continue.
F3=Exit F12=Cancel
Message logging:
Level . . . . . . . . . . . . . . . . . . . . : 4
Severity . . . . . . . . . . . . . . . . . . . : 0
Text . . . . . . . . . . . . . . . . . . . . . : *NOLIST
Storage information:
Maximum storage allowed . . . . . . . . : *NOMAX
Storage used . . . . . . . . . . . . . . : 312
Storage used on independent ASP . . . . : *NO
Highest scheduling priority . . . . . . . : 3
Job description . . . . . . . . . . . . . : QDFTJOBD
Library . . . . . . . . . . . . . . . . : QGPL
Accounting code . . . . . . . . . . . . . :
Message queue . . . . . . . . . . . . . . : AS2401
Library . . . . . . . . . . . . . . . . : QUSRSYS
Message queue delivery . . . . . . . . . . : *NOTIFY
Message queue severity . . . . . . . . . . : 00
Output queue . . . . . . . . . . . . . . . : AS24OUTQ
Library . . . . . . . . . . . . . . . . : AS2401
Printer device . . . . . . . . . . . . . . : *WRKSTN
More...
Press Enter to continue.
F3=Exit F12=Cancel
WRKUSRJOB
WRKSBMJOB
INTERACTIVE
BATCH SPOOLING
COMMUNICATIONS
Storage Pools
1 *BASE
Selection or command
==>____________________________________________________________________
2 *INTERACT
Run Priority 50 20
Selection or command
==>____________________________________________________________________
Time Slice 5000 ms 2000 ms
8. Communications entries
JOB 2 JOB 4 JOB 5
9. Remote location name entries JOB 1 JOB 3
10. Prestart job entries
?
Selection or command MAXJOBS = 2
MAXJOBS = 3
==>____________________________________________________________________
MAXJOBS = 4
MAXJOBS = *NOMAX
SUBSYSTEM QBATCH
MONITOR Subsystem Description
PAY JOBQ
PROGRAM Max Jobs - *NOMAX QBATCH
Job Queue Entry
Job Queue Max Act Max Pty(n)
QBATCH 1 *NOMAX
Routing Entry
SEQNBR CMPVAL PGM CLASS POOL
9999 *ANY QCMD QBATCH 1
CLASS
QGPL/QBATCH
Run Priority
CALL PRPROC
QSYS/QCMD
*BASE JOB MSGQ
PAY
PRPROC
6 Job Description
4 QCMD
5 1
SBS
SBSD
3 Monitor JOBD
2
Job
Routing Description
OS/400
Routing
SCB LDA
JOBMSGQ
QTEMP TDE
Create
Duplicate
Job X
O
#1 D
Open A P
Pgm #1
Open file A
Job X Call Pgm #2 Job Y
Call Pgm #2
Open file A
Return
Y Static Storage A
___ ___ O
SHARE(*YES) ___ ___
D
___ ___
___ ___ P
Event monitors
MI automatic storage
(user state)
Stack frames
Highest
Priority
TDE description Pointer Priority
Lowest
Module 5 © Copyright IBM Corporation 2008 47
Power Systems
Send/Receive Queues
KEY
Key Comparison
INSTR
Wait
SRQ SRM CHAIN TDE CHAIN
2.
6. 1.
Wait Suspended
5. 4. 3.
A-A A-I
1 2 3 Other
Jobs
Active State Ineligible
Activity NO
Levels
A-W TSE
Prime
Task Send/
Dispatching Receive
Queue Queue
Bottom
Command
===>
4=Prompt F5=Refresh F9=Retrieve F10=Restart
F11=Display pool data F12=Cancel F14= Work with subsystems F24=More Keys
1 2 3
Activity Active
Levels JOBA JOBB JOBC State
Prime
TDQ
JOBA
JOBB A-W
JOBC
PAG
NO
Long W-I
Act
Wait JOBA Level JOBA
State Open?
Ineligible
YES
State
1 2 3
Activity Active
Levels JOBD JOBB JOBC State
1 2 3
Activity Active
JOBB JOBC
Levels State
Prime
TDQ
JOBB
JOBC Send/ Receive
Queue
Ineligible JOBC
State
1 2 3
JOBB A-A A-I
Other
Jobs
Prime Ineligible?
TDQ
JOBA
JOBB TSE
JOBC
ties 2 3-35
Pri o ri
3 6-46
Priorities
Priorities 47-51
Priorities 52-89
Priorities 90-99
Cache Affinity
STOP and
Performance?!