(Click to open topic with navigation)
Using the -L syntax, you can set default, minimum, and maximum values for lproces, memory, swap, disk, sockets, numanode, cores and threads with resource request 2.0.
These can be set in the general format:
qmgr -c "set queue <queue_name> req_information_[default|min|max].[lprocs|memory|swap|disk|sockets|numanode|core|thread]
Example 5-373: Jobs using -L syntax
qmgr -c "set queue q1 req_information_default.lprocs=2"
qmgr -c "set queue q1 req_information_minimum.memory=2gb"
qmgr -c "set queue q1 req_information_maximum.core=10
When req_information_default.* settings are set, only jobs with the -L syntax are accepted. Jobs submitted using the -l (resources_default.*) setting will be rejected with a message citing conflicting resource requests. If you want a queue to be able to accept both kinds of jobs and still be able to enforce defaults, then simply set defaults for both resource request types. See Example 5-374 for more information.
Example 5-374: Jobs using -L or -l syntax
This example shows how to enable a queue to be able to accept both kinds of jobs and still be able to enforce defaults.
qmgr -c "create queue batch"
qmgr -c "set queue batch queue_type = Execution"
qmgr -c "set queue batch resources_default.mem = 3gb"
qmgr -c "set queue batch enabled = True"
qmgr -c "set queue batch started = True"
qmgr -c "set queue batch req_information_default.memory = 3gb
In this example, jobs submitted that explicitly use the -L syntax will have the req_information_default.memory setting applied. If the job does not explicitly use this syntax, then the resources_default.mem setting will be applied.
Related Topics