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://*.com/questions/8005906/is-there-a-way-to-change-the-walltime-for-currently-running-pbs-job
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