scheduled tasks - How to get the elapsed time of a bunch of PBS Torque jobs? -


i'm using pbs torque run multiple jobs. idea simple, each job works on shunk of data. pbs_torque job_script launch job called run_appli.sh

here simple code (code 1) launch 10 jobs

for in 1 2 3 4 5 6 7 9 10 do; qsub run_appli.sh ; done  

indeed, can monitor execution of each of jobs using qstat (see command below) , have elapsed time of each job.

watch -n1 -d `qstat` 

however, interested overall elapsed time. means time starting when launched jobs (code 1) , when last job finished execution.

does have idea on how ?

if know job id of first job, can @ it's ctime (creation time, or time queued). can check end time last job's comp_time. difference between 2 total time elapsed.

qstat -f $first_job_id | grep ctime # shows first job's queued time qstat -f $last_job_id | grep comp_time # shows final job's completion time. 

if last job's isn't completed, running elapsed time current time - first job's queue time.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -