2024年6月12日发(作者:)
qsub 命令选项
2012-02-15 17:14
SGE qsub 命令 选项 笔记
qsub
qsub命令用来向SGE提交批处理作业,SGE支持单或多节点作业。
qsub [ options ] [ command | -- [ command_args ]]
1. -@ optionfile (contains all valid options) 就是把qsub命令的可选项
组合成一定功能的语句,保存在一个文件中。 qsub -a optionfilename
jobfilename
2. -a date_time 设置作业什么时候可以执行。 格式:CC YY 如
2.21 qsub -a 2.21 ../simplejob
3. -A account_string Identifies the account to which the resource
consumption of the job should be charged 设置一个作业的账户名,便于统计
该账户使用的资源等信息 qsub -A testaccountname jobname
4. -ac 添加名/值对到作业上下文 -dc 删除。。 -sc 设置(修改)。。 Contexts
provide a way to dynamically attach and remove meta- information to and
from a job. The context variables are not passed to the job's execution
context in its environment The outcome of the evaluation of all -ac, -dc,
and -sc options or corresponding values in qmon is passed to defined JSV
instances as parameter with the name -ac.
5. -ar ar_id 分配已提交作业,作为它的一部分,给已存在预约。ar=advance
reservation qsub -ar 60 jobname #ai_di = unsigned integer
6. -b y[es]|n[o] Gives the user the possibility to indicate explicitly
whether command should be treated as binary or script.
7. -binding 等待理解
8. -c occasion_specifier(际符) 定义或者重定义作业是否要被检查,if是,
在什么环境下。 n no checkpoint is performed. s checkpoint when batch
server is shut down. m checkpoint at minimum CPU interval. x checkpoint
when job gets suspended.
interval. qsub -c n jobname
9. -C prefix_string 前缀字符串定义一个在作业命令中的指令 qsub -C
"#$" ../simplejob
10. -ckpt ckpt_name 选择检查点环境来检查一个作业,同时声明这个作业是检
查点作业。 qsub -ckpt allanckpt ../simplejob
11. -clear 重置作业的所有元素为初始默认状态 qsub -clear ../simplejob
12. -cwd =current working directory 从当前的目录开始执行作业。如果有相
应的配置文件的话, 这个命令将启动网格引擎的路径别名设备。
13. -dl date_time 设置作业在deadline之前执行完,格式为CC YYU
qsub -dl 2.01 ../simplejob
14. -e [[hostname]:]path,...定义或重新定义作业的标准错误流使用的路径
e=stderror
15. -h | -h {u|s|o|n|U|O|S}... h=hold 暂停作业执行 'u' .........user
hold. `s' denotes a system hold. `o' denotes a operator hold. `n' denotes
no hold (requires manager privileges). `U' removes a user hold. `S'
removes a system hold. `O' removes a operator hold. qsub
-h ../simplejob(qsub只能使用-h)
16. -l resource=value,... l=launch 启动满足资源需求的作业 Launch the
job in a Grid Engine queue meeting the given resource request list. In
case of qalter the previous definition is replaced by the specified one.
qsub -l s_core=5 ../simplejob
17. -q wc_queue_list 定义或重定义可能用来执行作业的队列,包括群聚队列、
队列域、队列实例。 qsub -q all.q ../simplejob
18. -hard 表示该作业在安排执行之前,作业的资源需求必须满足。 qsub
-hard ../simplejob
19. -soft 表示该作业在安排执行之前,作业的资料需求可以有、但不必须有。
qsub -soft ../simplejob
20. -help 获取帮助 qsub -help
21. -hold_jid wc_job_listt 定义或重定义当前提交的作业对哪些作业有依赖,
所依赖的作业使用通配符作业清单表示:wc_job_list qsub -hold_jid
63926 ../simplejob
22. -hold_jid_ad wc_job_list ad=array dependency list of the submitted
job 定义或者重定义组作业依赖列表。 qsub -hold_jid_ad 1-1200
23. -t n[-m[:s]] 指定组作业的数量,将指示器与作业关联 qsub -t


发布评论