From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Galbraith Subject: Re: dvb usb issues since kernel 4.9 Date: Wed, 10 Jan 2018 04:02:48 +0100 Message-ID: <1515553368.8252.5.camel@gmx.de> References: <20180109154235.2a42f0a0@vento.lan> <20180109222604.64d4377c@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 8BIT Cc: Linus Torvalds , Peter Zijlstra , Alan Stern , Ingo Molnar , Josef Griebichler , Greg Kroah-Hartman , USB list , Eric Dumazet , Rik van Riel , Paolo Abeni , Hannes Frederic Sowa , linux-kernel , netdev , Jonathan Corbet , LMML , David Miller To: Jesper Dangaard Brouer , Mauro Carvalho Chehab Return-path: In-Reply-To: <20180109222604.64d4377c@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Tue, 2018-01-09 at 22:26 +0100, Jesper Dangaard Brouer wrote: > > I've previously experienced that you can be affected by the scheduler > granularity, which is adjustable (with CONFIG_SCHED_DEBUG=y): > > $ grep -H . /proc/sys/kernel/sched_*_granularity_ns > /proc/sys/kernel/sched_min_granularity_ns:2250000 > /proc/sys/kernel/sched_wakeup_granularity_ns:3000000 > > The above numbers were confirmed on the RPi2 (see[2]). With commit > 4cd13c21b207 ("softirq: Let ksoftirqd do its job"), I expect/assume that > softirq processing latency is bounded by the sched_wakeup_granularity_ns, > which with 3 ms is not good enough for their use-case. Note of caution wrt twiddling sched_wakeup_granularity_ns: it must remain < sched_latency_ns/2 else you effectively disable wakeup preemption completely, turning CFS into a tick granularity scheduler. -Mike