[ Platform Documentation ] [ Title ] [ Contents ] [ Previous ] [ Next ] [ Index ]
bmod
modifies job submission options of a job
SYNOPSIS
bmod[bsub options] [job_ID |"job_ID[index]"]
bmod -gjob_group_name |-gn[job_ID]
bmod[-slaservice_class_name |-slan] [job_ID]
bmod[-h|-V]OPTION LIST
[
-B|-Bn][
-N|-Nn][
-r|-rn][
-x|-xn][
-aesub_parameters |-an][
-bbegin_time |-bn][
-Ccore_limit |-Cn][
-c[hour:]minute[/host_name |/host_model] |-cn][
-Ddata_limit |-Dn][
-eerr_file |-en][
-ext[sched]"external_scheduler_options"][
-E "pre_exec_command [argument ...]"|-En][
-f"local_file op [remote_file]"... |-fn][
-Ffile_limit |-Fn][
-gjob_group_name |-gn][
-Guser_group |-Gn][
-iinput_file |-in|-isinput_file |-isn][
-Jjob_name |-J "%job_limit" |-Jn][
-kcheckpoint_dir |-k"checkpoint_dir [checkpoint_period] [method=method_name]"|-kn][
-Llogin_shell |-Ln][
-m"host_name[@cluster_name][+[pref_level]] | host_group[+[pref_level]] ..."|-mn][
-Mmem_limit |-Mn][
-nnum_processors |-nn][
-oout_file |-on][
-Pproject_name |-Pn][
-q"queue_name ..." |-qn][
-R"res_req" |-Rn][
-slaservice_class_name |-slan][
-sppriority |-spn][
-Sstack_limit |-Sn][
-tterm_time |-tn][
-Ureservation_ID | -Un][
-umail_user |-un][
-w'dependency_expression'|-wn][
-wa '[signal | command |CHKPNT]'|-wan][
-wt 'job_warning_time'|-wtn][
-Wrun_limit [/host_name | /host_model] |-Wn][
-Z "new_command"|-Zs "new_command"|-Zsn][job_ID |
"job_ID[index]"]DESCRIPTION
Modifies the options of a previously submitted job. See
bsub(1)for complete descriptions of job submission options you can modify withbmod.Only the owner of the job, or an LSF administrator, can modify the options of a job.
All options specified at submission time may be changed. The value for each option may be overridden with a new value by specifying the option as in
bsub. To reset an option to its default value, use the option string followed by 'n'. Do not specify an option value when resetting an option.The
-i,-in, and-Zoptions have counterparts that support spooling of input and job command files (-is,-isn,-Zs, and-Zsn).You can modify all options of a pending job, even if the corresponding
bsuboption was not specified.Modifying a job that is pending in a chunk job queue (CHUNK_JOB_SIZE) removes the job from the chunk to be scheduled later.
By default, you can modify resource reservation for running jobs (
-R"res_req"). To modify additional job options for running jobs, define LSB_MOD_ALL_JOBS=Y inlsf.conf.Modifying running jobs
The following are the only
bmodoptions that are valid for running jobs. You cannot make any other modifications after a job has been dispatched.- CPU limit (
-c[hour:]minute[/host_name |/host_model])- Job group (
-gjob_group_name)- Memory limit (
-Mmem_limit)- Rerunnable jobs (
-r|-rn)- Resource reservation (
-R"res_req")- Run limit (
-Wrun_limit[/host_name |/host_model])- Standard output (
stdout) file name (-ooutput_file)- Standard error (
stderr) file name (-eerror_file)Modified resource usage limits cannot exceed the limits defined in the queue.
To modify the CPU limit or the memory limit of running jobs, the parameters LSB_JOB_CPULIMIT=Y and LSB_JOB_MEMLIMIT=Y must be defined in
lsf.conf.If you want to specify array dependency by array name, set JOB_DEP_LAST_SUB in
lsb.params. If you do not have this parameter set, the job will be rejected if one of your previous arrays has the same name but a different index.Modifying resource requirements
The
-Roption ofbmodcompletely replaces any previous resource requirement specification. It does not add the modification to the existing specification. For example, if you submit a job with% bsub -R "rusage[res1=1]"then modify it with
% bmod -R "rusage[res2=1]"the new resource usage requirement for the job is
[res2=1], not
[res1=1; res2=1].Modifying advance reservations
If advance reservations are enabled, administrators can use the
-Uoption ofbmodto change a job to another reservation ID. For example:%bmod -U user1#0 1234To cancel the reservation, use the
-Unoption ofbmod. For example:%bmod -Un 1234LSF administrators can prevent running jobs from being killed when the reservation expires by changing the termination time of the job using the reservation (
bmod -t) before the reservation window closes.For example:
%bmod -t 15:0 1234Modifying job groups
Use the
-goption ofbmodand specify a job group path to move a job or a job array from one job group to another. For example:% bmod -g /risk_group/portfolio2/monthly 105moves job 105 to job group
/risk_group/portfolio2/monthly.Like
bsub -g, if the job group does not exist, LSF creates it.
bmod -gcannot be combined with otherbmodoptions. It can operate on finished, running, and pending jobs.You can modify your own job groups and job groups that other users create under your job groups. The LSF administrator can modify job groups of all users.
You cannot move job array elements from one job group to another, only entire job arrays.
You cannot modify the job group of a job attached to a service class.
Modifying jobs in service classes
The
-slaoption modifies a job by attaching it to the specified service class. The-slanoption detaches the specified job from a service class. If the service class does not exist, the job is not modified. For example:% bmod -sla Kyuquot 2307attaches job 2307 to the service class
Kyuquot.% bmod -slan 2307detaches job 2307 from the service class
Kyuquot.You cannot:
- Use
-slawith otherbmodoptions- Move job array elements from one service class to another, only entire job arrays
- Modify the service class of job already attached to a job group
Use
bslato display the properties of service classes configured inLSB_CONFDIR/cluster_name/configdir/lsb.serviceclasses(seelsb.serviceclasses(5))and dynamic information about the state of each configured service class.OPTIONS
job_ID | "job_ID[index]"
Modifies jobs with the specified job ID.
Modifies job array elements specified by
"job_ID[index]".-h
Prints command usage to
stderrand exits.-V
Prints LSF release version to
stderrand exits.SEE ALSO
bsub(1)LIMITATIONS
Modifying remote running jobs in a MultiCluster environment is not supported.
If you do not specify
-ebefore the job is dispatched, you cannot modify the name of job error file for a running job. Modifying the job output options of remote running jobs is not supported.[ Top ]
[ Platform Documentation ] [ Title ] [ Contents ] [ Previous ] [ Next ] [ Index ]
Date Modified: February 24, 2004
Platform Computing: www.platform.com
Platform Support: support@platform.com
Platform Information Development: doc@platform.com
Copyright © 1994-2004 Platform Computing Corporation. All rights reserved.