QRSUB(1)
π QRSUB(1) π
okay bestie, welcome to qrsub from the Grid Engine User Commands section of the manual (that's section 1, iykyk). this is the one that books your future resources in advance, and honestly? she's iconic for it. β¨
πΈ NAME πΈ
qrsub β Submit an Advance Reservation (AR) to Grid Engine.
π SYNTAX π
qrsub [-a date_time] [-A account_string] [-ckpt ckpt_name] [-d time] [-e date_time] [-he yes|no] [-help] [-l resource_list] [-now] [-M user[@host],...] [-N ar_name] [-w e|v] [-pe pe_name slot_range] [-q wc_queue_list] [-u wc_user_list]
β¨ DESCRIPTION β¨
so Qrsub is your girl for creating an Advance Reservation, aka an AR, in the Grid Engine queuing system. who's allowed to do this? operators, managers, or users referenced in the ACL called "arusers" (peep access_list(5) for that). π
and what even is an AR? it's reserving particular consumable resources for future use. these reserved resources are only available for jobs requesting the AR, and the scheduler makes sure those resources are actually available when the start time hits. jobs requesting the AR can only use the reserved consumable resources β no wandering off, no cap. π«Ά
when you submit an AR, the Grid Engine queuing system picks the best suited queues for your AR request and then reserves the amount of resources you asked for. for a reservation, all queues that are not in orphaned state count as suited. and the AR only gets granted if the request can actually be fulfilled. only then. periodt.
ARs get deleted either automatically when the end time is reached, or manually with qrdel(1). either way, first all jobs requesting the AR get removed, and then the AR itself. already granted ARs can be shown with qrstat(1). π¦
Note: to make AR behavior predictable, it's necessary to have reserved resources available at the time of AR start. this is done by keeping jobs with a unlimited runtime limit separated from ARs, and not considering resources used by such jobs for reservation.
Note: Resource Quotas are not considered for AR queue selection, nor for jobs requesting an AR. not even a little bit.
when an AR was successfully added to the Grid Engine queuing system, qrsub returns a unique integer ID referring to the the newly created AR. the highest AR ID is 9999999. if the highest ID is reached, a wraparound happens and the next unused ID, starting with 1, will be used. recycling era. π
for qrsub, the administrator and the user may define default request files (analogous to Grid Engine_request for qsub), which can contain any of the possible command line options.
a cluster wide default request file is optional. if such a default request file is used, it must be placed under $SGE_ROOT/$SGE_CELL/common/sge_ar_request (global defaults file).
a user private default request file is optional. if it is used, it must be placed under $HOME/.sge_ar_request (user private defaults file).
π OPTIONS π
-adate_time β defines the activation (start) date and time of an AR. this option is not mandatory. if you omit it, the current date_time is assumed. either a duration or end date_time must also be specified. for details of the date_time definition please seesge_types(5).-Aaccount_string β identifies the account to which the resource reservation of the AR should be charged. for"account_string"value details please see the"name"definition insge_types(5). if this parameter is absent, Grid Engine will place the default account string"sge"in the accounting record of the AR.-ckptckpt_name β selects the checkpointing environment (seecheckpoint(5)) the AR jobs may request. using this option guarantees that only queues providing this checkpoint environment will be reserved. no substitutes. π―-ddate_time β defines the duration of the AR. using-dis optional if-e date_timeis requested. for details of thedate_timedefinition please seesge_types(5).-edate_time β defines the end date and time of an AR. using-e date_timeis optional if-d timeis requested. for details aboutdate_timedefinition please seesge_types(5).-hey[es]|n[o]β specifies the behavior when the AR goes into an error state. the AR goes into error state when a reserved host goes into unknown state, a queue error happens, or when a queue is disabled or suspended.
a hard error, -he yes, means as long as the AR is in error state no jobs using the AR will be scheduled. if soft error, -he no, is specified the AR stays usable with the remaining resources. by default soft error handling is used.
-helpβ prints a list of all options. bless. π-lresource=value,... β creates an AR in a Grid Engine queue, providing the given resource request list.complex(5)describes how a list of available resources and their associated valid value specifiers can be obtained. there may be multiple-lswitches in a single command. stack 'em.-mb|e|a|nβ defines or redefines under which circumstances mail is to be sent to the AR owner or to the users defined with the-Moption described below. the option arguments have the following meaning:bβ Mail is sent at the beginning of the AReβ Mail is sent at the end of the ARaβ Mail is sent when the AR goes into error statenβ No mail is sent, default forqrsub
-Muser[@host],... β defines or redefines the list of users to which the qmaster sends mail. π¬-masterqwc_queue_list β only meaningful for a parallel AR request together with the-peoption.
this option is used to reserve the proper queues to match this request if it would be requested by a qsub. a more detailed description of wc_queue_list can be found in sge_types(5).
-nowy[es]|n[o]β this option affects the queue selection for reservation. with the-now yoption, only queues with the qtype"INTERACTIVE"assigned will be considered for reservation.-now nis the default forqrsub.-Nname β the name of the AR. the name, if requested, must conform to"name"as defined insge_types(5). invalid names will be denied at submit time. π«-we|vβ specifies the validation level applied to the AR request.
the specifiers e and v define the following validation modes:
vβ verify - does not submit the AR but prints an extensive validation reporteβ error - rejects request if requirements cannot be fulfilled, default forqrsub
-peparallel_envn[-[m]]|[-]m,...β parallel programming environment (PE) to select for the AR queue reservation. please see the details of a PE insge_pe(5).-qwc_queue_list β defines or redefines a list of cluster queues, queue domains or queue instances that may be reserved by the AR. please find a description of wc_queue_list insge_types(5). this parameter has all the properties of a resource request and will be merged with requirements derived from the-loption described above.-u[username|@access_list],... β defines the users allowed to submit jobs requesting the AR. the access is specified by a comma-separated list containing UNIX users or ACLs (seeaccess_list(5)). an ACL is differentiated from a UNIX user name by prefixing the ACL name with an'@'sign. by default only the AR owner is allowed to submit jobs requesting the AR.
Note: Only queues where all users specified in the list have access are considered for reservation (see queue_conf(5)).
π ENVIRONMENT VARIABLES π
SGE_ROOTβ Specifies the location of the Grid Engine standard configuration files.SGE_CELLβ If set, specifies the default Grid Engine cell. To address a Grid Engine cell,qsub,qsh,qloginorqalteruse (in the order of precedence):- The name of the cell specified in the environment variable
SGE_CELL, if it is set. - The name of the default cell, i.e.
default.
- The name of the cell specified in the environment variable
SGE_DEBUG_LEVELβ If set, specifies that debug information should be written tostderr. In addition the level of detail in which debug information is generated is defined.SGE_QMASTER_PORTβ If set, specifies the TCP port on whichsge_qmaster(8)is expected to listen for communication requests. Most installations will use a services map entry for the service"sge_qmaster"instead of defining the port.
π FILES π
$SGE_ROOT/$SGE_CELL/common/sge_ar_requestβ global defaults file$HOME/.sge_ar_requestβ user private defaults file
π§ SEE ALSO π§
qrdel(1), qrstat(1), qsub(1), sge_types(5), checkpoint(5), complex(5), queue_conf(5), sge_pe(5), sge_resource_quota(5).
π COPYRIGHT π
See sge_intro(1) for a full statement of rights and permissions.
and that's the whole page, bestie!! this one's from SGE 8.1.3pre, dated 2011-05-20 β vintage but still serving. go reserve something cute π β¨π
π¦ where this page comes from
- debian bookworm: gridengine-client 8.1.9+dfsg-10+b1 Β· SISSL
- debian trixie: gridengine-client 8.1.9+dfsg-13.1 Β· SISSL
- ubuntu jammy: gridengine-client 8.1.9+dfsg-10build1 Β· SISSL
- ubuntu noble: gridengine-client 8.1.9+dfsg-11build3 Β· SISSL
- ubuntu questing: gridengine-client 8.1.9+dfsg-13.1
- ubuntu resolute: gridengine-client 8.1.9+dfsg-13.2 Β· SISSL
- ubuntu stonking: gridengine-client 8.1.9+dfsg-13.2ubuntu1 Β· SISSL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms