Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3721296rwl; Mon, 27 Mar 2023 19:16:43 -0700 (PDT) X-Google-Smtp-Source: AKy350aZbC9JwNBX1osE9lCN3I/exxZAkk+btoyk5L4SG05RMGtX0uFmW56GTpmEKjqAnV4dD5yO X-Received: by 2002:a17:907:8b88:b0:925:f788:d76d with SMTP id tb8-20020a1709078b8800b00925f788d76dmr14801465ejc.27.1679969803055; Mon, 27 Mar 2023 19:16:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679969803; cv=none; d=google.com; s=arc-20160816; b=GX/i8ZJIb5IXDLJ1JFzh6gur2ZAcEudI3NZrxrcIG9N0OI5qYGL/VUR0udJMOYbhpy 6KDqkuLVur4+Hxli7SkEIrQPmcY+AIOw2rm/I8DpnlkzwEzpBper9/LxpYD1pwR5Z1Tx jetlYWQPvE3GwoyU9Yq9qPUE9tjVPPh+VVtStIycBGHMJSv99zhUE3gQyYpN+goVFJfu Xr2bcOsEakP42G4Nre9ZL2DkcY93wTDDv4HyegHX+E4z1wfV0pa2k3syOsoZ0PgYT97A hibDMHcHGX5gIUtFOs91QwQudxc9jLVCNX76Xq5j3PlI/UfbszKTtEDMbZRjZc2eUdxy bXyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=xULDKwTg5UDh9+jigCLsk1P9aL5R2t0TXDbif1NHczQ=; b=zhtDOWd+5rS3K0GXO6j0V3lNXq9OEhgV0iET5y2bM9Nm/R7BeM1Xb65pPWgmwkMVlz TT1LTi2PwxzCHNVjKAuHQBMHn102Ej4Ac6SuPTcVaWXMjmaGeiEwxUDv81PvZUX3xK62 yn9zbw96duM04hv1kZ7JnhWaJeIQODDUJYMh4HC/ckgcJW+zS4+bcyBR5oFh8qKal0yS WfpjCl4tFFumGw5hq2Jt6yTujpFnA+ZzMupcsmfks6xKCyzCOCBO0QxNAem6zscYDT8I Os+4bj0tBn7UdCqBo24iw6irHd8kBlfXNI5e1vscuSGaucttG+/q4LKj4DFivn9/89lj 3AEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OYcPQRHY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa37-20020a17090786a500b0093af9e3ac1dsi20191089ejc.46.2023.03.27.19.16.18; Mon, 27 Mar 2023 19:16:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OYcPQRHY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229645AbjC1CGf (ORCPT + 99 others); Mon, 27 Mar 2023 22:06:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230473AbjC1CGe (ORCPT ); Mon, 27 Mar 2023 22:06:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 733D4B2; Mon, 27 Mar 2023 19:06:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1C242B81A1F; Tue, 28 Mar 2023 02:06:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17E9DC433EF; Tue, 28 Mar 2023 02:06:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679969190; bh=G2/X1nXuF4BbomfyWKEAGkm9GJfAOUoBYypRSR+uX3A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OYcPQRHYl3iEM3EACDs9ZylOn6EOamZQJVgmvP6maOOeJSslXFYLwpm+CS9IO/mBs wWHkiqjGNKvqctLMIwqEjR6qy3FvnBvAJ9tpudHERd+ZnRpNNWbCh33p1ZE87a/cb2 ttMq8ZzMRpjBBy9MsJtAr/nIMlZuo4jJXOEEjktlcmkOq9mAyENkj1ZEAikP1q2yik eYRRsz0A7ukHQRAvyl9Vv/dnI9ZjMuSD0hQKCttt540sFjeMREOaF8ywrs6sX0xcvc sZso1+AvK1puOoOT9FJ65RiSw69Ht6eJth0HkIJgLbwlOseiuzgh3ui5vhtU5mQQj+ UxswxxQKL1NJw== Date: Mon, 27 Mar 2023 19:06:29 -0700 From: Jakub Kicinski To: Felix Fietkau Cc: netdev@vger.kernel.org, Jonathan Corbet , "David S. Miller" , Eric Dumazet , Paolo Abeni , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net/core: add optional threading for backlog processing Message-ID: <20230327190629.7e966f46@kernel.org> In-Reply-To: <2ef8ab92-3670-61a1-384d-b827865447ca@nbd.name> References: <20230324171314.73537-1-nbd@nbd.name> <20230324102038.7d91355c@kernel.org> <2d251879-1cf4-237d-8e62-c42bb4feb047@nbd.name> <20230324104733.571466bc@kernel.org> <20230324201951.75eabe1f@kernel.org> <2ef8ab92-3670-61a1-384d-b827865447ca@nbd.name> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 25 Mar 2023 06:42:43 +0100 Felix Fietkau wrote: > >> In my tests it brings down latency (both avg and p99) considerably in > >> some cases. I posted some numbers here: > >> https://lore.kernel.org/netdev/e317d5bc-cc26-8b1b-ca4b-66b5328683c4@nbd.name/ > > > > Could you provide the full configuration for this test? > > In non-threaded mode the RPS is enabled to spread over remaining > > 3 cores? > > In this test I'm using threaded NAPI and backlog_threaded without any > fixed core assignment. I was asking about the rps_threaded=0 side of the comparison. So you're saying on that side you were using threaded NAPI with no pinning and RPS across all cores?