Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2250920imu; Fri, 23 Nov 2018 06:39:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/VL8b9a93i785cZSIs+qJw1gas0uPub6J25h9SjfibGZg4ju8fDepd7NfRqciWMmB5wV23O X-Received: by 2002:a65:5088:: with SMTP id r8mr14020841pgp.15.1542983945308; Fri, 23 Nov 2018 06:39:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542983945; cv=none; d=google.com; s=arc-20160816; b=fpjunpiWHCI5Hq9DxhPT+7s/QfmAA0y0oRNwDmyW4pMq7GBI8U0AtKQSkwh5aLk/6Q omAH4c9KyPYrnWfim/mSqDGtqmnWKa5O9WRwkoiV4yPiYTdgKvoHROnp83JmRXdarcfe i7OZnfN3vN4Ynxw03tQL8CEMEel7U/eSrFNAuj8MmNzk0LmNG0lp92cV4nx/6SPHMgIV YHjGhN2Fos3otfFoBt4dB24Iz7rqNnzMMghgaRskiOskTNhnd9NsuSTHMc5QbXTU/nkc eUmMGn/EQT4i6tSsXbKlVBonXnj0R+OrKQDYNyQh4ZtwywA0OpZe4AGFLjS7Ze01yLUl hfOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=/URDdIirknUZe08LLioM5cs9nICmW5Ef0p6tZ/xL/2o=; b=cE3+9jCbvlbF1e2F9V4LWNx39P0ig+hFTa3L7ryKjx0g9iJJ4Mi80bCQqf/obu6kjR jQgj9q/rnhyOnlE/07aBFH3GnW/r6tc02ljeJUNNcqERUBYHz7uAmkc9z4TCG5xxpAo4 bMjkcd/oSIhwSDQ+pacaixZhsvHG/qpbQj1QHB3xDqu9oBKY+fCrMGlfr0BQ5wXuG6H3 671cHLZEyhkV8ITbt7u9vidribi6lVVua7iC97aalOkZOEgHhqMkT0rQeDDih4XpLcZS R0XsOZHy23DA+93NzxtR8g9jZkFGIhwDGOseyPe1Ax8BpqU6dtk22MDh8RQEvx+dnXVG BAIw== 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 q8si30669686plr.382.2018.11.23.06.38.36; Fri, 23 Nov 2018 06:39:05 -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 S2405594AbeKWAIq (ORCPT + 99 others); Thu, 22 Nov 2018 19:08:46 -0500 Received: from foss.arm.com ([217.140.101.70]:48522 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729285AbeKWAIq (ORCPT ); Thu, 22 Nov 2018 19:08:46 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C21AE3622; Thu, 22 Nov 2018 05:29:24 -0800 (PST) Received: from [10.1.26.189] (p8cg001049571a15.cambridge.arm.com [10.1.26.189]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DB0923F5AF; Thu, 22 Nov 2018 05:29:22 -0800 (PST) Subject: Re: [PATCH 4/7] node: Add memory caching attributes To: Keith Busch Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org, Greg Kroah-Hartman , Rafael Wysocki , Dave Hansen , Dan Williams References: <20181114224921.12123-2-keith.busch@intel.com> <20181114224921.12123-5-keith.busch@intel.com> <91698cef-cdcd-5143-884f-3da5536e156f@arm.com> <20181119230600.GC26707@localhost.localdomain> From: Anshuman Khandual Message-ID: <731533d5-26e1-ade7-1a63-d1f85461d091@arm.com> Date: Thu, 22 Nov 2018 18:59:21 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181119230600.GC26707@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/20/2018 04:36 AM, Keith Busch wrote: > On Mon, Nov 19, 2018 at 09:44:00AM +0530, Anshuman Khandual wrote: >> On 11/15/2018 04:19 AM, Keith Busch wrote: >>> System memory may have side caches to help improve access speed. While >>> the system provided cache is transparent to the software accessing >>> these memory ranges, applications can optimize their own access based >>> on cache attributes. >> >> Cache is not a separate memory attribute. It impacts how the real attributes >> like bandwidth, latency e.g which are already captured in the previous patch. >> What is the purpose of adding this as a separate attribute ? Can you explain >> how this is going to help the user space apart from the hints it has already >> received with bandwidth, latency etc properties. > > I am not sure I understand the question here. Access bandwidth and latency > are entirely attributes different than what this patch provides. If the > system side-caches memory, the associativity, line size, and total size > can optionally be used by software to improve performance. Okay but then does this belong to this series which about memory attributes ?