From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933370AbcFJQUh (ORCPT ); Fri, 10 Jun 2016 12:20:37 -0400 Received: from www.linutronix.de ([62.245.132.108]:37737 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751266AbcFJQUf (ORCPT ); Fri, 10 Jun 2016 12:20:35 -0400 Subject: Re: [PATCH][RT] netpoll: Always take poll_lock when doing polling To: Steven Rostedt References: <20160526195641.6c26e979@gandalf.local.home> <20160602161235.GA12971@linutronix.de> <20160604071131.08d449db@grimm.local.home> <20160610155717.GB10775@linutronix.de> <20160610121118.03f281e8@gandalf.local.home> Cc: alison@peloton-tech.com, LKML , linux-rt-users , netdev , Thomas Gleixner , Peter Zijlstra , Clark Williams , Eric Dumazet , David Miller From: Sebastian Andrzej Siewior Message-ID: <8582eb37-3b5b-ee7e-3a67-8f4609b0ac3f@linutronix.de> Date: Fri, 10 Jun 2016 18:20:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.1.0 MIME-Version: 1.0 In-Reply-To: <20160610121118.03f281e8@gandalf.local.home> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/10/2016 06:11 PM, Steven Rostedt wrote: >> It is true that in RT we don't have such a limit like in !RT. You would >> need to use __raise_softirq_irqoff_ksoft() instead the normal or + >> wakeup() since you may have timers pending and those need to go to the >> "other" ksoftirqd. >> But then I don't see much change. ksoftirqd runs now at SCHED_OTHER so >> it will end up on the CPU right away unless there other tasks that need >> the CPU. So the scheduler will balance it the same way. The only change >> will be that softirqs which are processed in context of any application >> for more than two jiffies will be moved to ksoftirqd. This could be a >> win. > > We actually triggered a starvation due to this. I was just seeing if > Alison hit the same issue we did in our tests. Okay. Didn't get this information from him. But this is only because the softirqs not running in ksoftirqd, right? > -- Steve > Sebastian