Received: by 10.223.164.202 with SMTP id h10csp386106wrb; Fri, 17 Nov 2017 02:14:04 -0800 (PST) X-Google-Smtp-Source: AGs4zMb6UKyDeAsqUEiB7i+vChqX8A+6wdjRW48k9hpY5W4N/go6vd2ras01J6EWgTXSmzP2/JQk X-Received: by 10.98.253.3 with SMTP id p3mr1548738pfh.20.1510913644306; Fri, 17 Nov 2017 02:14:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510913644; cv=none; d=google.com; s=arc-20160816; b=JeKVWIsqOXq0AezRAwLY8otv0PHnRZxraVxu/g446tVeX7LkPqE1VhuxRaT8AEBJt6 oXLuGeAxgdUPYcbmJUUElVJ/wmLmAkCEfGCefEB6Wrr4rmKE1mw4s33f5bK7bEAH96lw 120SrXOoZ4VgeQP9KI7rcCH4WdrU25ETcSLeBbZmYaHZexpRSbOzD/sIavQlJCc+x2fP fRZVQIJSzMlAcyBMWh5zofb2QwQ+VfaD9ePpUfaidtigqQiDTQA3Gar3kd9hOCRpMYeP xzaGoS/WF2Kx27ThFuuNaWgMLhTEcocwp6xzuDc+2CZaLnT4j19SPcrjM7FtpUOJTmWe SSRw== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=A4Y1Pz4sPEN+aeRgY46Q6y/Nu3SjOfHvvnDB5AQAHOo=; b=pqn34b3RhlN620FXOUB1WQ0mUa35BFlLTMcCPP1zXIxc/pk1+DgiT7zkNrQ/FiKozn 6nRR1fGZVdMSAuJRGuO3ezNIj7kF4Mg/jGAZbVFVLBD1WPxvdDmqHy/1wcWXHcIHi0v1 89O+8syQd99OD+qiZmSJ7LvIDQ6SFjNM5TkeX7N+cEHuVMAUfy0kEK12kiVWqrr55jaZ PVhffd0upBCpkkbfVQdPwLCiLL6gmQRXca0qzDemVsuXqA0+EUY8NERZaXWsF8dvEGNW PaH6AmYGhB68dGEnTG7++n2WnP0ZbmADdwcm7NV8/+KSxWV4SmR3W6l1q2ExvQkL8WSy RZmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i24NCkNb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si1415346plk.466.2017.11.17.02.13.51; Fri, 17 Nov 2017 02:14:04 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i24NCkNb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756549AbdKQDrt (ORCPT + 91 others); Thu, 16 Nov 2017 22:47:49 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:42861 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756468AbdKQDrm (ORCPT ); Thu, 16 Nov 2017 22:47:42 -0500 Received: by mail-wm0-f41.google.com with SMTP id 5so2659794wmk.1 for ; Thu, 16 Nov 2017 19:47:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=A4Y1Pz4sPEN+aeRgY46Q6y/Nu3SjOfHvvnDB5AQAHOo=; b=i24NCkNbjCH+U2XzJZpUBPUV+HgSMUJ0P5zsmKS8hIfUeu0Dp7uGtVt3vlyAgCjH1K A3GNPGS5FXr6Vp8LI3llbz47/9tUkFCXSUXu724pUOMlnqafsFu9U2zfLq9sPpwemdRS zP65CwtDlhDMc/CouyVkmqh3OaewNJGeVV0EZHD+W8Uc+j4nwGkzBfJAVhWvcGLQZB+4 a+N8tARXD5be7euual6zAHX2Y7/et3C5nIDZeNZU29ndvYyrNvJIiIw/4vonOuR5FQx1 T0QUPX2KBHueoJum61Xx/21SxUmzOL4or/N4ckQKxjWa45HcE+3dU3ERnN3N/U1WWXBj qQNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=A4Y1Pz4sPEN+aeRgY46Q6y/Nu3SjOfHvvnDB5AQAHOo=; b=CDRqmoTmyIvifzoTNQb7lZmiPw5+mSraHNpk+6nnMmm7ZDoEMqz1xqyClNrjCgNhXK 9h//u82eE/bJE10NI6dp+dTZRJukaGZofCF+e96+BY4w/h/rQ7zWHWzvEpa6hL4wW59d /HPfbXe9cl/hVmpvrGp2hoqplNQJpzpuQ4r3N1j8omOPEvi1ZeZR6Ozq6H/CQHIXU0n6 xslRr3jkY7im4ZPOzAF96u7IJXAd/lNHrMWcRf+X3qbmBA8kTrkdo5Vf6e4cZB9a7lud CgcBsOnYDEi9rHF5txs1wNpBgDLeur5aVyXnWp86mpenkYu7H0K2dWRkxRgG+MQ4h78C 2KBg== X-Gm-Message-State: AJaThX7GSaN9KaldzQBLinp7PhcYx9UWl3LT8jNg8GreIYvTHJif5JwB RTDi+rFwX/3qBQgMj50xpUEcpGL1M5MuLZViZty89aSy X-Received: by 10.28.230.140 with SMTP id e12mr2776711wmi.118.1510890461009; Thu, 16 Nov 2017 19:47:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.197.14 with HTTP; Thu, 16 Nov 2017 19:47:40 -0800 (PST) In-Reply-To: References: <20170817000548.32038-1-jglisse@redhat.com> <20170904155123.GA3161@redhat.com> <7026dfda-9fd0-2661-5efc-66063dfdf6bc@huawei.com> <20170905023826.GA4836@redhat.com> <20170905185414.GB24073@linux.intel.com> <0bc5047d-d27c-65b6-acab-921263e715c8@huawei.com> <20170906021216.GA23436@redhat.com> <4f4a2196-228d-5d54-5386-72c3ffb1481b@huawei.com> <1726639990.10465990.1504805251676.JavaMail.zimbra@redhat.com> <863afc77-ed84-fed5-ebb8-d88e636816a3@huawei.com> From: chetan L Date: Thu, 16 Nov 2017 19:47:40 -0800 Message-ID: Subject: Re: [HMM-v25 19/19] mm/hmm: add new helper to hotplug CDM memory region v3 To: Dan Williams Cc: Bob Liu , Jerome Glisse , Ross Zwisler , Andrew Morton , "linux-kernel@vger.kernel.org" , Linux MM , John Hubbard , David Nellans , Balbir Singh , majiuyue , "xieyisheng (A)" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 8, 2017 at 1:43 PM, Dan Williams wro= te: > On Thu, Sep 7, 2017 at 6:59 PM, Bob Liu wrote: >> On 2017/9/8 1:27, Jerome Glisse wrote: > [..] >>> No this are 2 orthogonal thing, they do not conflict with each others q= uite >>> the contrary. HMM (the CDM part is no different) is a set of helpers, s= ee >>> it as a toolbox, for device driver. >>> >>> HMAT is a way for firmware to report memory resources with more informa= tions >>> that just range of physical address. HMAT is specific to platform that = rely >>> on ACPI. HMAT does not provide any helpers to manage these memory. >>> >>> So a device driver can get informations about device memory from HMAT a= nd then >>> use HMM to help in managing and using this memory. >>> >> >> Yes, but as Balbir mentioned requires : >> 1. Don't online the memory as a NUMA node >> 2. Use the HMM-CDM API's to map the memory to ZONE DEVICE via the driver >> >> And I'm not sure whether Intel going to use this HMM-CDM based method fo= r their "target domain" memory ? >> Or they prefer to NUMA approach? Ross=EF=BC=9F Dan? > > The starting / strawman proposal for performance differentiated memory > ranges is to get platform firmware to mark them reserved by default. > Then, after we parse the HMAT, make them available via the device-dax > mechanism so that applications that need 100% guaranteed access to > these potentially high-value / limited-capacity ranges can be sure to > get them by default, i.e. before any random kernel objects are placed > in them. Otherwise, if there are no dedicated users for the memory > ranges via device-dax, or they don't need the total capacity, we want > to hotplug that memory into the general purpose memory allocator with > a numa node number so typical numactl and memory-management flows are > enabled. > > Ideally this would not be specific to HMAT and any agent that knows > differentiated performance characteristics of a memory range could use > this scheme. @Dan/Ross With this approach, in a SVM environment, if you would want a PRI(page grant) request to get satisfied from this HMAT-indexed memory node, then do you think we could make that happen. If yes, is that something you guys are currently working on. Chetan From 1578005644091469832@xxx Fri Sep 08 20:44:13 +0000 2017 X-GM-THRID: 1575934673235108056 X-Gmail-Labels: Inbox,Category Forums