Received: by 10.213.65.68 with SMTP id h4csp3351411imn; Tue, 3 Apr 2018 03:27:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx49gcFtnXiHdVTNsWcemJl859mWzrvYWgVEYKBopmPEUAeGACacbzouaQ4mw34acPSrXkyyv X-Received: by 2002:a17:902:6a88:: with SMTP id n8-v6mr13668420plk.131.1522751247743; Tue, 03 Apr 2018 03:27:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522751247; cv=none; d=google.com; s=arc-20160816; b=Ey1FsdMqsSdgnsbrD6bk27sbo/hmMq35G64izd9ZtgwLRtKnzqBACkQPd9wRZ1lqie gCO3X5zO4V2fUpyJHBisH84vS4IhGEV2axXqxZVhJHO2lPNoHq08Utkw1i0uxjuuB80B +sCbKvVRXRy09vZp8qz/X87a4uy3niem9UGo2fMrmyVB3cGVs0LnqP+D2FDbrMOQaivC rcrZKcImOOcA1ZnuJdfiBux8a1eQn82gOg0kc/PiLeug5fxGSoGRzqLUlG3FEf7WJ9wT gGY1dlimOD3pI2+Zy/OFgUT87kBWadyDZFSSBZb10ZMmECQaeuMoAY+QAapZXGZPQ1eo +DxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=8kNQiHmmN8pQ67PEtdJ5IUYuhclC4MIoGbh8e9ICNDE=; b=o5xPdLFW/FSGA1j7dzG0stqp+5uWEBDdrI0wY3hjcG6GYqvBRQNjokkh+2zM3M2ud5 TDm5yUnhsVMvLELlaMb3levWG/43d7pXGOve2kRsKrxbrZ8uc+bwCeAbE0P3Z3NtZME4 vLYm8QLCPnHS6SZ9J3p1TE60XGq2BmOP8LsYaSJ07+2GujFMsVw0zWyovqK3kdYf02xp EsR+tbGKgis49iPLhyc4em+wgO/D9qS0h9n7vcnyt8nxOgVO9suz3w+TEZePPFki3prB yE+RL2jITLcqgBrHD8vZqP2jbRpJlGVBPPSyf0WygWHcqF6dye26qlQx/thUvwHd7hdE CCng== 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 d128si1752119pgc.445.2018.04.03.03.27.12; Tue, 03 Apr 2018 03:27:27 -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; 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 S1754957AbeDCK0D (ORCPT + 99 others); Tue, 3 Apr 2018 06:26:03 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:59264 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752475AbeDCK0C (ORCPT ); Tue, 3 Apr 2018 06:26:02 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1f3J8X-0006AX-7p; Tue, 03 Apr 2018 12:25:57 +0200 Date: Tue, 3 Apr 2018 12:25:56 +0200 (CEST) From: Thomas Gleixner To: Li RongQing cc: LKML , Peter Zijlstra Subject: Re: [PATCH] genirq: only scan the present CPUs In-Reply-To: <1522647902-11426-1-git-send-email-lirongqing@baidu.com> Message-ID: References: <1522647902-11426-1-git-send-email-lirongqing@baidu.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, tglx