Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1781591ybg; Sat, 19 Oct 2019 02:22:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxEHTnd0lcw+FKxMMD8m+EjiPeTOxe85CPPHFbjCzbMd1CYCM76Wsk5ZXsaflQwqpwNjeOM X-Received: by 2002:a17:906:1d45:: with SMTP id o5mr2323204ejh.250.1571476966407; Sat, 19 Oct 2019 02:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571476966; cv=none; d=google.com; s=arc-20160816; b=OC+CBod2tyDhmZ8NMkK/TFDV/fQg35NFk9rcXHY1t4/d05f16Xxaqq1w229uGKYL7W gU4y59ST/EsmnPB4FfZAsHjiRxf6tPFoaVF7YA+TO6x3LRHK3ErDEqwevUuVZV8jdBf+ dPezusZYIDG40No3kGTLL207zYhJcwqKMS00OZezxYk9PgDqFRkUtKneW34DBgFfbRBn DDZ8Rwq4zyPlQy5vbykaS9XudLqYuVORPJGYJnkiT8L64BGM0ee0hW3rWsQdnRdI/0qU 8V8+YO8M37BEVkDrF8P0KRDyGjbgtseTdzKCjNHrtbPFO+qMrmlKdB0KAp8bHL2HqjI+ ZKJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=1tyLVKIt7fjiqKhGVwZeZKRmV2ktkcmCU7XGltvDQ4Q=; b=hxZxmNUuq7U8dZMuSchOUVtYQ9tgez8+tWDQvc7y5yTxrixU44d4vHH/S5Ypfq59Zl 7CePVhhysUSWvEZWrbMccwmzPl7Wx5nw9J+cPIQFi8VMa6jPKGDLK379HlMNlf1Fbd5m CuzEhpyCcBTq/TVvz04vcjGirhxPtKl5TOqStAqlkpNc97wASp1Pt/KUrlPrbCiPYLKZ 9o4LkhxqIyEDhjE9CjVXTiRfINnzo0fYPS6I8lArq5GPsdRVbKEyiC3K0eh2oYVy4WUA wWfS/faOx5sCSEZhioenRMsgxAriYzSO23nYZy614ejl1IWQG1vPl7KArFHEeQVTSX74 1TAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="W4C6i/ND"; 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 b8si5947471edc.231.2019.10.19.02.22.22; Sat, 19 Oct 2019 02:22:46 -0700 (PDT) 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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="W4C6i/ND"; 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 S1730321AbfJRVzX (ORCPT + 99 others); Fri, 18 Oct 2019 17:55:23 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:38678 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726589AbfJRVzX (ORCPT ); Fri, 18 Oct 2019 17:55:23 -0400 Received: by mail-oi1-f194.google.com with SMTP id d140so2170907oib.5 for ; Fri, 18 Oct 2019 14:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1tyLVKIt7fjiqKhGVwZeZKRmV2ktkcmCU7XGltvDQ4Q=; b=W4C6i/NDHXV4LLEEcdB1w1FdhP89pXSPKd2RgTguGpRoA0RN+eJfpijKXmMkoMu7uE 8zXAPl1V6RsLuTk3j3JFviHk8fFjb4BwsCDZ0PtGFFk7Zj+Xy+hlQXCJn28kbLjwSf8A TJMtBFv+uAaOjsrYKHGK2vfazgo86mlD4PQj52Wsd+pTOx/5fCPk219aQrYfk4OYQOUk HgfmZJQYmbtiqHIYlg6Qws7HbGjUDr1iYJQmMdS1lgDVGqMZxmKsKRU/KqAW57ON50ms V76vXWR+JiMA0mcdN6nZh0At9rdNNNwrD6ufyycGKkHUsODex8SYQzXnhgQDgutegrkG m+bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1tyLVKIt7fjiqKhGVwZeZKRmV2ktkcmCU7XGltvDQ4Q=; b=hhBDAB0BgH1o54V/9ncAPPwLCgLFeT7kfqVMwXw8K++4XhsLoPA3pyH7cBqaWyy0lm KmbmPKXG1B9nkg6j/kNE5vRNsSzSEtnOTeAdBmYjBwR9+pN7j7M44BgxUkx/uqiRJxJF kSlRY19gg/sVlvD52we+ktawdrGS9r++5+hEN/gW1tEeNqp/Vt72okevB4b1aFsBRfK1 oH5kClfFFuccSnzQEb83NZ9jHPnDwduzVc8J8hS1MWTXFr2zPgdAODmR6BU+3BmMX3Zb NE1bujGHcfWerQnaLkuYSFyyvhZkAUm/hT4Z1dg51Fh470V+jsWoFLieCE9JJYiUQZph xWHg== X-Gm-Message-State: APjAAAXw4mQ7813JMRxolOTV70AFMGxG5oip/dztU1MD1Hy2IL++yAnD 4UHo/x4luGAyw54v/ozcTnH8nAn52zLECzKtIfFqdQ== X-Received: by 2002:aca:6087:: with SMTP id u129mr10127312oib.149.1571435722239; Fri, 18 Oct 2019 14:55:22 -0700 (PDT) MIME-Version: 1.0 References: <20191016221148.F9CCD155@viggo.jf.intel.com> <20191018074411.GC5017@dhcp22.suse.cz> <0b05c135-4762-e745-5289-58ee84cc8c3e@intel.com> In-Reply-To: From: Dan Williams Date: Fri, 18 Oct 2019 14:55:11 -0700 Message-ID: Subject: Re: [PATCH 0/4] [RFC] Migrate Pages in lieu of discard To: Yang Shi Cc: Dave Hansen , Michal Hocko , Dave Hansen , Linux Kernel Mailing List , Linux MM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 18, 2019 at 2:40 PM Yang Shi wrote: > > On Fri, Oct 18, 2019 at 7:54 AM Dave Hansen wrote: > > > > On 10/18/19 12:44 AM, Michal Hocko wrote: > > > How does this compare to > > > http://lkml.kernel.org/r/1560468577-101178-1-git-send-email-yang.shi@linux.alibaba.com > > > > It's a _bit_ more tied to persistent memory and it appears a bit more > > tied to two tiers rather something arbitrarily deep. They're pretty > > similar conceptually although there are quite a few differences. > > My patches do assume two tiers for now but it is not hard to extend to > multiple tiers. Since it is a RFC so I didn't make it that > complicated. > > However, IMHO I really don't think supporting multiple tiers by making > the migration path configurable to admins or users is a good choice. It's an optional override not a user requirement. > Memory migration caused by compaction or reclaim (not via syscall) > should be transparent to the users, it is the kernel internal > activity. It shouldn't be exposed to the end users. > > I prefer firmware or OS build the migration path personally. The OS can't, it can only trust platform firmware to tell it the memory properties. The BIOS likely gets the tables right most of the time, and the OS can assume they are correct, but when things inevitably go wrong a user override is needed. That override is more usable as an explicit migration path rather than requiring users to manually craft and inject custom ACPI tables. I otherwise do not see the substance behind this objection to a migration path override.