Skip to content

Abandon jobs which are unreasonably delaying their flight

Ian Jackson xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21ts-hosts-allocate-Executive: with -U, just append to the same logfilets-hosts-allocate-Executive+5 -30 replies
2/21selecthost: Honour new $none_ok optional parameterOsstest/TestSupport.pm+7 -40 replies
3/21ts-logs-capture: Do not try to capture logs of hosts not allocatedts-logs-capture+6 -10 replies
4/21alloc_resources: Support special abandonment valuesOsstest/Executive.pm+14 -70 replies
5/21starvation: Teach sg-report-flight about starved step statesg-report-flight+3 -30 replies
6/21starvation: Teach archaeologists about starved job stateOsstest/Executive.pm sg-report-flight+13 -20 replies
7/21starvation: Teach ms-flights-summary about job state starvedms-flights-summary+5 -40 replies
8/21starvation: Teach sg-execute-flight about job state starvedsg-execute-flight+1 -10 replies
9/21step handling: Preserve step states set by ts-* scriptstcl/JobDB-Executive.tcl+4 -10 replies
10/21TestSupport: Make "broken" print the actual job stateOsstest/TestSupport.pm+1 -10 replies
11/21JobDB::Executive: step_*: fix log messages to talk about "steps"Osstest/JobDB/Executive.pm+2 -20 replies
12/21starvation: Permit step_finish to set the state `starved'Osstest/JobDB/Executive.pm+1 -10 replies
13/21TestSupport: Make "broken" set the step state tooOsstest/TestSupport.pm+11 -00 replies
14/21tcl/JobDB-Executive: Do not squash "starved" statustcl/JobDB-Executive.tcl+1 -00 replies
15/21starvation: Propagate starved job status into dependent jobsOsstest/JobDB/Executive.pm+2 -00 replies
16/21ts-host-allocate-Executive: Break out $now and add a newlinets-hosts-allocate-Executive+3 -10 replies
17/21starvation: Use "starved" for hostalloc_maxwait_maxts-hosts-allocate-Executive+11 -40 replies
18/21starvation: Infrastructure for jobs which are delaying their flightsOsstest/Executive.pm mg-hostalloc-starvation-demo+123 -00 replies
19/21starvation: Abandon jobs which are unreasonably delaying their flightts-hosts-allocate-Executive+105 -00 replies
20/21hostalloc_maxwait_max: Use starvation most_optimisticts-hosts-allocate-Executive+9 -40 replies
21/21starvation: Better logging/debugging outputts-hosts-allocate-Executive+11 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [OSSTEST PATCH 00/21] Abandon jobs which are unreasonably delaying their flight

Sometimes we find ourselves seriously lacking the capacity to run particular job(s). The result can be that the whole system stands mostly idle while a small proportion of the resources runs flat out with a giant queue.

In this series we arrange for osstest to be able to spot this happening, and automatically rebalance load by give up earlier on the jobs which are overly-contended.

There are some tuning parameters, of course. To summarise, I have chosen here to treat jobs as starved if (for example):
We have completed 90% of the flight, and the remaining 10% is projected to take 5x as long as the first 90%.
(The "90%" is by number of jobs.) See the patch
starvation: Infrastructure for jobs which are delaying their flights
for details of the heuristic and its parameters.

When situations like this persist it will still be good to manually balance the load by adjusting the job mix in submitted flights. This is because the starvation will not necessarily drop the same job in subsequent flights on the same "branch", so starvation will impair the regression detection.

Ian Jackson (21):
ts-hosts-allocate-Executive: with -U, just append to the same logfile
selecthost: Honour new $none_ok optional parameter
ts-logs-capture: Do not try to capture logs of hosts not allocated
alloc_resources: Support special abandonment values
starvation: Teach sg-report-flight about starved step state
starvation: Teach archaeologists about starved job state
starvation: Teach ms-flights-summary about job state starved
starvation: Teach sg-execute-flight about job state starved step handling: Preserve step states set by ts-* scripts
TestSupport: Make "broken" print the actual job state JobDB::Executive: step_*: fix log messages to talk about "steps"
starvation: Permit step_finish to set the state `starved'
TestSupport: Make "broken" set the step state too tcl/JobDB-Executive: Do not squash "starved" status
starvation: Propagate starved job status into dependent jobs ts-host-allocate-Executive: Break out $now and add a newline
starvation: Use "starved" for hostalloc_maxwait_max
starvation: Infrastructure for jobs which are delaying their flights
starvation: Abandon jobs which are unreasonably delaying their flight
hostalloc_maxwait_max: Use starvation most_optimistic
starvation: Better logging/debugging output

 Osstest/Executive.pm         |  95 ++++++++++++++++++++++++++---
 Osstest/JobDB/Executive.pm   |   8 ++-
 Osstest/TestSupport.pm       |  24 ++++++--
 mg-hostalloc-starvation-demo |  53 ++++++++++++++++
 ms-flights-summary           |   9 +--
 sg-execute-flight            |   2 +-
 sg-report-flight             |  17 +++++-
 tcl/JobDB-Executive.tcl      |   6 +-
 ts-hosts-allocate-Executive  | 142 ++++++++++++++++++++++++++++++++++++++++---
 ts-logs-capture              |   7 ++-
 10 files changed, 328 insertions(+), 35 deletions(-)
 create mode 100755 mg-hostalloc-starvation-demo
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel