Tuesday, 24 November 2009

LSF: Job Array Modification

I use job arrays on LSF to control running large number of jobs. One nice feature of job arrays is being able to control the maximum number of jobs running, and so be nice to my fellow cluster users. I use the following BASH one liner to modify the maximum number of jobs on all of my job arrays at once.

bjobs -A |cut -f 1 -d " " |grep -v JOBID |while read seq;do bmod -J "%11" $seq;done

Just change the %11 part to be what ever number you want, well what ever number you can get away with.

No comments:

Post a Comment