Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2127971imu; Thu, 10 Jan 2019 08:44:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN7dNajjMk51X6CKdt2M4yzaqwcanlohi/ZZG6RMceALW/iv+/pLYT+YhZBahcuUF8+nO4U+ X-Received: by 2002:a63:184a:: with SMTP id 10mr9893331pgy.81.1547138655319; Thu, 10 Jan 2019 08:44:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547138655; cv=none; d=google.com; s=arc-20160816; b=kIUH0wmJNDLX0OQLM4cnTo0RvJbqkDIKXt9ZPa/eIJI41aZ913gkWBPu8U4PZ3M9Cv tj31/+ckc1qjJIl1QXUuLnshQCVMYF61L82/qxwrX18Ei+Ej9+cjn4RtHWj9+Ve7m11m ZV6JxT7zuZL8EaSTEefrSyUPJR4ELND1sCXIHftWl0j5nhRxLN4AVqSJc2EY9mYMcty/ V0vSOWu4Z6rCzISV/8ih0gQH7N0sE1T7g/ILrjPwJ6yqQuhetTWwSpxY1w/vkjY5RWV+ eJmUvun6JaRYpd44NaEQsZD2mxe1Yap5gn6qFfEtxBeq6BR5w+XLg9T1qUingjuU3FMa J/vw== 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=F2Sl/uNNCuYQreTeQNUKwubdI4lu4UIJgUAo/0MFAtg=; b=ZB7NFCfqJOy3Q6edvNi3VU1/qH5+x4NtbGrdVp/MANWRx98BKaq92q9uXZwa43r4FC ElzueFhA+hrZPRZVao1xeR5NtSDBgPYs/QTu/i0m6/Je94UaHt89BLhSPCQOuiPYwJz3 FY/8sPaTjVSCg9gIl9z9CQlNf4B+B05RMWSLXjmEymzLqAV9BcHse1IR6NAzmc2X8Ucb mcp5IdEIvsmhDMSDlK9aTAEaVkScPinmY1+L9xrQPfCD7auGd3yMIlotIHQdkC0TYE8a qoqDZhld7gVbi+apl/v/yKUgJxUi2kJEVGGBrYfthV0UnOVFAY600aURuByMHclot99U UWcQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o9si15086409pfe.63.2019.01.10.08.43.59; Thu, 10 Jan 2019 08:44:15 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728251AbfAJQmx (ORCPT + 99 others); Thu, 10 Jan 2019 11:42:53 -0500 Received: from mx2.suse.de ([195.135.220.15]:48790 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727344AbfAJQmx (ORCPT ); Thu, 10 Jan 2019 11:42:53 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 548ACAC90; Thu, 10 Jan 2019 16:42:51 +0000 (UTC) Date: Thu, 10 Jan 2019 17:42:48 +0100 From: Michal Hocko To: Jerome Glisse Cc: Jonathan Cameron , Fengguang Wu , Andrew Morton , Linux Memory Management List , kvm@vger.kernel.org, LKML , Fan Du , Yao Yuan , Peng Dong , Huang Ying , Liu Jingqi , Dong Eddie , Dave Hansen , Zhang Yi , Dan Williams , Mel Gorman , Andrea Arcangeli , linux-accelerators@lists.ozlabs.org Subject: Re: [RFC][PATCH v2 00/21] PMEM NUMA node and hotness accounting/migration Message-ID: <20190110164248.GO31793@dhcp22.suse.cz> References: <20181227203158.GO16738@dhcp22.suse.cz> <20181228050806.ewpxtwo3fpw7h3lq@wfg-t540p.sh.intel.com> <20181228084105.GQ16738@dhcp22.suse.cz> <20181228094208.7lgxhha34zpqu4db@wfg-t540p.sh.intel.com> <20181228121515.GS16738@dhcp22.suse.cz> <20181228133111.zromvopkfcg3m5oy@wfg-t540p.sh.intel.com> <20181228195224.GY16738@dhcp22.suse.cz> <20190102122110.00000206@huawei.com> <20190108145256.GX31793@dhcp22.suse.cz> <20190110155317.GB4394@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190110155317.GB4394@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 10-01-19 10:53:17, Jerome Glisse wrote: > On Tue, Jan 08, 2019 at 03:52:56PM +0100, Michal Hocko wrote: > > On Wed 02-01-19 12:21:10, Jonathan Cameron wrote: > > [...] > > > So ideally I'd love this set to head in a direction that helps me tick off > > > at least some of the above usecases and hopefully have some visibility on > > > how to address the others moving forwards, > > > > Is it sufficient to have such a memory marked as movable (aka only have > > ZONE_MOVABLE)? That should rule out most of the kernel allocations and > > it fits the "balance by migration" concept. > > This would not work for GPU, GPU driver really want to be in total > control of their memory yet sometimes they want to migrate some part > of the process to their memory. But that also means that GPU doesn't really fit the model discussed here, right? I thought HMM is the way to manage such a memory. -- Michal Hocko SUSE Labs