Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5695763ybg; Tue, 22 Oct 2019 07:07:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZmd1DH+Wf3dx90OVgWItttsyc5Hy4nYlM2bD6vHYGiwWmoan2Lkx8Ay5Q60Pzo7//t3FW X-Received: by 2002:aa7:c484:: with SMTP id m4mr1369542edq.177.1571753254904; Tue, 22 Oct 2019 07:07:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571753254; cv=none; d=google.com; s=arc-20160816; b=xnvf8x0inANXJTMaOgZ91sePCauyvyNTWkjWf5t+gJi3LdhFSTZJQ3OgNixkmAVKcP /ythCWnMwvmvljS5ElGmy5wXep9TSH4F3oDfkR5v4NbdUHQ1HxFtZLTeBT7cfaIIe8qu rlStTpuE1BmxMj5nQRoslzzRMbkFAkRAEDQbLfK+a64K/zN62eKDfLalUrLR7vymSIRx BtdFeXXO2i6d3zVQC+56z+0xWRMkYNH+W+JL2a8MYsndA3JF+Xw1pZHRKMJ9ZdKMyPtx Yn59+2+8DsXGS8dwqQD0nAbY5VbshXhy5dyp32EQOfarhCnJGenvbvqEKMtf5BMu8OOZ lMlA== 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=upiUJ/NnJkrk7iYYl5/qO3fMCloYA8GAvhURHXb70fs=; b=D/9F0uWweiIP30jjVoYltZftLj2AwYx++129U2o+Pg3lCW8v7cAjb79bw/OzVC0f8y bv15djjii40qrChoMnuezzms/1jE+25EhpSUUKs1a7Yx6lPKgJ98oojZwSc7Ublmc2Sq 9ahOsVMEPdKvvW1aTD7DHYXLnljHeOBdJKa1sKL6ESP2/XD6BUFaemAAJN/i4Tmg8nFY F4BV2uPPtfdmk5hciaQpI8LsNaw9CSyKr71GAqf+De5HCSMvTkI+yOK4nJTEmjJu7CbK F2UotBQgtm9qmWPObehYbjaZGnILhoG4VPdfrM7gyNNp4TRO5VMd2Cn8HIwdJbktqscO Bfdw== 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 r26si14344857edx.61.2019.10.22.07.07.09; Tue, 22 Oct 2019 07:07:34 -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; 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 S1731693AbfJVNtx (ORCPT + 99 others); Tue, 22 Oct 2019 09:49:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:56926 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731035AbfJVNtx (ORCPT ); Tue, 22 Oct 2019 09:49:53 -0400 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 6D6D6AFA8; Tue, 22 Oct 2019 13:49:51 +0000 (UTC) Date: Tue, 22 Oct 2019 15:49:50 +0200 From: Michal Hocko To: Dave Hansen Cc: Dave Hansen , linux-kernel@vger.kernel.org, linux-mm@kvack.org, dan.j.williams@intel.com Subject: Re: [PATCH 0/4] [RFC] Migrate Pages in lieu of discard Message-ID: <20191022134950.GQ9379@dhcp22.suse.cz> References: <20191016221148.F9CCD155@viggo.jf.intel.com> <20191018074411.GC5017@dhcp22.suse.cz> <0b05c135-4762-e745-5289-58ee84cc8c3e@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0b05c135-4762-e745-5289-58ee84cc8c3e@intel.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 Fri 18-10-19 07:54:20, 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. > > For instance, what I posted has a static mapping for the migration path. > If node A is in reclaim, we always try to allocate pages on node B. > There are no restrictions on what those nodes can be. In Yang Shi's > apporach, there's a dynamic search for a target migration node on each > migration that follows the normal alloc fallback path. This ends up > making migration nodes special. As we have discussed at LSFMM this year and there seemed to be a goog consensus on that, the resulting implementation should be as pmem neutral as possible. After all node migration mode sounds like a reasonable feature even without pmem. So I would be more inclined to the normal alloc fallback path rather than a very specific and static migration fallback path. If that turns out impractical then sure let's come up with something more specific but I think there is quite a long route there because we do not really have much of an experience with this so far. > There are also some different choices that are pretty arbitrary. For > instance, when you allocation a migration target page, should you cause > memory pressure on the target? Those are details to really sort out and they require some experimentation to. > To be honest, though, I don't see anything fatally flawed with it. It's > probably a useful exercise to factor out the common bits from the two > sets and see what we can agree on being absolutely necessary. Makes sense. What would that be? Is there a real consensus on having the new node_reclaim mode to be the configuration mechanism? Do we want to support generic NUMA without any PMEM in place as well for starter? Thanks! -- Michal Hocko SUSE Labs