Re: [RFC PATCH 0/4] softirq: Per vector threading v3

Linus Torvalds
2018-01-23T17:42:35Z

On Tue, Jan 23, 2018 at 8:57 AM, Paolo Abeni <pabeni@redhat.com> wrote:
>
>> Or is it that the workqueue execution is simply not yielding for some
>> reason?
>
> It's like that.
>
> I spent little time on it, so I haven't many data point. I'll try to
> investigate the scenario later this week.

Hmm. workqueues seem to use cond_resched_rcu_qs(), which does a
cond_resched() (and a RCU quiescent note).

But I wonder if the test triggers the "lets run lots of workqueue
threads", and then the single-threaded user space just gets blown out
of the water by many kernel threads. Each thread gets its own "fair"
amount of CPU, but..

Linus