Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2113727imu; Thu, 10 Jan 2019 08:30:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN6c8iRjgrONfwmyCCMmDm8MJI9kzkJNQH2pcH1IH81XxbJcWessA6mGsACcTpKSYzCM+MM9 X-Received: by 2002:a62:1f53:: with SMTP id f80mr10817389pff.92.1547137802414; Thu, 10 Jan 2019 08:30:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547137802; cv=none; d=google.com; s=arc-20160816; b=ATj3q0EYwYse/QAreBNp66Pvxq1CY33iHWE54WY/73102XA3YHfNxIZS/kO0qMI+cG 5jyq37HWjbW1VKNPCE73jm7uFweKxO1lWgb+KGFGH6oNGH+s+cerWDls/X8SIi6zs0pd eh+pBZ1HK3zML2I4NpifQCBPnLD0ybTNQf7sogI9ybfv1d8p808xn143SPIDrJLmfAsr NfvVhRzAwr2gp0RmT9+UDCyJ2NXIAYdzLtcecUcmv9BXzOyzITlkgoO7V9lZ0IGRC1Hi wm2ssORnAOsL++H6tTBFQXaHyNzqxzzJcmhfrCiX8sfsfRzM19SLl16yC+Zd8N/wA67E IwDQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=MqPUnGW6hxwx5xiDIJtGsXepgBBsBxpz8FBpp46aWC4=; b=SvKlEXsbsot4Wn+NGXE9LhPw4OTi6PObHJ//erznqsTRJDDU7nvKtQacZNXytEu8ao 6yUbd9W68MdWfM4nCg7p/ASRJ6jhOAmVHv5NwGxKgit4eU2huyUaBV2MsIaFLPmd9obe xBHS47+wndrDqF64NJVtU5rqCxXkk76IpYZ81kDN3VOmasor41G0do6oxZ3++aH2TFWL t4/BzEwQ5KtXvioZkq+9Gl0hZ9sNhcW2lDywAso/jdGZVvY+PJJweE6AmGpn0TfQZur1 vbyNHlNEXUC49loxxdSECRashZ7P22+9ukDApN2+fUiLqUJAgUywzgOuCL0h+eT+IYDu UYhQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g71si51238256pgc.419.2019.01.10.08.29.47; Thu, 10 Jan 2019 08:30:02 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729727AbfAJPxX (ORCPT + 99 others); Thu, 10 Jan 2019 10:53:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51418 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728795AbfAJPxX (ORCPT ); Thu, 10 Jan 2019 10:53:23 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C44CE4CEA4; Thu, 10 Jan 2019 15:53:21 +0000 (UTC) Received: from redhat.com (unknown [10.20.6.215]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9F9108164C; Thu, 10 Jan 2019 15:53:19 +0000 (UTC) Date: Thu, 10 Jan 2019 10:53:17 -0500 From: Jerome Glisse To: Michal Hocko 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: <20190110155317.GB4394@redhat.com> References: <20181226131446.330864849@intel.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190108145256.GX31793@dhcp22.suse.cz> User-Agent: Mutt/1.10.0 (2018-05-17) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 10 Jan 2019 15:53:22 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cheers, J?r?me