Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964937AbeALRpC convert rfc822-to-8bit (ORCPT + 1 other); Fri, 12 Jan 2018 12:45:02 -0500 Received: from mout.gmx.net ([212.227.17.20]:49264 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933451AbeALRpB (ORCPT ); Fri, 12 Jan 2018 12:45:01 -0500 Message-ID: <1515779049.21898.23.camel@gmx.de> Subject: Re: [RFC 1/2] softirq: Defer net rx/tx processing to ksoftirqd context From: Mike Galbraith To: Linus Torvalds , Peter Zijlstra Cc: Eric Dumazet , Dmitry Safonov , Frederic Weisbecker , LKML , Dmitry Safonov <0x7f454c46@gmail.com>, Andrew Morton , David Miller , Frederic Weisbecker , Hannes Frederic Sowa , Ingo Molnar , "Levin, Alexander (Sasha Levin)" , Paolo Abeni , "Paul E. McKenney" , Radu Rendec , Rik van Riel , Stanislaw Gruszka , Thomas Gleixner , Wanpeng Li Date: Fri, 12 Jan 2018 18:44:09 +0100 In-Reply-To: References: <20180111163204.GE6176@hirez.programming.kicks-ass.net> <1515734588.10188.36.camel@gmx.de> <20180112101336.GT3040@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K0:WUPt/a1qG+IpfCxy3/etAcxxKeN4PByECRSRm8UbNvZJw/c8vuM SpbRvi5XPVBDqO6Vus4l2dn5kFn33rxbv11ZIkKWtlbA1/413ITl21hiXQRP+QebgbKGFWw SI/M7Cf4EDK1IjuY8ffZE2YJuT7JsqZSDeTbteSXcwxy6xg/hVDuf5jACOpFhxmVjPr8d1m djJSThrbX/nDrzV5ngeXQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:qvwQwd1GYqQ=:ZBr5UB8dzn+rnTXrKVXCaZ oSaXh64ZafEiVEVYFnw2ysJ/zROx8fQrk3nkb2wIvIw5jD6D2Ql5GIaaPlHVryCziwfLLeDRV agKj0QYezNT/na+Kjt5y9oKP1yP0SFRfw0lvAClMgIfgJN6zDRzwzoQD/pnCYDDuevPqT91cP i0lgK90bHgRl7EY6CvtBg1FhIWuXibwTCuiEPgktCY9Ukeu6Wtu8OeFuAhSfOB73aGZcxhWvQ oLoQjcu1s8kWYYOB/jLMSnvPVfqqtDeMI+XP7E+9gKKgGl+HEFXPPa3XmnQjrGKo7rtD11q3f W/PVBDgRmXky+xz1nZ6xemvKm1GDJHLdK5nZN6HVOoZpWnfzHu2a6IfQGWATgWgwcLbzPpta6 q/28jLLPlS68p3kJbJD56RlI0rn1b0+HgdLKwNgzTiv4AK7IcfPM5OqJF+zrqyblF6XsX9kYp TEI/zGlYMk2H8LEnmxdSdFGAszpseNp3sKJ29LDe/YF5xXKCyuctutuQHhnQfdAmzOqzcMszQ aOQ+CrRuZd9yre68357tqr6TYisLKHfgyaHwrQ1z09eltoQnGgnrv8LuCowjs8yfWQNlgmOJM KmUzOw9XmmWZyDPXpOXV5m21Ze+2h+xCcHJvT7PvtneuoGFkOXc/g/fngM6pRCpwwcI7YmCrw 7TCdKopGQa0jxSo4u5YIUhLeyoEbJv2DON3JXGhfREF185jZUVVdDTwOh6XxAUSc3+xTI31+7 d7Za9tQN+8wo8U6fH4rz6fv7vj7tmNT5co3Gaqxq89qhQObLaz0FdwZQ+XtUxnR7H69hZs7Nk VhbOIzUQOhYyDFtNvyeF5Ww3Hkj9EUYb/IylPZXtaaaOXRE2tk= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Fri, 2018-01-12 at 09:26 -0800, Linus Torvalds wrote: > On Fri, Jan 12, 2018 at 2:13 AM, Peter Zijlstra wrote: > > On Fri, Jan 12, 2018 at 06:23:08AM +0100, Mike Galbraith wrote: > >> > >> How would that be better than what RT used to do, and I still do for my > >> RT kernels via boot option, namely split ksoftirqd into per-softirq > >> threads. > > > > Since we mention it; one of the problems RT has is that all RX is > > through a single softirq context, which generates a priority inversion > > between devices. > > Oh, yes, that is complete and utter shit. Not acceptable at all. > > As mentioned, it really would need to be per-cpu _and_ per-softirq. > > Which is why I thought workqueues might be the thing. Whatever RT is > doing is apparently just pure and utter garbage. Nah, a misunderstanding happened. ?RT that still offers full threading creates per-softirq threads per cpu. ?The regular trees split ksoftirqd into only two threads per cpu, one processes timer/hrtimer softriqs, the other processes the rest. -Mike