| United States-English |
|
|
|
![]() |
HP OpenVMS Systems Documentation |
OpenVMS System Manager's Manual
14.6.3.2 Displaying Characteristics Defined on a SystemTo see the characteristics defined on a system, enter SHOW QUEUE/CHARACTERISTICS.
14.6.3.3 Assigning Characteristics to a QueueNo characteristics are assigned to a queue by default. To assign characteristics to a queue, include the /CHARACTERISTICS qualifier with INITIALIZE/QUEUE, START/QUEUE, or SET QUEUE.
14.6.3.4 Displaying Characteristics Assigned to a QueueTo determine the characteristics defined for a queue, enter SHOW QUEUE/FULL.
14.6.3.5 Canceling Characteristics Assigned to a Queue
To cancel characteristics assigned to a queue, specify the
/NOCHARACTERISTICS qualifier with INITIALIZE/QUEUE, START/QUEUE, or SET
QUEUE.
To delete a characteristic definition, enter DELETE/CHARACTERISTIC. You must specify the characteristic-name with DELETE/CHARACTERISTIC. If you know the number assigned to the characteristic but do not know the name, enter SHOW QUEUE/CHARACTERISTICS to display the names and numbers assigned to characteristics on the system. If the system displays the following messages, a queue or job refers to the characteristic:
You must remove all references to the characteristic before you can
delete the characteristic. For information about removing references to
a characteristic, see Section 14.8.5.
You can use queue options to control batch job performance and the use of system resources by processes executing batch jobs. Use the following qualifiers with INITIALIZE/QUEUE, START/QUEUE, or SET QUEUE to set these queue options:
Although the following qualifiers are not specific to batch queues, they are commonly used to control batch job performance and the use of system resources by batch processes:
For more information about these limits, quotas, and priorities, refer to the following manuals:
By default, a process running a batch job uses values taken from the UAF record of the user submitting the job or from system parameter settings. If you specify values for any of these options, processes for jobs executed in the queue will use the values you set unless the user specifies values when the job is submitted. (A user can specify values for CPU time and for the working set options default, quota, and extent.) A user-specified value cannot exceed the value you set for the queue. If you did not specify a value, the user-specified value cannot exceed the value specified in the associated UAF limit or system parameter. The following sections provide guidelines for choosing values for these options:
14.6.4.1 Base Process PriorityChoose a value based on how quickly you will allow batch jobs to progress. If you choose a value equal to the system parameter value DEFPRI (typically 4), jobs in this queue will progress at the same rate as typical interactive jobs. This choice might be appropriate for systems that have an abundance of available CPU time. If you choose a value less than DEFPRI, jobs in this queue will potentially progress more slowly than the typical interactive job. CPU time will be allocated to jobs in this queue only after servicing jobs of DEFPRI priority.
If a queue is defined for a very special purpose---for example,
high-priority jobs---a value greater than DEFPRI (for example, 5) might
be appropriate. However, this choice can have a significant negative
effect on the performance of other users and batch jobs.
Keep this value low when using a base process priority of DEFPRI or
greater, because each batch job can affect the performance of
interactive jobs.
If you do not specify values for these options, a job uses the value specified in its owner's user authorization file (UAF) record. In general, the working set quota and extent values specified in the UAF record for each user are sufficient. However, you can specify more generous or stringent values for a queue, depending on the purpose of the queue. For example, you can encourage users to submit large jobs (such as compiling and linking large programs) as batch jobs to reserve interactive use of the system for jobs that do not require extensive resources, as follows:
14.6.4.4 CPU Default and MaximumYou can restrict and expand the amount of time a job is allowed in the CPU by setting CPU limit values. Do not set CPU time limit values too low. When a job's CPU time limit is exceeded, the job is terminated with an error status. If working set values (explained in Section 14.6.4.3) are set too low, the system might use memory less efficiently but the jobs can still complete normally. However, if CPU time limit values are set too low, the system might terminate jobs that are making legitimate and authorized use of the CPU. For example, you might use a CPU time limit on a batch queue devoted to execution of newly coded software that could unexpectedly enter a CPU loop. The CPU time limit would terminate infinitely looping jobs so they do not waste the CPU resource. However, you must be careful to choose a sufficiently high time limit so normally executing jobs do not terminate prematurely.
Another way to control allocation of the CPU resource is to create a
special-purpose batch queue that shifts execution of its jobs to a less
busy time of day when CPU time is more available.
Typically, swapping is enabled on batch queues. However, for a special-purpose, high-priority queue, you might disable swapping. This provides a favorable status to jobs in this queue by removing them from consideration when memory must be reclaimed from processes (through the operating system's swapping and trimming mechanism).
For more information, refer to the OpenVMS Performance Management.
On memory-constrained systems, total the pages required for the batch working sets on all batch queues. Also make sure that enough fluid memory remains for interactive jobs.
Fluid memory can be reassigned from one process to another through
swapping and paging. (You can calculate fluid memory as the space that
remains when you subtract the number of pages permanently allocated to
the operating system from the total memory. To obtain these values,
enter SHOW MEMORY.)
You can improve the efficiency of the OpenVMS Sort/Merge utility (SORT/MERGE) by designating one batch queue for sorting jobs and giving this queue a very large working set quota. You can also set process quotas for greatest SORT efficiency. The values recommended here are based solely on SORT considerations; you should integrate other system considerations with these to determine appropriate values.
14.6.5 Specifying Job Scheduling OptionsThe queue manager uses the following criteria to determine the scheduling order for batch and print jobs that are eligible for processing:
To specify job scheduling options, follow these steps:
Commands for Job Scheduling Options
Use the following commands to specify job scheduling options:
14.6.5.1 Setting Job Scheduling Priorities and LimitsThe sections explain how to set job printing priorities and sizes.
How to Prioritize Jobs by Size
To prioritize jobs based on their sizes, use the /SCHEDULE=SIZE qualifier with INITIALIZE/QUEUE, START/QUEUE, or SET QUEUE. (The /SCHEDULE=NOSIZE qualifier prints jobs in the order they were submitted, regardless of size.) In the following example, /SCHEDULE=SIZE (the default), causes short jobs to print before longer ones on the print queue LPA0_PRINT:
If you enter this command while pending jobs are in any queue, its effect on future jobs is unpredictable. To limit the size of print jobs, use the /BLOCK_LIMIT qualifier with INITIALIZE/QUEUE, START/QUEUE, or SET QUEUE. By default, printer and terminal queues are created with no block limit, so jobs of any size will be printed. You can specify only an upper limit or both upper and lower limits. In the following example, LPB0_PRINT has a block size limit of 50, indicating that this queue is reserved for jobs smaller than 51 blocks.
You might also want to limit the size of jobs during certain hours of
the day. You can submit a batch job that runs a command procedure to
set a maximum block limit of 500 blocks for a queue at 8:00 a.m. The
command procedure might resubmit itself and remove the block limit
after 5:00 p.m. each day. This lets users print jobs of any size after
normal work hours, when the printing work load is lighter. Users can
specify the /AFTER qualifier with the PRINT command to specify that a
job is to be printed after a specific time.
If a batch or print job cannot be processed, it is placed in a pending state and is not processed until the cause of the pending state is resolved. For more information, see Section 14.8.2. To change the scheduling priority of a job, use the /PRIORITY qualifier with SET ENTRY in the following format:
The following example changes the scheduling priority of a job to 50:
Do not confuse the job scheduling priority with the base process
priority on a queue. The job scheduling priority value must be in a
range of 0 through 255, where 0 is the lowest priority and 255 is the
highest. The default value for /PRIORITY, which refers to the job
scheduling priority, is the value of the system parameter DEFQUEPRI
(usually set at 100).
Banner pages are specially formatted pages that you can set up for queues, to help identify and separate output jobs when they exit a printer. Banner pages also help identify and separate files within jobs. Two types of banner pages are:
Most sites use only a subset of the available banner pages at any given time. The following table describes the types of banner pages you can use:
Table 14-2 describes the information found on job flag pages, file flag pages, job trailer pages, and file trailer pages.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ** About PDF files: The PDF files on this Web site can be read online or printed using Adobe® Acrobat® Reader. If you do not have this software installed on your system, you may download it from the Adobe Web site. | ||
|
|||||||||||||||