Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp241565pxf; Thu, 8 Apr 2021 01:54:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywoj20Wf00RBdDfQXA2RTMvYA8jT5CfXWjL4nOCz7qkjNhqaInavO5CSc1BopgiOigjr5y X-Received: by 2002:aa7:9852:0:b029:211:6824:6c7d with SMTP id n18-20020aa798520000b029021168246c7dmr6683289pfq.19.1617872084485; Thu, 08 Apr 2021 01:54:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617872084; cv=none; d=google.com; s=arc-20160816; b=KJpJEpubohXRivEjnAvBvDOMyl5/zIM5ujQQAleVEpVtku0Qotzwni3EvzZV6ZseWE YTOW8MlqqAHL93E311hghJeRqKKG5aR56Q+VL++VRXqBj48qR9F0J7ZWmveWWlPZdB3/ YKh50klIp8Wyl3soM2716ynilIu6s6hXlqyqQ2EIKPK+MxPHtdRTTXsANvhaVtAiz/h6 pmUGVmA2cBUjFOjK2kfur1tcI2iZFniYFpzI21DP91lVQvllicp2eErA5J+JYm7PFWyR jzK59vN+jbJzZIIqOrzYiKZbhBNRBIHmVIDm2e50uz4nWIUdJUL79W11zE5q41L3QUP9 GREw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Q1d0g6uUZAoda3SbDddoZY2cQKCFBlLdnposegyZp3Y=; b=Yg39c4n5jExIxgWY87nQlGvcEd7es58Sew8u4JSeOyYfJVyZjjqTj4bqFTMTQzGIpQ 8g1qzp8uVBauwLATBabFrQikI+2peoQW7Po8dhaqenH0HPiSNZldHrphp50aED6MVQLB +dNGUmd0qm+eB716AEqPDHQgKfLFWefxOyQovcLPbfM0QM1/Z81/RHafJILbAmPtlBxu iTlePOFJrIOLP8a2o0vNnfA7Yx6eMQeFjsVd9kDVXbJ0PrZ4fyfmM9rqjTcBeUVWySJD 79xpEqBxrp6/U2NE9N/qny/aqwO02cFgejYfhQjhoZO9xICuXes4vQrB17NEaHMfhzT3 ak9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si20066592pgh.195.2021.04.08.01.54.32; Thu, 08 Apr 2021 01:54:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229741AbhDHIxy (ORCPT + 99 others); Thu, 8 Apr 2021 04:53:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:53884 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230337AbhDHIxx (ORCPT ); Thu, 8 Apr 2021 04:53:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4B807AF0C; Thu, 8 Apr 2021 08:53:41 +0000 (UTC) Date: Thu, 8 Apr 2021 10:03:15 +0200 From: Oscar Salvador To: Dave Hansen Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, shy828301@gmail.com, weixugc@google.com, rientjes@google.com, ying.huang@intel.com, dan.j.williams@intel.com, david@redhat.com Subject: Re: [PATCH 01/10] mm/numa: node demotion data structure and lookup Message-ID: References: <20210401183216.443C4443@viggo.jf.intel.com> <20210401183218.E7C9CE24@viggo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210401183218.E7C9CE24@viggo.jf.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 01, 2021 at 11:32:18AM -0700, Dave Hansen wrote: > > From: Dave Hansen > > Prepare for the kernel to auto-migrate pages to other memory nodes > with a user defined node migration table. This allows creating single > migration target for each NUMA node to enable the kernel to do NUMA > page migrations instead of simply reclaiming colder pages. A node > with no target is a "terminal node", so reclaim acts normally there. > The migration target does not fundamentally _need_ to be a single node, > but this implementation starts there to limit complexity. > > If you consider the migration path as a graph, cycles (loops) in the > graph are disallowed. This avoids wasting resources by constantly > migrating (A->B, B->A, A->B ...). The expectation is that cycles will > never be allowed. > > Signed-off-by: Dave Hansen > Reviewed-by: Yang Shi > Cc: Wei Xu > Cc: David Rientjes > Cc: Huang Ying > Cc: Dan Williams > Cc: David Hildenbrand > Cc: osalvador I think this patch and patch#2 could be squashed Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE L3