Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1017959imc; Mon, 11 Mar 2019 04:48:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxt4FEgMQ9/o+VOgEPEbExYl8lmLtt0wZ9tMieYnP/tfJN/jpPHhIFom7KcfnSv4uXzhZ6F X-Received: by 2002:a17:902:bf41:: with SMTP id u1mr17223915pls.230.1552304924265; Mon, 11 Mar 2019 04:48:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552304924; cv=none; d=google.com; s=arc-20160816; b=B4jUZ26qmf480QbM8p6YmT5rj9zS+8FK5rqYGStZSJHtYboX7gMnpwhWW7B37LlxCT 0eBQEvkNMkVoDRA2u7wdJYjtbHDua6YZsYxUDqpDkxlIUclOo1MWLeOHQ7s4JE9CFaHp NODxAQrd/B9izA40D0YeftQv9iaDibykFuYO4LAqAkaR1OfoTkTFgQJPTBXeyFTRjXWI Mek2d6avq7XZzg1XrzeTOxJpQ5A63RzLwfudndZrpjq8bRxgA6LDCN7d0SaOV4wClBn2 g9uVwogoCswR8Mm3URRBDkFL+TaKMs+YVj/pEEbeTCSoBb/KpbU6WVt3dCvh9NFroprz mgCA== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=ekXZhW+De4PINV6+xauW0II8wBM7JjpDOUhNFDBtmZ4=; b=z/831JwqT338UDs7W+6+yxUyKEopYqf1wZ2dBF74YAsHwdbJDx+NYepVWyQ0gCI689 T91tYhV4QQ8SeoBenaUPNEwocmb3uO0qteOygCPBY/VFCLbDt/9DDMoRyZOdvI1RTlFk zXBCFZQXfCtpoY3TbTWO3KZ1zR8E5Lv6R79zGWsXNY1cMDxw1Pm1UrjtBhChlJtvjFYO 2pJf8X6EAJMz0Ow7JuF4CnroNmb8bWT2UJjlU2A8V0dMfKtHUKiFmE3lHkgyznYuJWGC 5JgkbDEkkwiD4OfNh0Ku9rSC2j6nCz3WDFKOkhGdFcD9RphKlrHNfl0jQtU3toLc+fLW ARqg== 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 x2si5166719plo.360.2019.03.11.04.48.27; Mon, 11 Mar 2019 04:48:44 -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 S1727367AbfCKLsA (ORCPT + 99 others); Mon, 11 Mar 2019 07:48:00 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5233 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726914AbfCKLr7 (ORCPT ); Mon, 11 Mar 2019 07:47:59 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id ED20CA4C898C32F3FBC6; Mon, 11 Mar 2019 19:47:55 +0800 (CST) Received: from localhost (10.202.226.61) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.408.0; Mon, 11 Mar 2019 19:47:47 +0800 Date: Mon, 11 Mar 2019 11:47:37 +0000 From: Jonathan Cameron To: Keith Busch CC: , , , , Greg Kroah-Hartman , Rafael Wysocki , "Dave Hansen" , Dan Williams , Subject: Re: [PATCHv7 00/10] Heterogenous memory node attributes Message-ID: <20190311114459.00006f3d@huawei.com> In-Reply-To: <20190227225038.20438-1-keith.busch@intel.com> References: <20190227225038.20438-1-keith.busch@intel.com> Organization: Huawei X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.61] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 27 Feb 2019 15:50:28 -0700 Keith Busch wrote: > == Changes since v6 == > > Updated to linux-next, which has a change to the HMAT structures to > account for ACPI revision 6.3. > > Changed memory-side cache "associativity" attribute to "indexing" > > > Regarding the Kconfig, I am having the implementation specific as a user > selectable option, and the generic interface, HMEM_REPORTING, is not a > user prompt. I just wanted to clarify the point that there's only one. > > > == Background == > > Platforms may provide multiple types of cpu attached system memory. The > memory ranges for each type may have different characteristics that > applications may wish to know about when considering what node they want > their memory allocated from. > > It had previously been difficult to describe these setups as memory > rangers were generally lumped into the NUMA node of the CPUs. New > platform attributes have been created and in use today that describe > the more complex memory hierarchies that can be created. > > This series' objective is to provide the attributes from such systems > that are useful for applications to know about, and readily usable with > existing tools and libraries. Those applications may query performance > attributes relative to a particular CPU they're running on in order to > make more informed choices for where they want to allocate hot and cold > data. This works with mbind() or the numactl library. Hi Keith, Great to see this 'nearly' good to go. For those that were too small / trivial to deserve a reviewed-by Acked-by: Jonathan Cameron Subject to that one tweak in patch 7, Tested-by: Jonathan Cameron Note that my tests were very limited for the memory-side caches and not exactly comprehensive for the access attributes either. They focused on the cases I care about rather than putting together a fuller test suite. That is probably worth doing at some point though not sure I'll get to it any time soon. Thanks, Jonathan > > Keith Busch (10): > acpi: Create subtable parsing infrastructure > acpi: Add HMAT to generic parsing tables > acpi/hmat: Parse and report heterogeneous memory > node: Link memory nodes to their compute nodes > node: Add heterogenous memory access attributes > node: Add memory-side caching attributes > acpi/hmat: Register processor domain to its memory > acpi/hmat: Register performance attributes > acpi/hmat: Register memory side cache attributes > doc/mm: New documentation for memory performance > > Documentation/ABI/stable/sysfs-devices-node | 87 +++- > Documentation/admin-guide/mm/numaperf.rst | 164 +++++++ > arch/arm64/kernel/acpi_numa.c | 2 +- > arch/arm64/kernel/smp.c | 4 +- > arch/ia64/kernel/acpi.c | 14 +- > arch/x86/kernel/acpi/boot.c | 36 +- > drivers/acpi/Kconfig | 1 + > drivers/acpi/Makefile | 1 + > drivers/acpi/hmat/Kconfig | 11 + > drivers/acpi/hmat/Makefile | 1 + > drivers/acpi/hmat/hmat.c | 670 ++++++++++++++++++++++++++ > drivers/acpi/numa.c | 16 +- > drivers/acpi/scan.c | 4 +- > drivers/acpi/tables.c | 76 ++- > drivers/base/Kconfig | 8 + > drivers/base/node.c | 352 +++++++++++++- > drivers/irqchip/irq-gic-v2m.c | 2 +- > drivers/irqchip/irq-gic-v3-its-pci-msi.c | 2 +- > drivers/irqchip/irq-gic-v3-its-platform-msi.c | 2 +- > drivers/irqchip/irq-gic-v3-its.c | 6 +- > drivers/irqchip/irq-gic-v3.c | 10 +- > drivers/irqchip/irq-gic.c | 4 +- > drivers/mailbox/pcc.c | 2 +- > include/linux/acpi.h | 6 +- > include/linux/node.h | 72 ++- > 25 files changed, 1487 insertions(+), 66 deletions(-) > create mode 100644 Documentation/admin-guide/mm/numaperf.rst > create mode 100644 drivers/acpi/hmat/Kconfig > create mode 100644 drivers/acpi/hmat/Makefile > create mode 100644 drivers/acpi/hmat/hmat.c >