Received: by 10.213.65.68 with SMTP id h4csp3401354imn; Tue, 3 Apr 2018 04:25:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx48CBwzBOMqC/WdMg20rVIWswx0dPMjfXOcle0lZ4ZfQJMnj3cESOhOUzbUOk+HZtUQsXyMI X-Received: by 10.101.82.2 with SMTP id o2mr6836585pgp.126.1522754702265; Tue, 03 Apr 2018 04:25:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522754702; cv=none; d=google.com; s=arc-20160816; b=qo6yj2BXXye8Cbu+EsTzGzvZLdDJ5mHcWbfCIvYtQXbBInl0hJ6QWwvNPjYUChjuqP ceB+LbjnNIWK2dBnZECofdE/O6tKqYp52D5xKcpkqBM23q47QKNcO8s3pPBj8xGfwATJ rBSWUPkeAB/BYoMMrxIVI2ISA8D/Tp+e6KOXuCFyEGuBYjqUov8XoemopwVwVBKIX5+E 166Ej0s/JOFc+Vzu926DG8gdpnUffR3z4gnyYOBMcSNhmtxZOoGbWa+lsiIoGKpaoZ3N bPkye+FstBJLYG7kdYtgJ3pllmcACOcMOaZr9OFG9RLhuN8IAypYjFlLJbltHgMjPpIO HFUQ== 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=Z4+JI0eMbQRKcViIzyp42C3no4ZUeJv/w7TSN5ouTCs=; b=L5lDINbi/pRwjVfKo04DT+zpYzTFqZuWq/Z9+M5WpCe6dkiZ6Y/wUxs8CKtQWwc5FM XNSPGqwME2sw4BuUVCrFeaFav7bBkvALBvIlE62ZnUQgbNoiI6g5svpuePjgnMhebhtu MAAQRxGtRhYR0yS0YtjMTJRRpPqTLz9wkJukWoG/UuBhJiEH/Bz8cGqMWLidicfItfLn bp+XEri5KKD0fEm9KXdxReL2GyYboNUxHJLBZW6gv02kamSBuSzZX5WXPa1DLQeDJVnZ O8ScM00ckLeD8XzGN3jJWNIgBCdKyqRqqiInBYrEdI0TFwvmv0gWyiYTPY3s+mnQVV74 VE2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Y+a62VEp; 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 p8-v6si593031pls.605.2018.04.03.04.24.48; Tue, 03 Apr 2018 04:25:02 -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=Y+a62VEp; 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 S1755482AbeDCLXW (ORCPT + 99 others); Tue, 3 Apr 2018 07:23:22 -0400 Received: from merlin.infradead.org ([205.233.59.134]:38120 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755121AbeDCLXV (ORCPT ); Tue, 3 Apr 2018 07:23:21 -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=Z4+JI0eMbQRKcViIzyp42C3no4ZUeJv/w7TSN5ouTCs=; b=Y+a62VEpaN/jibDiEBXdTa7uf pfGZ/ViUHRycPaxKv+ofdMVBlQiOe/XypwrLgr7I2z2vZCR+hW6nK32Jfx+6oInXBZ9TaNRa/XEN7 AJnmuAkto1QgLg6NC9p/3z0e8yGHG4HKLIphrqHZHhKxG1JBaJR+233C9/YyH9t5uba4XYE0w3e9l vZC49AKaN+NBrEFA6XWSTYbxFPA2lwUnhL0DgFWlSvut/95dHlqXHllYvNEPzhH5ACt1JguAJa92S aET+nK2Sndvm+Coh5pN9yJZuFXVlnDZmI4+wK3zrQQWuMxHk6RqwsLGkC5qUqn67w/g46qua0JV3Z HPwve9TkA==; 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 1f3K1y-0002kt-7N; Tue, 03 Apr 2018 11:23:14 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A9CEE2029B0F8; Tue, 3 Apr 2018 13:23:11 +0200 (CEST) Date: Tue, 3 Apr 2018 13:23:11 +0200 From: Peter Zijlstra To: Thomas Gleixner Cc: Li RongQing , LKML Subject: Re: [PATCH] genirq: only scan the present CPUs Message-ID: <20180403112311.GF4043@hirez.programming.kicks-ass.net> References: <1522647902-11426-1-git-send-email-lirongqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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.