Received: by 10.223.176.46 with SMTP id f43csp4403237wra; Tue, 23 Jan 2018 08:58:13 -0800 (PST) X-Google-Smtp-Source: AH8x225sghIZBVvLaqE0Sg8VqnyYS9xGxR1yNHr43u4DwlINnt9RDi82Sb94JINK9bgOoCgucBmu X-Received: by 10.157.14.110 with SMTP id n43mr8836876otd.340.1516726693629; Tue, 23 Jan 2018 08:58:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516726693; cv=none; d=google.com; s=arc-20160816; b=ykCtjYrk4nFpfP5C4Xag902D/17E57DwhgZT/4AQ50cJ3pq9dWvaxBGpL+uKtXF0tN J62Z0f392/5t+O2e46JgLun0XpgZKKndiFOqFEGHAkDhhNauaw0MjyoqW4pTEgtARduF g77PAtACtzFcb2bzWx77psUzpnPkw1LFKSbdIId2uB+sdoch5NXdSUdHClwyiknqDDNH X4IRu/fy8z774wV91M/+HQNL3DhAjxEw4RPKK6EUBP/rOn+365jdHWfa+HK9tkSf8glU 2cq9ew/TiwzGy4bNydmCE4e+aGWdutSaEOTzJzcdkbHX/o9FF5Mvp2Sw2NQlKS73RDNE 2G9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=7uT8Cg1SIwKMzQFM1CFdyzKsGqGPLUJ/8rB8DKc6/RA=; b=kVNNgYPZmkbJUURVFYUnnt+iTCsSsOgUk/uZ29WLco3TmvJyMOAZ4iOnS2u1YP87+w wde85PKEB63wIx+y7G5+ESiH+jV5U5olgZMu/tXEpNGA8C80FWFKpOCjI1+85UWYCpIP MB175Zj/3gbuxgaVHDHsIjgKGI5ttSNgcbHOiQpMWMbwIGiN3F2XELnFWehaHCSvZOmc idM4KilkYZeAHRnj8KmCopPn8mzYfPCa98fwEtrwMfgrCQm2QJERT0+xWC2q8t6AuCFs mePaC559g+5qOsDISZvK+qdcM00LMdCgCBcDlRoZCRikDjF1F78lGYnVUt38nOHQTIob GZfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8si8789228ita.37.2018.01.23.08.58.00; Tue, 23 Jan 2018 08:58:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751426AbeAWQ5k (ORCPT + 99 others); Tue, 23 Jan 2018 11:57:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43932 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751259AbeAWQ5j (ORCPT ); Tue, 23 Jan 2018 11:57:39 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 18B2E82109; Tue, 23 Jan 2018 16:57:39 +0000 (UTC) Received: from localhost.localdomain (unknown [10.32.181.99]) by smtp.corp.redhat.com (Postfix) with ESMTP id 51E805F703; Tue, 23 Jan 2018 16:57:33 +0000 (UTC) Message-ID: <1516726652.2554.58.camel@redhat.com> Subject: Re: [RFC PATCH 0/4] softirq: Per vector threading v3 From: Paolo Abeni To: David Miller Cc: frederic@kernel.org, linux-kernel@vger.kernel.org, alexander.levin@verizon.com, peterz@infradead.org, mchehab@s-opensource.com, torvalds@linux-foundation.org, hannes@stressinduktion.org, paulmck@linux.vnet.ibm.com, wanpeng.li@hotmail.com, dima@arista.com, tglx@linutronix.de, akpm@linux-foundation.org, rrendec@arista.com, mingo@kernel.org, sgruszka@redhat.com, riel@redhat.com, edumazet@google.com Date: Tue, 23 Jan 2018 17:57:32 +0100 In-Reply-To: <20180123.112201.1263563609292212852.davem@davemloft.net> References: <1516376774-24076-1-git-send-email-frederic@kernel.org> <1516702432.2554.37.camel@redhat.com> <20180123.112201.1263563609292212852.davem@davemloft.net> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 23 Jan 2018 16:57:39 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-01-23 at 11:22 -0500, David Miller wrote: > From: Paolo Abeni > Date: Tue, 23 Jan 2018 11:13:52 +0100 > > > Hi, > > > > On Fri, 2018-01-19 at 16:46 +0100, Frederic Weisbecker wrote: > >> As per Linus suggestion, this take doesn't limit the number of occurences > >> per jiffy anymore but instead defers a vector to workqueues as soon as > >> it gets re-enqueued on IRQ tail. > >> > >> No tunable here, so testing should be easier. > >> > >> git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git > >> softirq/thread-v3 > >> > >> HEAD: 6835e92cbd70ef4a056987d2e1ed383b294429d4 > > > > I tested this series in the UDP flood scenario, binding the user space > > process receiving the packets on the same CPU processing the related > > IRQ, and the tput sinks nearly to 0, like before Eric's patch. > > > > The perf tool says that almost all the softirq processing is done > > inside the workqueue, but the user space process is scheduled very > > rarely, while before this series, in this scenario, ksoftirqd and the > > user space process got a fair share of the CPU time. > > Do workqueue threads get a higher scheduling priority than user > processes? As far as I can see, no: the workqueue thread has the same priority and nice level than the user space process. > 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. Cheers, Paolo