Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1892754imj; Fri, 8 Feb 2019 09:02:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IaTQg7c52or+2MuQ8SQ+VPjasL2/owxbQC+i/hW2dfk2QeRmDq25BQXS01Gw6upCr98TfKC X-Received: by 2002:a17:902:8303:: with SMTP id bd3mr15909432plb.10.1549645361961; Fri, 08 Feb 2019 09:02:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549645361; cv=none; d=google.com; s=arc-20160816; b=y9P9MzEF6YxDP8Nx6sI40LOrXHvE/zpo3QtxsooleS38dzY83C0LJLUAiMAdGuwC/7 YsW84TrfJLvHX/jaEfrGoDMqNK2pqriDht9QAh4MunfvHgcp6G1SgELvurDponz2T7WF hvtwiZGH44OM1+I9uS4ZdKrrp9CG4bA/fHUt6O0dVYxKV0iffjhgSVzz6+w1pwQOG699 EzOVMA3cJndbPBaH1AttybKD2aDqJwEzqqP8mKrtdm3A04l2ZSRoIpwDi9FEDLRBFG5R l2wQrtBvaBaDnfq2qsiRTjjeotKL+TGiIYW4+yOLBVJycMQNMZE7BzhFzOZ4VpR/xYPT YN7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=rm7kARf9vbsP+kCmBwwYfF0nZM5uNj5N5ELT0Tm1a18=; b=kQwiPzOOMOsfYA2aiZs9XH4aQ3bQXbRY7CIUv7AXPpccWbL+31Ghri4fWSG+1vZ9Ea LPAKsGyHqoeiSNN8jvv6Lpkv98G30tKJhiUHkB19AZEgG8Z5Bp+qF+6bNUpF1uZtnuon +bhG8k9XY28vT6sXJm5KmW1zKwyajWvyFhWic6zrvqHWERwt/7G2sqBsHZIDutpKCtJ0 mMGXtcKFOUpHExtqyutE76NCqsUwRH1wojAHsIOJf8a8M07O7IFiyckfqSKaBetN+aCX 0f5YSA7gqWEePe2hnbph9QR3RhAbdXs0eApdXTTjNFEyj/DZLZxMR9LqlR5tRrGdin5k Ne6g== 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 6si2763639plc.241.2019.02.08.09.02.25; Fri, 08 Feb 2019 09:02:41 -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 S1727728AbfBHRBv (ORCPT + 99 others); Fri, 8 Feb 2019 12:01:51 -0500 Received: from mx2.suse.de ([195.135.220.15]:48620 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727139AbfBHRBu (ORCPT ); Fri, 8 Feb 2019 12:01:50 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 32F09AF1B; Fri, 8 Feb 2019 17:01:49 +0000 (UTC) Date: Fri, 8 Feb 2019 09:01:37 -0800 From: Davidlohr Bueso To: Thomas Gleixner Cc: LKML , Waiman Long , Matthew Wilcox , Andrew Morton , Alexey Dobriyan , Kees Cook , linux-fsdevel@vger.kernel.org, Miklos Szeredi , Daniel Colascione , Dave Chinner , Randy Dunlap , Marc Zyngier Subject: Re: [patch V2 0/2] genirq, proc: Speedup /proc/stat interrupt statistics Message-ID: <20190208170137.7w63kmg56ltjomsj@linux-r8p5> References: <20190208134802.218483159@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190208134802.218483159@linutronix.de> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 08 Feb 2019, Thomas Gleixner wrote: >Waiman reported that on large systems with a large amount of interrupts the >readout of /proc/stat takes a long time to sum up the interrupt >statistics. In principle this is not a problem. but for unknown reasons >some enterprise quality software reads /proc/stat with a high frequency. :) > >The reason for this is that interrupt statistics are accounted per cpu. So >the /proc/stat logic has to sum up the interrupt stats for each interrupt. > >The following series addresses this by making the interrupt statitics code >in the core generate the sum directly and by making the loop in the >/proc/stat read function smarter. > >V1 -> V2: Address review feedback: undo struct layout changes, make > variables unsigned and add test results to the changelog. > >Thanks, > > tglx > >8<---------------- > fs/proc/stat.c | 29 ++++++++++++++++++++++++++--- > include/linux/irqdesc.h | 1 + > kernel/irq/chip.c | 12 ++++++++++-- > kernel/irq/internals.h | 8 +++++++- > kernel/irq/irqdesc.c | 7 ++++++- > 5 files changed, 50 insertions(+), 7 deletions(-) Reviewed-by: Davidlohr Bueso