From nobody Wed Apr 24 16:38:24 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1561546069; cv=none; d=zoho.com; s=zohoarc; b=Ei07IPFPtkSHzLdpdmhs4UlRw73UkiCIu3AccWcbQdP1VFp6qVKH7Zl2DDHARn70gE/ScKWKI/+bGKAeQ1L7egCPL37q6fBu0/VpO1a4ABfG5I1IN7bGKm4G5aMp3ZddvPya4zefouxByOdIUUMqH8RN71Ljh3a2M0Tjf4PVP24= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561546069; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=DpkoY+lnSx2MrRiYOgVATqNj0URJUoyexyPSQHBN/qw=; b=BZD0Ef01cZX/TFN+z75mKZYe6tFT12eYBMt9gLMEhw8Q2sZ5+7NT7VolAh5t2elgGe3xSyTMbZKzFg9LyD5oHrxDeQ7V2pkdCH15poOxVsHoh4VRoMNGFIBUOuLwYh13eumVhWR/qXm1/e7s3mHpdyyoFvw2VxmAFUvQFHwfQlM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1561546069634838.5085494601258; Wed, 26 Jun 2019 03:47:49 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hg5Rk-0000kN-Bt; Wed, 26 Jun 2019 10:46:36 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hg5Rj-0000kH-97 for xen-devel@lists.xenproject.org; Wed, 26 Jun 2019 10:46:35 +0000 Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id a9f791af-97ff-11e9-8980-bc764e045a96; Wed, 26 Jun 2019 10:46:34 +0000 (UTC) X-Inumbo-ID: a9f791af-97ff-11e9-8980-bc764e045a96 Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=ian.jackson@eu.citrix.com; spf=Pass smtp.mailfrom=Ian.Jackson@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa1.hc3370-68.iphmx.com: no sender authenticity information available from domain of ian.jackson@eu.citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="ian.jackson@eu.citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa1.hc3370-68.iphmx.com: domain of Ian.Jackson@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="Ian.Jackson@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa1.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: gOuGfxEWyuIxSjy8R5kXMsPQeuwWWdob2xfYfHRIF9mGHLuFXutpRbb7Cw2HmNfH0szGJQVKl9 PojtA9sCY9MyHX7nWhQCXvOdHGvWCwups7gUYi8jc0YjUSAZ9oW/J6j2nL0xs8KKYcaUNqWLPx chRJrkWGFgEONUO8a3wW6dA55gw9ub3qYm7SYSvs0QrtZnEkSWl/SGZRKQ1G4xgRpBpKqEbzXY 2mx7mg8O+Feitogt+vugXEuQDPR1ac/smCByannS8f8eky1ZfJSIHXAnYJdI2FTfGD1g5RCRHW E+o= X-SBRS: 2.7 X-MesageID: 2261880 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.63,419,1557201600"; d="scan'208";a="2261880" From: Ian Jackson To: Date: Wed, 26 Jun 2019 11:45:54 +0100 Message-ID: <20190626104554.23768-1-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH] starvation: Do not give up if there are other jobs running X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" We want those other jobs to finish so that we can include the time they took, and the fact that they completed, in our calculations. Signed-off-by: Ian Jackson --- ts-hosts-allocate-Executive | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ts-hosts-allocate-Executive b/ts-hosts-allocate-Executive index 6b3da600..079ef1d1 100755 --- a/ts-hosts-allocate-Executive +++ b/ts-hosts-allocate-Executive @@ -788,9 +788,17 @@ sub starving ($$) { my $maxfin=3D0; while (my ($j,$st,$fin) =3D $starvation_q->fetchrow_array()) { if ($st eq 'preparing' || - $st eq 'queued' || - $st eq 'running') { + $st eq 'queued') { $w++; + } elsif ($st eq 'running') { + # We don't quit if there are still jobs running. Instead + # we wait until they are done and then see if how much we + # would be delaying their results. This does mean that a + # flight can be kept going, rather than being treated as + # starved, by a constant trickle of late jobs. But that + # is indistinguishable from a flight which is at the head + # of the queue for a small set of resources. + return (0, "job $j status $st, don't give up just yet"); } else { $d++; return (0, "job $j status $st but no step finished time!") --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel