Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934115AbeALR0K (ORCPT + 1 other); Fri, 12 Jan 2018 12:26:10 -0500 Received: from mail-it0-f51.google.com ([209.85.214.51]:37464 "EHLO mail-it0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932859AbeALR0I (ORCPT ); Fri, 12 Jan 2018 12:26:08 -0500 X-Google-Smtp-Source: ACJfBovZobKI37V4mFT96Xq4Ag+hp/DuSm8lM2MERK9ULKce2CMUd5UEY95ZSVxPnrd66ZkNS/lzZ9dSnUW9kiEjSxA= MIME-Version: 1.0 In-Reply-To: <20180112101336.GT3040@hirez.programming.kicks-ass.net> References: <20180111163204.GE6176@hirez.programming.kicks-ass.net> <1515734588.10188.36.camel@gmx.de> <20180112101336.GT3040@hirez.programming.kicks-ass.net> From: Linus Torvalds Date: Fri, 12 Jan 2018 09:26:07 -0800 X-Google-Sender-Auth: Bgxz5oydv1ltbEIVnUMj6TOWQwg Message-ID: Subject: Re: [RFC 1/2] softirq: Defer net rx/tx processing to ksoftirqd context To: Peter Zijlstra Cc: Mike Galbraith , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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. Linus