From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751970AbeAWRmf (ORCPT ); Tue, 23 Jan 2018 12:42:35 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:46658 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751895AbeAWRme (ORCPT ); Tue, 23 Jan 2018 12:42:34 -0500 X-Google-Smtp-Source: AH8x225ZQj04V/19mlS7Ydaf4rV9ypPQ/UFTVuciAaeBCVZ22Ezj6TY9Ze1GP8KuVoaPhXttFst4DmIh2IRKWGuiPYo= MIME-Version: 1.0 In-Reply-To: <1516726652.2554.58.camel@redhat.com> References: <1516376774-24076-1-git-send-email-frederic@kernel.org> <1516702432.2554.37.camel@redhat.com> <20180123.112201.1263563609292212852.davem@davemloft.net> <1516726652.2554.58.camel@redhat.com> From: Linus Torvalds Date: Tue, 23 Jan 2018 09:42:32 -0800 X-Google-Sender-Auth: Z-6k3ltqKHZrngqnzjKqaz6VWk0 Message-ID: Subject: Re: [RFC PATCH 0/4] softirq: Per vector threading v3 To: Paolo Abeni Cc: David Miller , Frederic Weisbecker , Linux Kernel Mailing List , Sasha Levin , Peter Zijlstra , Mauro Carvalho Chehab , Hannes Frederic Sowa , Paul McKenney , Wanpeng Li , Dmitry Safonov , Thomas Gleixner , Andrew Morton , Radu Rendec , Ingo Molnar , Stanislaw Gruszka , Rik van Riel , Eric Dumazet Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 23, 2018 at 8:57 AM, Paolo Abeni 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