Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1203737rdb; Wed, 20 Sep 2023 02:38:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8pdn2FMKqj2AA0KEnXied0uOWTQomT18eBjd4JC+JGPT1P98t0I8vT+Mcy59uaIlbxDY6 X-Received: by 2002:a05:6808:2901:b0:3a9:9bb6:7fe with SMTP id ev1-20020a056808290100b003a99bb607femr1765130oib.21.1695202686758; Wed, 20 Sep 2023 02:38:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695202686; cv=none; d=google.com; s=arc-20160816; b=SGno2sUMpQ8YLwnxNVG/arXKxp6Cx+grzW+1YSbqngnc25KTd6mTtZP/+a5Ah0JtuZ Bj6V5g/fh2X54RWkHONfPTZIPndYJmnUXiZMidK5XZYY3CaS+MIxz6VNHNLbq938l+V8 tVwh+RfHrnyO0Zvfr47Ai5Qic0eZVWMBmjQDswhRkU67MNbwMINy3fp6kzejqPADg9Dp CjhzfYbJKgw+GmS5REdxvVeVDYJzHnFF6rJNmueJqtVf0eePgJrzQA+V225pBNlsVW9V hesLrS2obt0sfvQ1m/ql2oLV+Bl5ffqnIEGyxWZNTeA7to6tCRh2ln2qO3UND5/pLtfu EbJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=3AQ4u5gKVFWHAggiWCOYdkgxl/vl4naNMDSuOe19NDg=; fh=mW6Mmv64YVJhpF+1MP2JgUO01XPIyNEnncPfdao4W3c=; b=pCowWLnHqagVaCxwqezMLpLVlpZP+1LhGdH8Y1e51k4OgKaIF5Ejyq6SrR8GmiQb+E AizJuqvhdITYMQbhZA5doxWpaENnB6W7oZ6mgCGg48mbABEHukoLKguHl0oFHKxb9PDm 6jLvczLKPgAROE5dMXDJ+IR0+1DZGj5ir5uKAxvj3Z1DPi/exFwgufMWQ5iORhqAQQ/z tM1p35I+SUyXFF1TrZYVtFS3oXGq85P/cvNMyopQsPuCau1MixWFvZgKPAjKNpu2EfBV ET7OYmfuHQMuHsKuLLHSJx25I/mBCgsAf1/1L/IvMs9+xRKLlkzo92bq68NvaPTP64ii HweQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id s128-20020a637786000000b005696a8e371csi648674pgc.35.2023.09.20.02.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 02:38:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 8DA148295BD7; Wed, 20 Sep 2023 02:24:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233907AbjITJYr (ORCPT + 99 others); Wed, 20 Sep 2023 05:24:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234046AbjITJYj (ORCPT ); Wed, 20 Sep 2023 05:24:39 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 35547EA for ; Wed, 20 Sep 2023 02:24:07 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3A5031FB; Wed, 20 Sep 2023 02:24:44 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 131FA3F5A1; Wed, 20 Sep 2023 02:24:04 -0700 (PDT) Date: Wed, 20 Sep 2023 10:24:02 +0100 From: Sudeep Holla To: Huang Ying Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Sudeep Holla , Arjan Van De Ven , Andrew Morton , Mel Gorman , Vlastimil Babka , David Hildenbrand , Johannes Weiner , Dave Hansen , Michal Hocko , Pavel Tatashin , Matthew Wilcox , Christoph Lameter Subject: Re: [PATCH 02/10] cacheinfo: calculate per-CPU data cache size Message-ID: <20230920092402.pvqju4knnqkzqfiq@bogus> References: <20230920061856.257597-1-ying.huang@intel.com> <20230920061856.257597-3-ying.huang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230920061856.257597-3-ying.huang@intel.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 20 Sep 2023 02:24:56 -0700 (PDT) On Wed, Sep 20, 2023 at 02:18:48PM +0800, Huang Ying wrote: > Per-CPU data cache size is useful information. For example, it can be > used to determine per-CPU cache size. So, in this patch, the data > cache size for each CPU is calculated via data_cache_size / > shared_cpu_weight. > > A brute-force algorithm to iterate all online CPUs is used to avoid > to allocate an extra cpumask, especially in offline callback. > You have not mentioned who will use this information ? Looking at the change, it is not exposed to the user-space. Also I see this is actually part of the series [1]. Is this info used in any of those patches ? Can you point me to the same ? Not all architecture use cacheinfo yet. How will the mm changes affect those platforms ? -- Regards, Sudeep [1] https://lore.kernel.org/all/20230920061856.257597-1-ying.huang@intel.com/