Overview

PTL performance tests run large number of jobs. The tearDown() of these tests or setUp() of subsequent tests clean up by deleting these jobs using qdel. This qdel operation takes very long. Consequently these tests timeout. This is because ,the scheduler is constantly cycling and it may tell the server to start the jobs we are trying to delete. This makes server busy and the delete job requests have to wait to get processed until the server is done talking to the scheduler at the start of the sched cycle. Also, a lot of MoM and server<->MoM activity happens when terminating a running job. This adds delay.


Changes proposed to support deletion of large number of jobs in PTL are listed below.

Interface addition 

Following is the new interface that will be added

In fw/ptl/lib/pbs_testlib.py,

  1. Interface: _cleanup_large_num_jobs(job_ids=None, runas=None)

    Visibility: Private

    Synopsis: Helper function to delete large number of jobs. Will be called from cleanup_jobs if number of jobs for deletion is greater than 100.

    Details:  This function will get the process ids of the running jobs and kill them manually. It would then delete all jobs from server using ‘qdel -Wforce’.

Interface updates

Following are the updates that will be done to existing interfaces

In fw/ptl/lib/pbs_testlib.py,

In fw/ptl/utils/pbs_testsuite.py,

 





OSS Site Map

Project Documentation Main Page

Developer Guide Pages


Ignore this.  We may use it later for page characterization.