Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp901808rdb; Thu, 15 Feb 2024 21:31:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVDEQ5MFIZcjLMvTpwS9poQQ4Yw1FF8A/dXOAMz9IDSdT6IKDiKDgNgaONc7piHxSuNLuOq8g0sTWL20RwfxmMeWUizvjGMF3AYeyYiOg== X-Google-Smtp-Source: AGHT+IGYWMinR4nFlWTGGHi+QyrZvlhk/aeidMjl5cCCeuthIZDYKXK6ohJCZOfB8VxlfiwcbwXf X-Received: by 2002:a17:90a:17a9:b0:299:98e:8b88 with SMTP id q38-20020a17090a17a900b00299098e8b88mr3386724pja.19.1708061501198; Thu, 15 Feb 2024 21:31:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708061501; cv=pass; d=google.com; s=arc-20160816; b=kJPk/csGi+CD+xG0r+0H0cNHg97qvWGwsFHMivqNqyFiaJ0CjjzH35HNi3jXTstWCo IRkuAaO1wmuVpWQweXAKUiru6/EMq1nM7LxOSRnIlNiCmb7WXgWAmadu7U77Oo5s5CVD rFqKGsoFXhSXpzdofq9cQ3/YEayE85/2y4ciy5pkYOSygCivEi0gDWERm70G0xZhK5gA +e3m7luCYhlmJqveHUfphPJyZXd0NhsysEQEUibR0u/dO5JRRQH/5Cf0SrWbSglzc7W1 pOMXtwSoYtly25ej4ovQLnhKJXWORCl+sEKMg+K0Nuz+zmLAiVObKuXX5mpwuXCy/0da C9HQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=tjqvFkfM5Lfa1Uthf+wvZFrrDCYAGzM+X3+/QDBtjEM=; fh=zKFf3asjDcUqoRegXqjl1nMyoiXn/mqDiz+4wycmOfo=; b=spz6Vojo69UYjOyru2h/3oGGX3MtoOpCHweA31w6Vd/p8Km3L8nXU3+GwFtnVcodTg Ij3uM2n9C/CjecTxzM3u4c4F7jFwo0ZwQZc/mnSWPnYwgQB2Tfoup/S8Hg2wB2j1fxni /c4PSzmlncQbDK64x4mAJbjN3rZIg7AdK74PRt/Flj3nQnH3ZAGv5RaxS6S1Q0vmd0Mk U4VRPCqQH7tDuFBZjOisJAEYZ2Jr8DYpVUCyI/DOk85n4lUWPNQNPVaEXg/XHi6u6Jd5 rRyR7QjZL4sjoPBiHCuZArAi4r+BgDihoemeXZXuhFuwyA6TNOW1i7h0FtkFja/uJRG1 6yZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CYk41q+X; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-68073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o3-20020a17090ac70300b00298db280de8si3964229pjt.29.2024.02.15.21.31.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 21:31:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CYk41q+X; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-68073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E116C2871B2 for ; Fri, 16 Feb 2024 05:31:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FA1113AC5; Fri, 16 Feb 2024 05:31:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CYk41q+X" Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 655AD12E5D; Fri, 16 Feb 2024 05:31:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708061490; cv=none; b=SoJxg2jKgThgm3yBJ4qTpKpNr4+R0bKh1a0MRIEbtzuGP1kgcVMvIwBVZuvMyVb/F/r/NY+wEuRblxxoEDZhWcThizjVI97brMPvESIFT+VbTbvpoFN9iYswfUQ2oZfemAHF19EDnnH/S201u8OQnfpFF9BkPXS6+WF4TyTXOrM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708061490; c=relaxed/simple; bh=IO6wXrWgnOjdRNHYOyVqjCgY14opWEM+FIcIepTxP2A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JlCl4B4P+ip47/mzFdPIgnkxjsoG3Scqc+TuIGgbPFYgUJ910FCrnNDjmMG+lG44glB33yHaLpfYwCtkW2aY7iz9nykT0wiH9NgKnqnn6dCwiC2FKKa61s8vr6dUprB2ecsueixEPiKgC33DJL+hdxUj1Ow3qsFrMffzdeMstCw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CYk41q+X; arc=none smtp.client-ip=209.85.216.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-29080973530so1336033a91.1; Thu, 15 Feb 2024 21:31:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708061489; x=1708666289; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=tjqvFkfM5Lfa1Uthf+wvZFrrDCYAGzM+X3+/QDBtjEM=; b=CYk41q+XMi7pEKFm5ccZKryI1/CHhTiA7ESChp5L3AErW7lk+c6fwAlDxdq0QA2Ziu Wq783wrwrhBm2ql3TTt2eYxeYsQYusCD//alGnMcBRn33hZin5Ki2tbdKnvj8jtVou+F lhphAjHoZYV2+O9FnhAo/8BbGWh+pcLIt3FU8Fg3SE5sd5lpge2VsZOW0ilLyaBEi1QC NEb+XQUJ/DW6gd3BPFVVUn+RF8r4E7QXHyJMxgNp9gj0hA8UEtAqkNzC71PRqQe7l9x+ bh0Qiy7wnzUNkc6fFp9hBB+gX0f9h9lx5FuBp8sKfXuj0Qu0802jdPJZV/o3VRj2fQb2 t0Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708061489; x=1708666289; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tjqvFkfM5Lfa1Uthf+wvZFrrDCYAGzM+X3+/QDBtjEM=; b=HR7kWmDHH4q5HyxWEjUGkObw+LKQETEY3i/Flsi+5WjXKAHKLOuzEX+3KP1nOe9thb JLg5ogYbJq0tInZ3/owStAFcUf+iEPnCh7m2gFdM4YFBkyAKRv1p/wtjyIB09UorLc12 8Me6Yi5M/A7xiLw/Ds+f8KyKvwSCr4Q9GWGT4C7IcZQga+7Arhiiezy2BtOurQHKtIWA vtUCnVXcYiuFO90FOOh+mAfLZWEHPKh0RN2g55wfXg33cLsnEw6lTU8i87qrxp+nB6gV gU10zsSu96OEeYXc/BKTAJZK5ZxfwVqsTlmliEKygs0p5GF851HrMOC2Y/q4ZspLqYBM lGCA== X-Forwarded-Encrypted: i=1; AJvYcCV2LLl/Vc2tJSsHqqbQ9q/Sf/0O1Co53K4ifxlZgdKJwuBYaJvJ/6ai+fckKg5NISDKhxg/iX83yj12DkwwbGyfzVxGKxq5 X-Gm-Message-State: AOJu0Yx22YpN8iIWUREUPawBtTK9D0y5/UrsRIlyZRaGy5WGvWjox4S6 N7jbOfIk4L4M3cVxJ2YRbsIEHoSI6XJ9YBQ/sg8Kt6GFibSscm5K X-Received: by 2002:a17:90b:fca:b0:299:3007:ad13 with SMTP id gd10-20020a17090b0fca00b002993007ad13mr1404504pjb.32.1708061488696; Thu, 15 Feb 2024 21:31:28 -0800 (PST) Received: from localhost (dhcp-141-239-158-86.hawaiiantel.net. [141.239.158.86]) by smtp.gmail.com with ESMTPSA id t22-20020a17090a1c9600b00298e639d17esm2647645pjt.22.2024.02.15.21.31.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 21:31:28 -0800 (PST) Sender: Tejun Heo Date: Thu, 15 Feb 2024 19:31:26 -1000 From: Tejun Heo To: torvalds@linux-foundation.org, mpatocka@redhat.com Cc: linux-kernel@vger.kernel.org, dm-devel@lists.linux.dev, msnitzer@redhat.com, ignat@cloudflare.com, damien.lemoal@wdc.com, bob.liu@oracle.com, houtao1@huawei.com, peterz@infradead.org, mingo@kernel.org, netdev@vger.kernel.org, allen.lkml@gmail.com, kernel-team@meta.com, Eric Dumazet , "David S. Miller" , David Ahern , Jakub Kicinski , Paolo Abeni , David Wei Subject: Re: [PATCH 6/8] net: tcp: tsq: Convert from tasklet to BH workqueue Message-ID: References: <20240130091300.2968534-1-tj@kernel.org> <20240130091300.2968534-7-tj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240130091300.2968534-7-tj@kernel.org> Hello, On Mon, Jan 29, 2024 at 11:11:53PM -1000, Tejun Heo wrote: > The only generic interface to execute asynchronously in the BH context is > tasklet; however, it's marked deprecated and has some design flaws. To > replace tasklets, BH workqueue support was recently added. A BH workqueue > behaves similarly to regular workqueues except that the queued work items > are executed in the BH context. > > This patch converts TCP Small Queues implementation from tasklet to BH > workqueue. > > Semantically, this is an equivalent conversion and there shouldn't be any > user-visible behavior changes. While workqueue's queueing and execution > paths are a bit heavier than tasklet's, unless the work item is being queued > every packet, the difference hopefully shouldn't matter. > > My experience with the networking stack is very limited and this patch > definitely needs attention from someone who actually understands networking. On Jakub's recommendation, I asked David Wei to perform production memcache benchmark on the backported conversion patch. There was no discernible difference before and after. Given that this is likely as hot as it gets for the path on a real workloal, the conversions shouldn't hopefully be noticeable in terms of performance impact. Jakub, I'd really appreciate if you could ack. David, would it be okay if I add your Tested-by? Thanks. -- tejun