Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965036AbeALSQU (ORCPT + 1 other); Fri, 12 Jan 2018 13:16:20 -0500 Received: from mout.gmx.net ([212.227.17.20]:56855 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964853AbeALSQS (ORCPT ); Fri, 12 Jan 2018 13:16:18 -0500 Message-ID: <1515780912.21898.45.camel@gmx.de> Subject: Re: [RFC 1/2] softirq: Defer net rx/tx processing to ksoftirqd context From: Mike Galbraith To: Linus Torvalds Cc: Peter Zijlstra , 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 19:15:12 +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> <1515779049.21898.23.camel@gmx.de> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:XdlkXzYwCWT6FIoyyC8mUyTkH0qzACxofQIzs9oF+RUNL/GVZl0 /QOSe9yrB2yFNZNGDsfR+VijHOvBgVuFOWVfMkSlwaBU1d9/B1jPoUtJYQrngMBa/xBKcID oU4nlaLxPvrcmAaU4lkaJFfQhkOAdqapDzDpbhwHGUXcdF1XYeH0QGYhcqLaaywVjmweM4K b5OThmjjHbI8gIXB+GJ1w== X-UI-Out-Filterresults: notjunk:1;V01:K0:qY0z5ubk8J8=:pMJW528H7wt3KZ9CCyAbxO 8a4Mq0unOdiH5PASHOgPJIOYc7gkjE/51M5rpjhNiHyVW/DgboXo3c+SersTO0skoPx1dhVzp F3SyNBk+Urk1xy5U7MBtSjKrDtL+T2+sjTvmoHxD9h1lm1Tht99+BTf0k87rfF/OyJPZPikn2 MqsOPXaeDebPux38c64M1CcS54vCBD9g0xj6PphBHKEiyBckdCphG5eqsVhIrLxzLvyuC+72h F8H5K7/dMxD6Xwe1ZIiAfZcc9dpoXSXWTFUbfNoFyt75n0Oc6dP0dMhE/x24gRsJtNpPvtftF RR0HvKAkrDzTpUj/RfPxhEoQJyRhHONBCfDAxFMboFO6YzGjtSZnj3GXQiIczUl+0CXxtXJEh r3qkaOOFtEcqqBSnyKL/OrHSGGFxSeDBwsD4I707l/WC0FkQ/HWlJP4S4UE7m+/ScsYz/l+Xn uHC8BiD549A85blhVcaqOBSRVtkcOF5Oe6FiM58BkUiHOMyYStYw2RpMvhWFfd8xV8kzvo7iq xjjr7zdc6hNePwMS95BjG2v99DyGrVVGhvVeUCpL53nIeoxV9+v5yx+mYw30dW4nuQEIdDCfh AWub5Dsz/HibJigExg9pV7hDblGRIEiuSzRh3yB1QXSEShRbtcvJaZBtppmuKkKuKMQi4/JRh Jj7SsR1OfQz/ZhMFdDEPIdYMA+FBj8jkxVThD2iDWdtvA8GmLQjWS/jvVXO9y8wVtX8FRPPV1 Ky1ex/U7kpgz8hszhzqI1/kCKb3ZTqCQzzUlLhzTYB/AURQ/yhiD9db2BWdqjyXsTKc6fmLMh QpJpVUlN4z+1JRb73EFdA5sloNcBXqGlzWeylCE52iNyQl1ypg= 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:51 -0800, Linus Torvalds wrote: > On Fri, Jan 12, 2018 at 9:44 AM, Mike Galbraith wrote: > > > > 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. > > Ok, that sounds like it should work, but it also sounds like it's very > specific to RT itself. > > For example, the dvb issue was not about the timer softirqs, but about > the tasklet ones. > > So maybe we wouldn't need to split it for _every_ softirq, but we'd > need to split it more than just along the timer case. > > And it does sound a bit excessive to have ten fixed threads for every > CPU. The days when tens of CPU's meant "huge system" are gone. These > days it can be a phone. Yeah, it is excessive more often than not. You get to prioritize, and segregate, which is nice, but you pay for it. -Mike