[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-users] job queue time estimation



Hi ,

I have designed the following bash shell script for the estimation of the job queue times.

My problem is that, is the CPU usage given be the script is the Condor usage or the usage for the script

to run ?

And is there any good and accurate way to find out the job queue completion times.


SCRIPT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
echo "Submitting the Jobs ..............."
for i in host_job.cmd pi_calc.cmd tiny_mc.cmd small_mc.cmd time_mc.cmd cvh_pass.cmd host_job.cmd pi_calc.cmd tiny_mc.cmd small_mc.cmd time_mc.cmd cvh_pass.cmd host_job.cmd pi_calc.cmd tiny_mc.cmd small_mc.cmd time_mc.cmd cvh_pass.cmd host_job.cmd pi_calc.cmd tiny_mc.cmd small_mc.cmd time_mc.cmd cvh_pass.cmd
#for i in host_job.cmd do





TIMEFORMAT="Total time in secs = %R, CPU in USER MODE %U, CPU in SYSTEM MODE %S, CPU PERCENTAGE %P "
`/usr/local/condor/bin/condor_submit $i`
time {


while :
do


QUEUE=`condor_q | grep jobs | cut --delimiter=";" -f 1 | cut --delimiter=" " -f 1`


       if test $QUEUE -eq 0

       then
               break
       fi



done
}


done


----------------------------------------------------------------------------------------------------------------------------------------------------------------------


The results are :



Total time in secs = 105.204, CPU in USER MODE 69.500, CPU in SYSTEM MODE 15.100, CPU PERCENTAGE 80.41

Total time in secs = 1011.845, CPU in USER MODE 141.830, CPU in SYSTEM MODE 28.130, CPU PERCENTAGE 16.79

Total time in secs = 193.555, CPU in USER MODE 31.520, CPU in SYSTEM MODE 6.740, CPU PERCENTAGE 19.76