Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1008275imm; Sat, 26 May 2018 18:07:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpkLOSqL6gYk5S8bof0w+d3A6fJg8N93hfXekfsqkM3w51qBulsJ4kMqHEGX15Bs/C6FNj4 X-Received: by 2002:a63:42c4:: with SMTP id p187-v6mr6499491pga.345.1527383233656; Sat, 26 May 2018 18:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527383233; cv=none; d=google.com; s=arc-20160816; b=BB/dY/Uxr69lTxiggVQeG6niYvGQWUzBiN5ifdKzHh6y3+2SwbLGpscKR3letqdMaj LS4GcNwRZGg+DdcSdLkZb2Sq8eN8pPmWK2Ciqx4DHHuFPKfzxCVf5ipbwR/qUt0B8gGC +kxvfiVCwbjvC7ZpGLNH/Qemq0FOyyWpZGPSYNZOLlFH4X0vCFYFaA+NwT280lXzWuxV MK5B2D1DV8HI3OQPgVs2SNOz3hoTxZk9mxpNuXjEgr5lSV4s8NyMvkcPfoHrE5YXvMZm LgqDO008QgijvFYqM8P9aPOT581Q2reWPXvZFJCW2LjvbpT0Aqw3oY8Hb6ETX7PLZzrI 7FyQ== 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 :user-agent:message-id:date:cc:to:from:subject :arc-authentication-results; bh=t06nDi9jpnx83nKbtvHDV6eHn0VvPGBbq8vat64MyiQ=; b=d0m0ydyT2lY/ylVWRSY6XonFzjX+AvdXb6eio8l0qLv9g3jpAXa/s5eihQrcuptNr/ piNbxZtqXXC0bd7zixYErGddpHTVFf/7LBKGsY32OosAAxNQBJaJii7IaQWcey104DYI ptcRVdCI0ajA8rPeV49DACkTsh35ZpL4kKoQuHCiDYBnZrrkkiaPP8gYxVNowGiLy3Z4 IzcLY7iwEgrc0bV4fD329wX1Wx8TfiOtTMmVIenE9+Ws3GG03rvxh6raFHT7sowzWqmx 4ZU4B72jKijIwa/03CLK55Fw2slumLfSoaAC8H9+rnHAi+H7S4lunxxHgkDpw1gVu9tP rvig== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si7106310pls.579.2018.05.26.18.06.57; Sat, 26 May 2018 18:07:13 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032528AbeE0BGq (ORCPT + 99 others); Sat, 26 May 2018 21:06:46 -0400 Received: from mga17.intel.com ([192.55.52.151]:12722 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751103AbeE0BGp (ORCPT ); Sat, 26 May 2018 21:06:45 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 May 2018 18:06:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,446,1520924400"; d="scan'208";a="59350730" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.16]) by orsmga001.jf.intel.com with ESMTP; 26 May 2018 18:06:44 -0700 Subject: [PATCH 0/2] x86/numa_emulation: Introduce uniform split capability From: Dan Williams To: mingo@kernel.org Cc: Wei Yang , "H. Peter Anvin" , x86@kernel.org, Thomas Gleixner , David Rientjes , Ingo Molnar , linux-mm@kvack.org, linux-kernel@vger.kernel.org, x86@kernel.org Date: Sat, 26 May 2018 17:56:47 -0700 Message-ID: <152738260746.11641.13275998345345705617.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: StGit/0.18-2-gc94f MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current numa emulation capabilities for splitting System RAM by a fixed size or by a set number of nodes may result in some nodes being larger than others. The implementation prioritizes establishing a minimum usable memory size over satisfying the requested number of numa nodes. Introduce a uniform split capability that evenly partitions each physical numa node into N emulated nodes. For example numa=fake=3U creates 6 emulated nodes total on a system that has 2 physical nodes. This capability is useful for debugging and evaluating platform memory-side-cache capabilities as described by the ACPI HMAT (see 5.2.27.5 Memory Side Cache Information Structure in ACPI 6.2a) See more details in patch2. --- Dan Williams (2): x86/numa_emulation: Fix emulated-to-physical node mapping x86/numa_emulation: Introduce uniform split capability Documentation/x86/x86_64/boot-options.txt | 4 + arch/x86/mm/numa_emulation.c | 98 +++++++++++++++++++++++------ 2 files changed, 82 insertions(+), 20 deletions(-)