Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5589756pxb; Mon, 28 Mar 2022 14:38:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVQyjYCOxFaOEB5bVJPhTX5LGhQPjLbAW1eft0oHzaZIZs3jGXChgeoqSIDSOBqMSeh6vC X-Received: by 2002:a9d:6545:0:b0:5cd:b111:86fb with SMTP id q5-20020a9d6545000000b005cdb11186fbmr10721763otl.342.1648503516196; Mon, 28 Mar 2022 14:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648503516; cv=none; d=google.com; s=arc-20160816; b=XtRPT8E5pjTK2M2zwhNxFL3k72LW0u41lQ57+iWuJNSY9nRM/taqNjk9gxNSa3SNK0 SnZXLBD2qh6fKPqMe15GDFd4+TdLHyDIiMme4JoXQabKB8oSVMUhssKIbW1C3v3i6rcS cTV0+BLQCAuC1GzTAGDfRpJTRjyDrxYhmeYkepYNoHEnuJoXOxT9CKxEZrxtNC8LnG2h J0TG4dF8zE//UKIt+bXecZ8LO7rxm97tJnLIqQu4o2sKw41cua4lyReAiXDI4cI79vR7 jrujJQ5Y0qtHlTr15alxWLQKfByJNQFO9qeOTOwoFCoV5ndUMStBEqd7jCBWwAy5E8L2 92UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=jeeRkgdL2XMHYYv8UvJ4xSbCeiEv9BEotn3AnIqKLpI=; b=qnrWYhxtjF7f2JcC+NAj2fdNvvPpJ0l2DlPEAO6ucXhq5Vb2xYqNn1CEY7Y78DqRJg xh8TZrvHDz+4O1mEhiO8sPgtsSPhVCrBMduhywUb0pObvG7w44shFee7IdniDO2Aq9h0 tTU4coejXv1kxd/F80uxbA9OmqCUBnD/3yJ4OX8MMItYWSj33yurndwTKAjO/3IBuISv N16krcK6hd4dA1ZLz2U4kNwhAiRL6kPoV6lEgwDZBZiu1en8O37hpoEb94kMIfzT5Xc5 cAmEq5MV+eSdwiE6s6SkFGwN2TaDASeLx3yRcIfb0zMugW4RLtP3FqXp/ZpkXvfYCDwo SMjA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s20-20020a056808209400b002ef0c3476b8si14987833oiw.312.2022.03.28.14.38.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 14:38:36 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BCDAB90CD0; Mon, 28 Mar 2022 14:15:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245035AbiC1SJh (ORCPT + 99 others); Mon, 28 Mar 2022 14:09:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245010AbiC1SJe (ORCPT ); Mon, 28 Mar 2022 14:09:34 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B99005DE42 for ; Mon, 28 Mar 2022 11:07:52 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nYtmI-0007iB-Qd; Mon, 28 Mar 2022 20:07:42 +0200 Received: from pengutronix.de (2a03-f580-87bc-d400-3f39-5bba-2215-6d78.ip6.dokom21.de [IPv6:2a03:f580:87bc:d400:3f39:5bba:2215:6d78]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 0478655CFA; Mon, 28 Mar 2022 18:07:39 +0000 (UTC) Date: Mon, 28 Mar 2022 20:07:39 +0200 From: Marc Kleine-Budde To: Tejun Heo Cc: Sebastian Andrzej Siewior , Rasmus Villemoes , Peter Hurley , Lai Jiangshan , Esben Haabendal , Steven Walter , linux-kernel@vger.kernel.org, Oleksij Rempel , Pengutronix Kernel Team , =?utf-8?B?QW5kcsOp?= Pribil , Jiri Slaby , linux-rt-users@vger.kernel.org Subject: Re: [RFC PATCH 0/2] RT scheduling policies for workqueues Message-ID: <20220328180739.o2nka5u72jj66ipg@pengutronix.de> References: <20220323145600.2156689-1-linux@rasmusvillemoes.dk> <20220328100927.5ax34nea7sp7jdsy@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jaohf7esmtmkbeyj" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 --jaohf7esmtmkbeyj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 28.03.2022 07:39:25, Tejun Heo wrote: > Hello, >=20 > On Mon, Mar 28, 2022 at 12:09:27PM +0200, Marc Kleine-Budde wrote: > > > Having a kthread per "low-latency" tty instance is something I would > > > prefer. The kwork corner is an anonymous worker instance and probably > > > does more harm than good. Especially if it is a knob for everyone whi= ch > > > is used for the wrong reasons and manages to be harmful in the end. > > > With a special kthread for a particular tty, the thread can be assign= ed > > > with the desired priority within the system and ttyS1 can be > > > distinguished from ttyS0 (and so on). This turned out to be useful in= a > > > few setups over the years. > >=20 > > +1 > >=20 > > The networking subsystem has gone the same/similar way with NAPI. NAPI > > handling can be switched from the softirq to kernel thread on a per > > interface basis. >=20 > I wonder whether it'd be useful to provide a set of wrappers which can ma= ke > switching between workqueue and kworker easy. Semantics-wise, they're > already mostly aligned and it shouldn't be too difficult to e.g. make an > unbounded workqueue be backed by a dedicated kthread_worker instead of > shared pool depending on a flag, or even allow switching dynamically. For NAPI a sysfs entry was added to switch to threaded mode: | 5fdd2f0e5c64 net: add sysfs attribute to control napi threaded mode | 29863d41bb6e net: implement threaded-able napi poll loop support | 898f8015ffe7 net: extract napi poll functionality to __napi_poll() regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --jaohf7esmtmkbeyj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmJB+WgACgkQrX5LkNig 013Z1ggAtDuYsJ8eovJaR23f5iytmtRRTA6QccpR0Mkf20o+g47two6oUywEU5dq mC3OVmG8STeZflRuUelhII1ghKhmUUXGAN5z/lYuTypmKeGJoZeebPuwYPjUbGo2 gHxxsKFpBhanPh4uFgFzq1AYPmdMYIdL1Io/fbjym0BL41fyKmJJsTFJ9P9iAQmn AXFr/VwU/Q0NbQD/SUKkzs0CvOoE5Zh1UvE2EIQCtFP8xUqiCAGx6ko0yEPrC5bS NOsJKRrO6rSHY3wIFW0r77w2mxQIkzn3W8EWVL7037RMiYt4EQjgbLs2+cPh7DfS +XEHOZs0yK2jpFKOpITZDOWfkPW+0g== =s07w -----END PGP SIGNATURE----- --jaohf7esmtmkbeyj--