微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

change the walltime for currently running PBS job (qalter pbs)



qalter jobid -l walltime=X

e.g.
qalter 377470.manager -l walltime=2222:00:00
qalter: Unauthorized Request  377470.manager

Notes:

To alter requested resources for a currently queued (but not running) job use the qalter command.  You can change the wallclock limit, the account to be charged, email options, the stdout/stderr paths, and the total number of cores needed or the number of cores per node (mppnppn), among other things.  See the "qsub" man page for details. The two important restrictions are that you cannot change any attributes once your job begins running and you cannot change mppwidth so that the job moves across the execution queue boundaries.  Usage examples:

1.hopper% qalter -lwalltime=new_walltime jobid
2.hopper% qalter -lmppwidth=new_mppwidth jobid
 

 

改变cpu数量

qalter -l nodes=1:ppn=10  jobid #(小写的L)

 

 

修改pbs队列:

qalter <jobid> -W queue=<new queue name>

$ qstat | grep  9999 | grep  AAAA  | sed 's/er.*/er/g' | awk '{print "qalter "$0" -W queue=middleq"}'

 

修改依赖的job:

qalter -W depend=afterok:6250.centos64 5951.centos64

qalter -W depend=afterok:new_job_id old_job_id

old_job_id 执行完成之后才能执行new_job_id

 

启动torque:

启动所有服务(需要root权限)
pbs_server
pbs_sched
pbs_mom

 

批量取消pbs:

qstat | grep zh | grep Q | sed 's/er.*/er/g' | awk '{print "qdel "$0}'
qstat | grep zh | grep H | sed 's/er.*/er/g' | awk '{print "qdel "$0}'

qstat | grep zh | grep R | sed 's/er.*/er/g' | awk '{print "qdel "$0}'

 

 

 

 

REF:

http://scicomp.stackexchange.com/questions/7149/changing-the-queue-for-an-already-submitted-pbs-job

 

https://www.nersc.gov/users/computational-systems/hopper/running-jobs/monitoring-jobs/

https://www.osc.edu/supercomputing/batch-processing-at-osc/monitoring-and-managing-your-job

http://torqueusers.supercluster.narkive.com/wWbtPk3E/can-i-add-to-the-walltime-of-a-running-job

http://stackoverflow.com/questions/8005906/is-there-a-way-to-change-the-walltime-for-currently-running-pbs-job

http://docs.adaptivecomputing.com/suite/8-0-1/basic/help.htm#topics/torque/commands/qalter.htm%3FTocPath%3DTORQUE%2520Resource%2520Manager%7CAppendices%7CAppendix%2520A%253A%2520Commands%2520Overview%7C_____7

 

http://www.supercluster.org/pipermail/torqueusers/2011-May/012919.html

https://wiki.hpcc.msu.edu/pages/viewpage.action?pageId=13863972

http://www.clusterresources.com/pipermail/torquedev/2013-October/004607.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。