Received: by 10.213.65.68 with SMTP id h4csp400233imn; Fri, 6 Apr 2018 02:07:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx49zVM32pR8+G8iGpUQMs7jSepqMzSSMPH6D9Di7Riwl3hlHa1X0E/Jmq3XbIHGY7Qar1nAT X-Received: by 10.98.130.140 with SMTP id w134mr19858300pfd.127.1523005678383; Fri, 06 Apr 2018 02:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523005678; cv=none; d=google.com; s=arc-20160816; b=FDzKV/fpAhmBKjH0InqH8GXWfNSSHj0xc/66hyQPgoO3q8NqtIimSuUYfwrjnTKnb5 cMvI6JkueEGxIxuFKcHSQFgEwda9ShQFsUs1BB2OQgwEqgh4HW2x/6AS682rTvizbbFT oBdMlbUvOwBO/nyMGLReVXrKSUbvCDu/o8k0GBOL9UfXP5/aBfCVaGpjUXvzipFQTCKZ 5QfhTgS//ve0Y5bCUjxGkL4BBlhbnSfUwqh9C+Re/1o0tgngsOzOtCowlOWDICDid7Tq EmsgsGD8/JfiYb65FiyquSEXeragPa5bqyO8IcRhqTKXxo5Sm+MYcFr/XB4iuYonvhfY TE4Q== 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:dkim-signature:arc-authentication-results; bh=GWKH3qAqNKTpyPVuyIWQ823D+YkjYp4b8H56zb55/fM=; b=QNDCL+beHpG+d4koxV91bUiiZf1boH0Mh0KYe5HeP6p5FhhSTzhEV+5OuiuKpixwX7 nRjGp7jxfCHqyyNWcmsbtk/ZxFgcHQ9X+h3pJE6t2hWemRO/IUyEFQBhfWf/x7V4hTTs J1jrO3e592LTL8eRS2s9/4j9PODmW8RPU4XYuru3aDXNMNwOTa8mWxUFtziAEfXTN8nM oFVpGHancLfVgSBd7hy6KhlycwxBBwF6iPrcLn7o7ZLRNHxUmpAO6CVwOTi7c8nSTrsN jJicpIxjzUCkoxLKeK9mGX3464sDgg2V3e+zeglsy3Ia3XCy+phJuvI751u9/wpJ/3CN TNpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=uXBSrbpD; 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 n3-v6si7844439plb.147.2018.04.06.02.07.43; Fri, 06 Apr 2018 02:07:58 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=uXBSrbpD; 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 S1751946AbeDFJFI (ORCPT + 99 others); Fri, 6 Apr 2018 05:05:08 -0400 Received: from merlin.infradead.org ([205.233.59.134]:35132 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751494AbeDFJFH (ORCPT ); Fri, 6 Apr 2018 05:05:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=GWKH3qAqNKTpyPVuyIWQ823D+YkjYp4b8H56zb55/fM=; b=uXBSrbpDsGJQE47uCPZyDOoDp upFTfrOLAJLVpVNF2rSooF7qzDYWoT6uolLwm8cPyyDRShaEHy11MPlnHvTpWw6Ir3qHEPAr83hF0 AxGipHJqwjNDuyhaxvva+qsxtd2lFJeHCHnb7OUJVcgJJz97KeuTjGDtV8ezuYASZREIHG8fKgDKq NI5QY7W7aR9UnLn4+NCMIKXVxA0ZAlkCzrGkmgzyVIbQrDYkvs+zoMZgXejAit68AaNdxJlRqpc0P 9RmQTChGVIUWMmdfRrqCwweQ07qv2WSm62x1w0dxAZpDXSldmJ8T4ylt00w6CEJV84T86x56gpjJc iHMPig2xg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f4NIt-0006PU-K6; Fri, 06 Apr 2018 09:05:03 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5637B2029F86F; Fri, 6 Apr 2018 11:05:02 +0200 (CEST) Date: Fri, 6 Apr 2018 11:05:02 +0200 From: Peter Zijlstra To: Dou Liyang Cc: Thomas Gleixner , Li RongQing , LKML Subject: Re: [PATCH] genirq: only scan the present CPUs Message-ID: <20180406090502.GI4129@hirez.programming.kicks-ass.net> References: <1522647902-11426-1-git-send-email-lirongqing@baidu.com> <20180403112311.GF4043@hirez.programming.kicks-ass.net> <20180406090228.GI4082@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180406090228.GI4082@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 06, 2018 at 11:02:28AM +0200, Peter Zijlstra wrote: > On Fri, Apr 06, 2018 at 04:42:14PM +0800, Dou Liyang wrote: > > Hi Thomas, Peter, > > > > At 04/03/2018 07:23 PM, Peter Zijlstra wrote: > > > On Tue, Apr 03, 2018 at 12:25:56PM +0200, Thomas Gleixner wrote: > > > > On Mon, 2 Apr 2018, Li RongQing wrote: > > > > > > > > > lots of application will read /proc/stat, like ps and vmstat, but we > > > > > find the reading time are spreading on Purley platform which has lots > > > > > of possible CPUs and interrupt. > > > > > > > > > > To reduce the reading time, only scan the present CPUs, not all possible > > > > > CPUs, which speeds the reading of /proc/stat 20 times on Purley platform > > > > > which has 56 present CPUs, and 224 possible CPUs > > > > > > > > Why is BIOS/ACPI telling the kernel that there are 224 possible CPUs unless > > > > it supports physical CPU hotplug. > > > > > > BIOS is crap, news at 11. I've got boxes like that too. Use > > > possible_cpu=$nr if you're bothered by it -- it's what I do. > > > > > > > Yes, I think so. it is a manual way to reset the number. > > > > For this situation, I am investigating to restrict the number of > > possible CPUs automatically, But, due to the limitation of ACPI > > subsystem, I can do it _before_ setup_percpu_area where the number will > > be used. Ah, did you mean to day "I can _NOT_ do it" ? Still I don't see the point of frobbing random users if the whole thing is buggered.