Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2905988imu; Mon, 19 Nov 2018 07:54:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vw50CFKklqO13cg5RYuW5av/T2qkrGwbm9Xy33QeXISToUL4HlNYn2biF5fadIjlN09ICz X-Received: by 2002:a17:902:7603:: with SMTP id k3mr8983775pll.285.1542642845899; Mon, 19 Nov 2018 07:54:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542642845; cv=none; d=google.com; s=arc-20160816; b=f7AuTmBgLYLyLu0QBZRRgtbrdhkXWezPDq30riw/jG4cY6a/Mx6raFZDsA2oGspXX+ j00zGBEK3wzFijALrbIHZEynhlP9ZwdPexJ4uzZBfMjG3v6gWT+iTMIf0frIgfz8NV/J 0g8MPklITFg8KzE0ml5auVkD6+XteTqO0FeBqygBhgnkzdTgBsF7tyKOEKpHxBtafTUw BTyjROzaBjZoGXaOUyrAJVmGAFTHa9GPST3HLg+CGje+N6rdheBPvoSEoDs/JUz92u9Q VBiB4A2eacx35jFPL3b7YqY/E35b7Wwfk/glfivR5kVLuG2lsm0sA4wqYjNmQ+3nLarZ dgaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=LcGpqOfztLG3uhn2yeH469rtjH2SH9rp+0s7I3nhx0s=; b=yxR3YRiwIhQQPrJebuZ35tL5vF4wrkJqG+mnhaKZ3U4AFLoR7SuPXYIp1zaHpGxSXO +JqQWdXifEgYAVjNUR/Nx+952BkALlz/AJyksFpswc5Q6fgVQMdHdAn/9cLmRFWMUo+g 2xJ2TEXKIQHG4tEg1ElIA45zejM27qmX035kGjdfa4dXplyhEyAHpdL3LoqvswBcVO08 YVGnXnlXqsY8F5E3wQsDYYlB2nNj2FHxy0YWYkfjH2Juz/Ht7n5zN9m9wWLuvYA6rWfs zzR5xg8/eidwRoe15kT8pMpkDiEZLepQrRu5N7zo0s3usXd+30F5PdfLoX0QOcjpmdwN 7yXg== 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 g12si30935670pgd.567.2018.11.19.07.53.51; Mon, 19 Nov 2018 07:54: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729917AbeKTCQx (ORCPT + 99 others); Mon, 19 Nov 2018 21:16:53 -0500 Received: from mga06.intel.com ([134.134.136.31]:16866 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729825AbeKTCQx (ORCPT ); Mon, 19 Nov 2018 21:16:53 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Nov 2018 07:52:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,253,1539673200"; d="scan'208";a="90491396" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by orsmga007.jf.intel.com with ESMTP; 19 Nov 2018 07:52:53 -0800 Date: Mon, 19 Nov 2018 08:49:37 -0700 From: Keith Busch To: Anshuman Khandual Cc: Matthew Wilcox , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org, Greg Kroah-Hartman , Rafael Wysocki , Dave Hansen , Dan Williams Subject: Re: [PATCH 1/7] node: Link memory nodes to their compute nodes Message-ID: <20181119154937.GD23062@localhost.localdomain> References: <20181114224921.12123-2-keith.busch@intel.com> <20181115135710.GD19286@bombadil.infradead.org> <20181115145920.GG11416@localhost.localdomain> <20181115203654.GA28246@bombadil.infradead.org> <20181116183254.GD14630@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 19, 2018 at 08:45:25AM +0530, Anshuman Khandual wrote: > On 11/17/2018 12:02 AM, Keith Busch wrote: > > On Thu, Nov 15, 2018 at 12:36:54PM -0800, Matthew Wilcox wrote: > >> So ... let's imagine a hypothetical system (I've never seen one built like > >> this, but it doesn't seem too implausible). Connect four CPU sockets in > >> a square, each of which has some regular DIMMs attached to it. CPU A is > >> 0 hops to Memory A, one hop to Memory B and Memory C, and two hops from > >> Memory D (each CPU only has two "QPI" links). Then maybe there's some > >> special memory extender device attached on the PCIe bus. Now there's > >> Memory B1 and B2 that's attached to CPU B and it's local to CPU B, but > >> not as local as Memory B is ... and we'd probably _prefer_ to allocate > >> memory for CPU A from Memory B1 than from Memory D. But ... *mumble*, > >> this seems hard. > > > > Indeed, that particular example is out of scope for this series. The > > first objective is to aid a process running in node B's CPUs to allocate > > memory in B1. Anything that crosses QPI are their own. > > This is problematic. Any new kernel API interface should accommodate B2 type > memory as well from the above example which is on a PCIe bus. Because > eventually they would be represented as some sort of a NUMA node and then > applications will have to depend on this sysfs interface for their desired > memory placement requirements. Unless this interface is thought through for > B2 type of memory, it might not be extensible in the future. I'm not sure I understand the concern. The proposal allows linking B to B2 memory.