From nobody Mon Feb 9 19:07:25 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=eu.citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1573239104; cv=none; d=zoho.com; s=zohoarc; b=O5az2FlVCuzEJjM376x0RB9SWI7xCqF9T9mG7T219XDapg8SGXxIWLVHJLXuH8ND/bSsgcSgMZTv+u/TgoXgFimn8AWIt6qETSSIq17/pBa6XBfTaqQH4DNndyhVrwbsFWnHYP9DctwE6+jhvITMjnTSlWuwqRVswkX3lIsCkIo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573239104; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=rTO+BA3eIQFtNTX5IW8nlyCAGypXAF6/C/fbHtQuv3U=; b=j2z5Ehl2Q3ihXB4lGK77Jk98kZzwCxRrKhDLv2p/TgpLjen4I7Du9xvfHN+hA93/yAd++adHexChUqJbZJQcj2eboxNWDjP0MKS1csXUm8SjYcqp5K4VEB3e1opEIF4Tw0JrqzwpzpBhXNaftLwNvEzN6BcfHTudG7wW/i67Pkw= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; 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; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1573239104028893.6596428009289; Fri, 8 Nov 2019 10:51:44 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iT9LL-00087L-H3; Fri, 08 Nov 2019 18:50:47 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iT9LK-00085v-Iy for xen-devel@lists.xenproject.org; Fri, 08 Nov 2019 18:50:46 +0000 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 9b834956-0258-11ea-b678-bc764e2007e4; Fri, 08 Nov 2019 18:50:17 +0000 (UTC) X-Inumbo-ID: 9b834956-0258-11ea-b678-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1573239018; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=TQCtTGBmmDb5scOA0VpHUTgySXdmqy5f/e02MJ+nftc=; b=c2wM8n1tri6ncopg1X9eJubqT0UPix3MOHI5uAEapzibfdW7WljhYj8B lEbW0vnzAIxUqisQhy27OcyJdxNBZnw3DCb1c6GYk+7RXn4QYG8Q+ndWK RCE5FjrT5Btvl6ixfKf24R1UCOnApb9jHGfrFnipsgiH9cLjlDIlgTPgA U=; Authentication-Results: esa3.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 (esa3.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=esa3.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="ian.jackson@eu.citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa3.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=esa3.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 ip4:168.245.78.127 ~all" Received-SPF: None (esa3.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=esa3.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: NC6aOfaSshiR4xICS+9IzE0Zym+lzhhlFoIewgreZ2U+DHkVWlvdruz7Xj+xkY61LqpeV4UfEa UB+1w6aJpcR4en2kn5DsUGJR+AG6edZQ6qyODv1ellu0ixDFsAmLuyWayjA2D6NF961iUUG6hm HapkjaydCq+ysJJQdGJcBBl6XgezJz4ijio2y1SeRx9tmCcBf+3OqTTF7HUdhsh8KV69rHHKTs OpHODVC2pOsZSeJ/XEssCNvHWh4koVq28RIoi57RtfTQ7PQss37OsR9AydJ998uhcQ5wr7vYc1 QFU= X-SBRS: 2.7 X-MesageID: 8076040 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.68,282,1569297600"; d="scan'208";a="8076040" From: Ian Jackson To: Date: Fri, 8 Nov 2019 18:50:00 +0000 Message-ID: <20191108185001.3319-13-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191108185001.3319-1-ian.jackson@eu.citrix.com> References: <20191108185001.3319-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 12/13] sg-report-host-history: Cache runvar queries (power information) 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" X-ZohoMail-DKIM: fail (Header signature does not verify) This per-job processing was not done with jobquery, so was not cached. We assign it the cache letter `p'. Signed-off-by: Ian Jackson --- sg-report-host-history | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/sg-report-host-history b/sg-report-host-history index 7c2116d3..a11b00a0 100755 --- a/sg-report-host-history +++ b/sg-report-host-history @@ -322,6 +322,9 @@ END =20 my $alternate =3D 0; my $wrote =3D 0; + my $runvarq_hits =3D 0; + my $runvarq_misses =3D 0; + foreach my $jr (@rows) { if ($wrote++ >=3D $limit) { $write_cache_entry->($jr); @@ -372,7 +375,11 @@ END print H "{ColourAttr}>$ri->{Content}\n"; =20 my %powers; - do { + if ($jr->{'%p'}) { + %powers =3D %{ $jr->{'%p'} }; + $runvarq_hits++; + } else { + $runvarq_misses++; $jrunvarq->execute($jr->{flight}, $jr->{job}, $ident); my %runvars; while (my ($n, $v) =3D $jrunvarq->fetchrow_array()) { @@ -383,7 +390,8 @@ END next unless $r =3D~ m{^\Q${ident}\E_power_}; $powers{$'} =3D $runvars{$r}; } - }; + $jr->{'%p'} =3D { %powers }; + } my $skipped =3D 0; my $any_power =3D 0; my $pr_power_colour =3D sub { @@ -429,6 +437,9 @@ END close H or die $!; rename "$html_file.new", "$html_file" or die "$html_file $!" if $doinstall; + + print DEBUG "HOST CACHE RQ $runvarq_hits / ". + ($runvarq_hits+$runvarq_misses)."\n"; } =20 foreach my $host (@ARGV) { --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel