From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1548CCDB465 for ; Mon, 16 Oct 2023 14:53:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233678AbjJPOxp (ORCPT ); Mon, 16 Oct 2023 10:53:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233581AbjJPOxn (ORCPT ); Mon, 16 Oct 2023 10:53:43 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A221AB; Mon, 16 Oct 2023 07:53:41 -0700 (PDT) Date: Mon, 16 Oct 2023 16:53:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1697468019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kYxGWux4bz1oifYiW1ESfMnhECuBhrHUbAQIAzCsCdk=; b=08pEtaXTRgkjC5/In32LsLPPD1O/UMtjzGU3yQbKnybq0ffF1HWcJJSjJQ+e+jU1a4YlW/ hknEptlxGFu/DVVItuh+hgpEowWjIuqGuAFBS9l11L+oIXHjXHbr/CPA41RXSGWV89ub9B 2ak0ggP3XdjI/CAUsOpxtigupxXn5Fv1/aWYIEhjtfnJNph9b0uv3iW4YRB/3sV8kbxOHM B6ybeDJzvdvMWesGxnSc6ZJP0FQzJE1BgWh/K5wI5BO7NeBIcQ+IR4zMusGe/we0rPycts JgGZq+iDpVNIR3adchWnrgFHRwey5pFMbJ3CUbGOAy61nQdoimv6G7XIGp8UYg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1697468019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kYxGWux4bz1oifYiW1ESfMnhECuBhrHUbAQIAzCsCdk=; b=/SJFTM2fCbawcyZjIS46roZClWxcsl/WYkcyBiBYwergMh5/z2qQ9OQLjwxZJx1Kmb7PIU jhFqf5qDSa1ocgAA== From: Sebastian Andrzej Siewior To: Jakub Kicinski , Wander Lairson Costa , juri.lelli@redhat.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Paolo Abeni , Peter Zijlstra , Thomas Gleixner , Come On Now Subject: Re: [PATCH net-next 0/2] net: Use SMP threads for backlog NAPI (or optional). Message-ID: <20231016145337.4ZIt_sqL@linutronix.de> References: <20230929162121.1822900-1-bigeasy@linutronix.de> <20231004154609.6007f1a0@kernel.org> <20231007155957.aPo0ImuG@linutronix.de> <20231009180937.2afdc4c1@kernel.org> <20231016095321.4xzKQ5Cd@linutronix.de> <20231016071756.4ac5b865@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231016071756.4ac5b865@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-10-16 07:17:56 [-0700], Jakub Kicinski wrote: > On Mon, 16 Oct 2023 11:53:21 +0200 Sebastian Andrzej Siewior wrote: > > > Do we have reason to believe nobody uses RPS? > > > > Not sure what you relate to. I would assume that RPS is used in general > > on actual devices and not on loopback where backlog is used. But it is > > just an assumption. > > The performance drop, which I observed with RPS and stress-ng --udp, is > > within the same range with threads and IPIs (based on memory). I can > > re-run the test and provide actual numbers if you want. > > I was asking about RPS because with your current series RPS processing > is forced into threads. IDK how well you can simulate the kind of > workload which requires RPS. I've seen it used mostly on proxyies > and gateways. For proxies Meta's experiments with threaded NAPI show > regressions across the board. So "force-threading" RPS will most likely > also cause regressions. Understood. Wandere/ Juri: Do you have any benchmark/ workload where you would see whether RPS with IPI (now) vs RPS (this patch) shows any regression? Sebastian