| United States-English |
|
|
|
![]() |
Communicator 3000 MPE/iX Release 6.5 (Non-Platform Software Release C.65.00): HP 3000 MPE/iX Computer Systems > Chapter 3 Growth SolutionUser-Defined Job Queues and ALTJOB HIPRI Enhancements |
|
by Jayaram and S Shashikala Previously MPE/iX had one job queue into which all the submitted jobs went before getting launched by the dispatcher. Often this proved to be a hindrance, as a few long jobs could prevent a lot of short jobs from running. MPE/iX can now have up to 255 user-defined job queues, each having a separate limit on the number of runnable jobs. Users can specify the queue to which their jobs should log on by using the newly added ;jobq= parameter of !job command or !stream command. There will be one default job queue named HPSYSJQ, which will be created during the system bootup. Three new commands have been added: NEWJOBQ, PURGEJOBQ and LISTJOBQ
Syntax:
The NEWJOBQ command creates a new job queue. SM/OP capability is required to execute this command. Limit is the only queue controlling property. The jobs in the queue are sorted by their INPRI. In case of a tie for INPRI, jobs are sorted by their INTRO time. The global limit takes precedence over individual queue limits. That is, even if a jobq has a slot available, if the overall limit has been reached, jobs have to wait until one of the jobs finishes or the global limit is increased. When a global slot becomes available, the next job is picked from among the eligible jobqs (those which haven't yet reached their individual limits) using the following algorithm:
Parameters:
Examples:
Syntax: PURGEJOBQ qname The PURGEJOBQ command deletes a job queue. The queue will be deleted only if it is empty, that is, if no jobs are waiting or executing in the queue. The default system job queue can not be purged. The user must have SM/OP capability to execute the command.This command is available in a session, job, or in BREAK. Pressing [Break] aborts the execution of this command. This command is not allowed in SYSSTART. Parameters:
Examples:
Syntax:
The LISTJOBQ command allows the user to list all the existing job queues in the system. It displays the queue name, limit, number of jobs in the queue that are in the EXEC state and the total number jobs in the queue, (No. of jobs in the EXEC state + No. of jobs in the WAIT state). This command is not allowed in SYSSTART. Examples:
Syntax:
The LIMIT command allows users with OP capability to change the job and session limits. As a result of this enhancement, it can be used to change the limit value of individual job queues. The LIMIT command now accepts a new parameter ;jobq= . It also accepts '+' or '-' before the numeric values to indicate increment or decrement. Parameters:
Examples:
Syntax:
[;JOBQ= <qname>] The JOB command now accepts a new parameter ;jobq=. Users can specify the job queue name into which a particular job should logon. If a job queue is specified in the STREAM command, then it overrides the name specified in the JOB command. If no queue name is specified, the default system job queue is used (HPSYSJQ). Parameters:
Examples:
Syntax:
ALTJOB alters the attributes of waiting or scheduling jobs. ALTJOB now accepts a new parameter ;jobq=. Jobs waiting or executing in a queue can moved to other queues. Only users with SM/OP capability can move jobs. When an executing job is moved, the limit of the target queue is ignored and the job continues to execute in the new queue. A waiting job continues to wait in the new queue if the queue has already reached its limit. The ALTJOB command now accepts a new optional parameter HIPRI. The HIPRI option can be used for overriding the system jobfence or the joblimit. User must have System Manager(SM) or Operator(OP) capability to use this option. Also, the INPRI and HIPRI options may not be specified together. Parameters:
Examples:
Syntax: STREAM [filename] [,char] [;AT = timespec] [;DAY = {day-of-week }[;IN = [days[, [hours] [,minutes]]]] [;JOBQ = qname] The STREAM command now accepts a new parameter ;jobq=. User can specify the queue name into which a particular job should go. The name specified overrides the queue name specified in the JOB command. Parameters:
Examples: STREAM FOO; jobq=myjobq Syntax: [[#]Snnn ] The SHOWJOB command displays status information about jobs/sessions. It now accepts a new parameter ;JOBQ which indicates the queue name to which the job belongs. If the ;JOBQ option is not specified, the SHOWJOB output is the same as before. A new field JOBQ is added to the showjob output format. The JLIST field in the showjob output format displays only 5 characters. In addition, the SCHEDULED-INTRO heading changes to SCHED-INTRO, in the showjob output format when the JOBQ option is used. Examples: 1. :SHOWJOB;jobq 2. To display a particular job and job queue name, enter :SHOWJOB #J7;JOBQ JOBNUM STATE IPRI JIN JLIST JOBQ INTRODUCED JOB NAME #J7 EXEC 2 LP SYSMGRQ WED 5:47P EMG,MGR.SYSMGR JOBFENCE= 7; JLIMIT= 10; SLIMIT= 60 3. To display all scheduled jobs with job queue name, enter :SHOWJOB ;JOBQ JOBNUM STATE IPRI JIN JLIST JOBQ INTRODUCED JOB NAME #J2 EXEC 10S LP HPSYSJQ TUE 2:50P JINETD,MANAGER.SYS |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||