New job attribute to measure a job's total wait time


Forum Discussion: http://community.pbspro.org/t/new-job-attribute-to-measure-a-jobs-total-wait-time/1323

Background:

Today, there's no good way to measure the total time that a job waited in the Q state throughout its lifetime. You can do start time - queue time of a job, but it is not accurate if the job got preempted or qmove'd. Eligible time is also not accurate as it stops accruing for jobs which are over their limits, besides being an optional feature which many sites might not turn on. So, a new job attribute which measures the total time that a job waited in the Q state would be useful for statistical and accounting purposes.


External changes:

  • New job attribute "wait_time":
    • Format: Duration (HH:MM:SS)
    • Permissions: read-only for all users
    • It represents the time accrued by a job whenever it was in the 'Q' state during its lifetime.
    • Will be accrued regardless of other conditions: e.g - even if the job hits a limit or it can never run, the wait_time attribute will accrue time as long as the job is in the 'Q' state.
    • It will be set on normal jobs and subjobs only (not job array parents).
  • New E accounting record field 'wait_time':
    • Format: Duration (HH:MM:SS)
    • Will represent the total wait time of a job during its lifetime







OSS Site Map

Project Documentation Main Page

Developer Guide Pages