All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Jackson <iwj@xenproject.org>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <iwj@xenproject.org>
Subject: [OSSTEST PATCH 16/16] starvation: Do not count more than half a flight as starved
Date: Thu, 22 Oct 2020 17:45:06 +0100	[thread overview]
Message-ID: <20201022164506.1552-17-iwj@xenproject.org> (raw)
In-Reply-To: <20201022164506.1552-1-iwj@xenproject.org>

This seems like a sensible rule.

This also prevents the following bizarre behaviour: when a flight has
a handful of jobs that cannot be run at all (eg because it's a
commissioning flight for only hosts of a particular arch), those jobs
can complete quite quickly.  Even with a high X value because only a
smallish portion of the flight has finished, this can lead to a modest
threshhold value.  This combines particularly badly with commissioning
flights, where the duraation estimates are often nonsense.

Signed-off-by: Ian Jackson <iwj@xenproject.org>
---
 ts-hosts-allocate-Executive | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ts-hosts-allocate-Executive b/ts-hosts-allocate-Executive
index b216186a..459b9215 100755
--- a/ts-hosts-allocate-Executive
+++ b/ts-hosts-allocate-Executive
@@ -863,7 +863,7 @@ sub starving ($$) {
 	"D=%d W=%d X=%.3f t_D=%s t_me=%s t_lim=%.3f X'=%.4f (fi.s=%s)",
 	$d, $w, $X, $total_d, $projected_me, $lim, $Xcmp,
 	$fi->{started} - $now;
-    my $bad = $projected_me > $lim;
+    my $bad = $projected_me > $lim && $d >= $w;
     return ($bad, $m);
 }
 
-- 
2.20.1



      parent reply	other threads:[~2020-10-22 17:09 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-22 16:44 [OSSTEST PATCH 00/16] Bugfixes Ian Jackson
2020-10-22 16:44 ` [OSSTEST PATCH 01/16] share in jobdb: Break out $checkconstraints and move call Ian Jackson
2020-10-22 16:44 ` [OSSTEST PATCH 02/16] share in jobdb: Move out-of-flight special case higher up Ian Jackson
2020-10-22 16:44 ` [OSSTEST PATCH 03/16] PDU/IPMI: Retransmit, don't just wait Ian Jackson
2020-10-22 16:44 ` [OSSTEST PATCH 04/16] PDU/MSW: Warn that SNMP status is often not immediately updated Ian Jackson
2020-10-22 16:44 ` [OSSTEST PATCH 05/16] PDU/MSW: Break out get() Ian Jackson
2020-10-22 16:44 ` [OSSTEST PATCH 06/16] PDU/MSW: Break out action_value() Ian Jackson
2020-10-22 16:44 ` [OSSTEST PATCH 07/16] PDU/MSW: Actually implement delayed-* Ian Jackson
2020-10-22 16:44 ` [OSSTEST PATCH 08/16] PDU/MSW: Make show() return the value from get() Ian Jackson
2020-10-22 16:44 ` [OSSTEST PATCH 09/16] PDU/MSU: Retransmit on/off until PDU has changed Ian Jackson
2020-10-22 16:45 ` [OSSTEST PATCH 10/16] host reuse fixes: Fix running of steps adhoc Ian Jackson
2020-10-22 16:45 ` [OSSTEST PATCH 11/16] host reuse fixes: Fix runvar entry for adhoc tasks Ian Jackson
2020-10-22 16:45 ` [OSSTEST PATCH 12/16] Introduce guest_mk_lv_name Ian Jackson
2020-10-22 16:45 ` [OSSTEST PATCH 13/16] Prefix guest LV names with the job name Ian Jackson
2020-10-22 16:45 ` [OSSTEST PATCH 14/16] reporting: Minor fix to reporting of tasks with no subtask Ian Jackson
2020-10-22 16:45 ` [OSSTEST PATCH 15/16] host reuse fixes: Do not break host-reuse if no host allocated Ian Jackson
2020-10-22 16:45 ` Ian Jackson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201022164506.1552-17-iwj@xenproject.org \
    --to=iwj@xenproject.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.