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.
Following is the new interface that will be added
In fw/ptl/lib/pbs_testlib.py,
Following are the updates that will be done to existing interfaces
In fw/ptl/lib/pbs_testlib.py,
Interface:cleanup_jobs(extend=None, runas=None)
Synopsis: Updated to handle deletion of large number of jobs
Details: This method is now updated to delete large number of jobs.
In fw/ptl/utils/pbs_testsuite.py,
Project Documentation Main Page
Ignore this. We may use it later for page characterization. |