Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2233300imu; Thu, 10 Jan 2019 10:28:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN4yrhXkfFC5kqjli9nQT1n1d/FanKyk51VYz7s9dLaCY/C32txoS74wLCUo7UX4ozIpMdqS X-Received: by 2002:a63:5c41:: with SMTP id n1mr9873748pgm.1.1547144909553; Thu, 10 Jan 2019 10:28:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547144909; cv=none; d=google.com; s=arc-20160816; b=qNLg7Icgz/Cp6ZTkiFOr2eaRbqsjxSOCBQGNVXlTJRQdiJcWl088jW7nzN4N//mWZD 6WuU7cPlMJcaobHAY1DPbUec1CHDcrD8muFhflafFyC3cXMQ2QG5nbRoMCwL7F8mzphA yGbUaPWI7RxncmrCnTzMln9dbyWK7Nw4gt5WcozY3Ze5fAr8nMmiu6oxUSpV6aFyqoIK is272VWWdPYb2ujCI3NGIzdx1Lgsco6MFCxG1RmcnAXPm0Jzv7PxZwIlIWYUo2S9HH8E YrGnqmtOZ7F3boXyOcWeapj/JZsjCU4Shq/0WGcMINKKTQTAZXyHM1YZvNKg7+7AOYBA nmtQ== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=iVteJyD1IXWZpRvWbw2yeHtRy4soWUpnCawmJq4icNg=; b=Ovxkil2qhPSdLe/cqtilZcLCohTOcKzXKJOsvYA20ViXAC/enX8BjiUFwdcO5eQd7P awvlkXewzMOLsZMHwOnr0XrBjzL/IZzTthyP+wP5NVR7IHBLSIuS8mSxLZrf4D03eON8 0fiem3f51X9mubzrj9N8Q7HdgX5V+RXcyB0XDprthUGNlqwNBBwoC9oGCclAzrwOqS8E lKxj7Aew+0718e09+JGxu6x1djeq242bqno90hLwodf8or+IeCYLiDtweyHgA33oUy7H 40S3E/636JBuxDj25cf25GZyyw5sodbIfbMVTx+Sq/eCcio6dWqL/bfHEN4oGYuszUYu MUZQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si18873446ply.126.2019.01.10.10.28.14; Thu, 10 Jan 2019 10:28:29 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731136AbfAJS0d (ORCPT + 99 others); Thu, 10 Jan 2019 13:26:33 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:17132 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730625AbfAJS0d (ORCPT ); Thu, 10 Jan 2019 13:26:33 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 8B6B6B2D781288A6371F; Fri, 11 Jan 2019 02:26:30 +0800 (CST) Received: from localhost (10.202.226.46) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.408.0; Fri, 11 Jan 2019 02:26:25 +0800 Date: Thu, 10 Jan 2019 18:26:10 +0000 From: Jonathan Cameron To: Michal Hocko CC: Fengguang Wu , Andrew Morton , Linux Memory Management List , , LKML , Fan Du , Yao Yuan , Peng Dong , Huang Ying , Liu Jingqi , Dong Eddie , Dave Hansen , Zhang Yi , Dan Williams , "Mel Gorman" , Andrea Arcangeli , Subject: Re: [RFC][PATCH v2 00/21] PMEM NUMA node and hotness accounting/migration Message-ID: <20190110182610.00004250@huawei.com> In-Reply-To: <20190108145256.GX31793@dhcp22.suse.cz> 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> Organization: Huawei X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.46] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 Jan 2019 15:52:56 +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. Yes, to some degree. That's exactly what we are doing, though a things currently stand I think you have to turn it on via a kernel command line and mark it hotpluggable in ACPI. Given it my or may not actually be hotpluggable that's less than elegant. Let's randomly decide not to explore that one further for a few more weeks. la la la la If we have general balancing by migration then things are definitely heading in a useful direction as long as 'hot' takes into account the main user not being a CPU. You are right that migration dealing with the movable kernel allocations is a nice side effect though which I hadn't thought about. Long run we might end up with everything where it should be after some level of burn in period. A generic version of this proposal is looking nicer and nicer! Thanks, Jonathan