Article View: linux.kernel.netdev
Article #4080Re: [RFC net-next v2 2/5] selftests: net: py: add metric policy output
From: Jakub Kicinski
Date: Fri, 16 Oct 2026 16:59
Date: Fri, 16 Oct 2026 16:59
14 lines
5991 bytes
5991 bytes
On Mon, 5 Oct 2026 13:11:11 -0700 Stanislav Fomichev wrote:
> + ksft_metric_policy("nic.rx.dropped", summarize="max",
> + transform="rate", display_range={"min": 0})
IMO we should not be mixing any of this into the test.
We can hard code some heuristics into UI to match on names and create
sensible defaults. Here this feels out of place.
I would have expected only what you have as "regression policy"
in here. And only a subset of that. Naively we want to know
- if the metric is an error metric or perf metric (error metric
must be at 0, perf metric has to be analyzed for expected perf)
- whether it's a badness or goodness metric to distinguish wins
from regressions
Technical Details
Message-ID:
<20261016095920.5723689f@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347457-linux-kernel-netdev=dewy.ruReferences:
<20261005201115.2690830-1-sdf@fomichev.me> <20261005201115.2690830-3-sdf@fomichev.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347457-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: Re: [RFC net-next v2 2/5] selftests: net: py: add metric policy output Date: Fri, 16 Oct 2026 09:59:20 -0700 Organization: Usenet Network Message-ID: <20261016095920.5723689f@kernel.org> References: <20261005201115.2690830-1-sdf@fomichev.me> <20261005201115.2690830-3-sdf@fomichev.me> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2822763"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:BAmGMck+IPdu7Y/VcIuufjkICWk= sha256:DaNK++roy0yAOiqAAN/GUsZW+L1WWF12HuOWUeG5p9A= sha1:sg3mZpDsEaEPJ4mvgm9plIJFI84= sha256:myQG4KJYe6XXf3+XOrkmoO7M3WslIDahh78u9CATfD0= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 2D21B110598; Fri, 16 Oct 2026 20:12:16 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.64 X-Spam-Status: No, score=-3.64 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CmBm66jyxgWB; Fri, 16 Oct 2026 20:12:13 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-347457-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 3986B11057E; Fri, 16 Oct 2026 20:12:04 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sin.lore.kernel.org (Postfix) with ESMTP id 0D3DD240E0; Fri, 16 Oct 2026 17:00:41 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E0E94582E8; Fri, 16 Oct 2026 16:59:23 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WE0W7+aa" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6EAEB5349AB for <netdev@vger.kernel.org>; Fri, 16 Oct 2026 16:59:21 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792169963; cv=none; b=pddaYlqJGOlYv4pmMARAAHvjeg8aChbiCel+bJYTWE8BOYtrju4WoLlHDS3leEzwjsjjNSd9/QwDg+PQycIQhz/GUGICwmva0xznx4c1Fpw3HcAgUdUaqwDXMJ3Pmkl0RB4fDGj4DHcamVWOea2bR5LfIX9e64o6kv8HwOnm2uY= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792169963; c=relaxed/simple; bh=wqM6FEJq2vQ3XVHRKZCAI8IyVF9ERXWeC4dNI+OIK+0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bhumUCuPJYTzvlzgKpXqSy+Erk1Emz+csjdtrGMJJIrZC+RV0Cth9A32lTzGYkZtJE+Cz2C/CWehEj9htZ0z6zbKaDxx73nAyu9t13dVxWXW43VqX7td6jidOjfrtn3RCeFEhTBTrxqXXde4e6b/eb6ICm1HQSlvyeamAypLFYg= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WE0W7+aa; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id B907E1F000C7; Fri, 16 Oct 2026 16:59:20 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792169960; bh=K44KF7WHJdV0yB8Y8tDIVrPEvJQX/IXkcTUCiAK6x+A=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=WE0W7+aak1LJwdhFuyHORnBr9ZcK60lzd6A4a3YzP68Mgk+j+IJoZYYgkod5LdJtm AqdsLuVA05nmGV/JrFphEproCejjuMQzCd+okYvozdB76Re+ItkSOmVflWnTJqYouy lXn2+GCdq05WXqxa3J8lpR1WeLyso2xmg18YMTsQpk3eS0DKWiwZ8M78G7jPUwJl2J EFXV94tj1fD1ZGfHsp6FkxVzu3f5ZUA5hQDxrgX6ZvDKRpRTVtYc5YLfmxEdmsjajz /GWaOoJmWO9HITNhIGvxXINGMJc+RBvAOvy/34QOM3HMnwoTuHBGONLwxNabSbqOvo P0EKPhUyE9VQQ== X-Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com X-In-Reply-To: <20261005201115.2690830-3-sdf@fomichev.me> X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>