Received: by 10.223.176.46 with SMTP id f43csp4367215wra; Tue, 23 Jan 2018 08:23:50 -0800 (PST) X-Google-Smtp-Source: AH8x225zmFXVWtr9L12JVWK79rYxHwdQrpJ74KlMvFzExv/nOmGGRzhQ5T815W4L6n3QFL7dsQUi X-Received: by 10.36.114.193 with SMTP id x184mr4269063itc.71.1516724629931; Tue, 23 Jan 2018 08:23:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516724629; cv=none; d=google.com; s=arc-20160816; b=Qk/RDEB+i0Rkq2GEEyGm9depFWWljnEyUuO1j3izTP1wsAmANEzLqfrrnOoKi1qcxc B+J6K//XbmyNVAXgB3laO5ORjV+5J+gw5nYk1LKqPYjsPM7J7QC4HL7f39QQ3bRDQ6J6 ynhNuDgRiomIgBucULfnBiVv/r0Hu+yV2iqCTenxBgxwKcwHEcLNKSEkAwtUimEiBpjO G8UblhdiUpXmOjKmYjGPbl1TgZfIBcDHKFk/lVGDUsyjXxyOWrDkTx6+LEV7mNmIkgpU 6vMhriyMDsbm5mVX5Ufb5ZaKfuzx0M9YTLE4Dst0AlvhngPEw30YyWtGtECGZtFAoQ9e pwwg== 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:from:subject:cc:to:message-id:date :arc-authentication-results; bh=D/YhVBL0C5YInETSveNRXAJWBGDmV8niUUbP7qDD3iw=; b=oD1gnfkKgJ4uQjKZ8jjCqHEgUsP0VzLXOYprMnBQDn1I2cbX/EDiE7lWkK8F6CgtBY 4+2lVcdeOuCaVOM7Nhry13s+UVljRSpBEZQsJkTGqSpjfTIXs+woQkb4jcK/by4DrWk3 LufDPJybYetkJ5sSG/P7AEWlHbSVHdCCmsFpk1t+k3QeNphFvS+wFxYomGA8CSKak1kP uXQsSiH0Ton8BVJmkAESTpx7lNpMY16bKDs3smmrqYcPTdVPaHcpIOTmbBMLv0XFn5MY 9+J7wZbW93lvBW1zjPrwCXC1VVe4edQ1cl25hhVFg+ToE10trqgldEfcAx0mxHAZpgbJ 24Yw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 81si15639646ioj.8.2018.01.23.08.23.35; Tue, 23 Jan 2018 08:23:49 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751658AbeAWQWF (ORCPT + 99 others); Tue, 23 Jan 2018 11:22:05 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:55316 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750994AbeAWQWE (ORCPT ); Tue, 23 Jan 2018 11:22:04 -0500 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 8D14C100A758F; Tue, 23 Jan 2018 08:22:02 -0800 (PST) Date: Tue, 23 Jan 2018 11:22:01 -0500 (EST) Message-Id: <20180123.112201.1263563609292212852.davem@davemloft.net> To: pabeni@redhat.com 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 Subject: Re: [RFC PATCH 0/4] softirq: Per vector threading v3 From: David Miller In-Reply-To: <1516702432.2554.37.camel@redhat.com> References: <1516376774-24076-1-git-send-email-frederic@kernel.org> <1516702432.2554.37.camel@redhat.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 23 Jan 2018 08:22:03 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? If so, that's going to work against the entire point of deferring softirq work into a thread. Or is it that the workqueue execution is simply not yielding for some reason?