Received: by 10.223.176.46 with SMTP id f43csp864655wra; Wed, 24 Jan 2018 07:06:52 -0800 (PST) X-Google-Smtp-Source: AH8x225w9PTOUDvSKKpiR1hrmFwhcr8spg222eUquOX7SX1dOyCN/CPdPm4IfgNAzXPM6TESHa3s X-Received: by 2002:a17:902:69c5:: with SMTP id m5-v6mr8255708pln.347.1516806412741; Wed, 24 Jan 2018 07:06:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516806412; cv=none; d=google.com; s=arc-20160816; b=dJ268z+0cqOeJGEg7uVClKc60E3DnYOoTHIiPe6WH2It6HERX3UUCpuXtmzBUq9mYO h72hDtfk0rn8p5vecpu2HA4yR8nI9lBNSNCSAeo2yj0tOB5kdfBczSdbkG+Vz5bAnAbQ rEuhBy/YERBFn2pNvVJ7oJxiuXGqqgwJIpF0OIWrkNmtMyvjUqsFzFw6C6jOXHE6q+r7 q4dtlj+06CMfUgW0uNMwlf0UsiAVDJ5YZviM0V2z0neHKzziDCQykfBe+NSBORrwMKCd MQVdmuIE3PDC9kvOUBSFAqKFMcwRRRHMRfI55w87sAyQcBqSvR2rAEiNfgSHiMHRQOpW HX3Q== 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=fbNDjGC+IFNdk+kkGKXlL3Gy3doX3d1PBWby3VyHKbY=; b=m9j/SsoViNNgC7EPNd+QFzhWffl+gUV7LNUmeRBzOeLS8ILqvjQC/Z0M/dBfvANWly jgFaal5J/1n47eeZjHz7jjCHbNt29F58BAGrl18EbQRr6K8Q5ZW4xMGDcvi67EqwNvge ys9n3P70LKPtTTHPmt8YN7O0SZS5c+ww1D1IxCN/G3axzI4LPdrH+hBA16p8Z0qK7u0g O4le4uI/oQYSakRvSDmGO5eREZgK0vTaA4R3JJukWgbji/6/IAjBxuI0qgeRcCiNME1u cf3IpQrpi8wnWknNtCocbnXrfV1nmz35BL5VqNmu8JMOkNM+4tGEkWj/e3/3KtzW46D7 jeuQ== 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 g1-v6si303489pld.639.2018.01.24.07.06.38; Wed, 24 Jan 2018 07:06:52 -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 S934032AbeAXPGC (ORCPT + 99 others); Wed, 24 Jan 2018 10:06:02 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:44868 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933948AbeAXPGC (ORCPT ); Wed, 24 Jan 2018 10:06:02 -0500 Received: from localhost (pool-173-77-163-229.nycmny.fios.verizon.net [173.77.163.229]) (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 CFFE8108953D7; Wed, 24 Jan 2018 07:05:59 -0800 (PST) Date: Wed, 24 Jan 2018 10:05:58 -0500 (EST) Message-Id: <20180124.100558.97132829347179555.davem@davemloft.net> To: pabeni@redhat.com Cc: torvalds@linux-foundation.org, frederic@kernel.org, linux-kernel@vger.kernel.org, alexander.levin@verizon.com, peterz@infradead.org, mchehab@s-opensource.com, 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, nks.gnu@gmail.com Subject: Re: [RFC PATCH 0/4] softirq: Per vector threading v3 From: David Miller In-Reply-To: <1516805645.2476.23.camel@redhat.com> References: <1516726652.2554.58.camel@redhat.com> <1516805645.2476.23.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]); Wed, 24 Jan 2018 07:06:01 -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: Wed, 24 Jan 2018 15:54:05 +0100 > Niklas suggested a possible relation with CONFIG_IRQ_TIME_ACCOUNTING=y > and indeed he was right. > > The patched kernel under test had CONFIG_IRQ_TIME_ACCOUNTING set, and > very little CPU time was accounted to the kworker: > > [2125 is the relevant kworker's pid] > grep sum_exec_runtime /proc/2125/sched; sleep 10; grep sum_exec_runtime /proc/2125/sched > se.sum_exec_runtime : 13408.239286 > se.sum_exec_runtime : 13456.907197 > > despite such process was processing a lot of packets and basically > burning a CPU. So IRQ_TIME_ACCOUNTING makes the scheduler think that the worker threads are using nearly no task time at all. The existing ksoftirqd code should hit the same problem, right?