Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4353326yba; Wed, 17 Apr 2019 09:40:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfkJ/9Eepoe8x7iYC1IDS7kp6mDs15+0y2eIJZCDnBV/m6fAvZmm2nO33EaK/dPS54vnSv X-Received: by 2002:a62:3849:: with SMTP id f70mr91584286pfa.46.1555519254257; Wed, 17 Apr 2019 09:40:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555519254; cv=none; d=google.com; s=arc-20160816; b=RUkf9kZsybUfmoSSr5rmlAYEtxjsR+VkKMXW+8YF02aRVko+D72spPqTAppqfaN7H8 4kvlaLiZn0Vf+QDace7cmNNS3A5I7R7r3H/Nu4uF8lvR8+jFYXroajdTaUrwI/nsNryr 719wbI23G3NJActTSBYLZckg7NGyP2ZtcYNn8iiUnMaqF79R2tCU9IWg6d/PgjchTLQr VsmWxF2Cu59+4DfLZ3202MCTK067dU7gwaycgxAWT4O51IGODkh6xN9GYcXqUFq8PiBz gHTwSvk/0Z54yzjuTq7Xpj2N9P+Qq0Yvw3urQfdzdV+PUXVq+PhpCtVF7DTPghcUMDzq rgqQ== 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=rrCf6SVtM07NH9+OMGHudPfvaV1SdrS/yUvdQP0a1Lw=; b=Q3HRE4wWUNgq3wK9Aq1vniGAQtpApqtYqqIb+PGPcH+jiZzXdkuThyyUljPzBHmGU4 g9/prOgzI5Xeu1ptz1DWwQhkisXUED5iZMzB/FcV3qONzReiKfI4VZ3hvfvDqYkQEYtI /AJ5VyA+Nx8Q49dnNesr+IIOxS6dbnUCC0Ln9blE1TRiRO7kCLrcgfPLx0dLRcCue6x8 V9d5Mq11jUkDE/WDwtBsqW9f8p02cmVF1YW+pyv8SKUvVUZz2gKctjyfTU1Vx/Daquji QcjCR83PwNrmCWeJVQ6qwR4TCpVueFuw0O6cJStfzQPm3FPj3KMwX8MEp4BP4zNY542b hGIg== 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 h2si21001756pfk.277.2019.04.17.09.40.39; Wed, 17 Apr 2019 09:40:54 -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 S1732839AbfDQQjO (ORCPT + 99 others); Wed, 17 Apr 2019 12:39:14 -0400 Received: from mx2.suse.de ([195.135.220.15]:54726 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729641AbfDQQjO (ORCPT ); Wed, 17 Apr 2019 12:39:14 -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 A99A9B113; Wed, 17 Apr 2019 16:39:12 +0000 (UTC) Date: Wed, 17 Apr 2019 18:39:11 +0200 From: Michal Hocko To: Keith Busch Cc: Dave Hansen , Yang Shi , mgorman@techsingularity.net, riel@surriel.com, hannes@cmpxchg.org, akpm@linux-foundation.org, dan.j.williams@intel.com, fengguang.wu@intel.com, fan.du@intel.com, ying.huang@intel.com, ziy@nvidia.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [v2 RFC PATCH 0/9] Another Approach to Use PMEM as NUMA Node Message-ID: <20190417163911.GA9523@dhcp22.suse.cz> References: <1554955019-29472-1-git-send-email-yang.shi@linux.alibaba.com> <20190412084702.GD13373@dhcp22.suse.cz> <20190416074714.GD11561@dhcp22.suse.cz> <876768ad-a63a-99c3-59de-458403f008c4@linux.alibaba.com> <20190417092318.GG655@dhcp22.suse.cz> <20190417152345.GB4786@localhost.localdomain> <20190417153923.GO5878@dhcp22.suse.cz> <20190417153739.GD4786@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190417153739.GD4786@localhost.localdomain> 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 Wed 17-04-19 09:37:39, Keith Busch wrote: > On Wed, Apr 17, 2019 at 05:39:23PM +0200, Michal Hocko wrote: > > On Wed 17-04-19 09:23:46, Keith Busch wrote: > > > On Wed, Apr 17, 2019 at 11:23:18AM +0200, Michal Hocko wrote: > > > > On Tue 16-04-19 14:22:33, Dave Hansen wrote: > > > > > Keith Busch had a set of patches to let you specify the demotion order > > > > > via sysfs for fun. The rules we came up with were: > > > > > > > > I am not a fan of any sysfs "fun" > > > > > > I'm hung up on the user facing interface, but there should be some way a > > > user decides if a memory node is or is not a migrate target, right? > > > > Why? Or to put it differently, why do we have to start with a user > > interface at this stage when we actually barely have any real usecases > > out there? > > The use case is an alternative to swap, right? The user has to decide > which storage is the swap target, so operating in the same spirit. I do not follow. If you use rebalancing you can still deplete the memory and end up in a swap storage. If you want to reclaim/swap rather than rebalance then you do not enable rebalancing (by node_reclaim or similar mechanism). -- Michal Hocko SUSE Labs