Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp660830iog; Mon, 13 Jun 2022 10:04:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uWMtVl0zcFUGkyIgmk2Je3jWaOxKl8I2QqfLfEiRbg+Zc93LJ8xkEIblsp43JHWJhEDhMJ X-Received: by 2002:a17:903:2645:b0:167:92f1:15c0 with SMTP id je5-20020a170903264500b0016792f115c0mr297598plb.100.1655139889781; Mon, 13 Jun 2022 10:04:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655139889; cv=none; d=google.com; s=arc-20160816; b=Mc+rdss7320TeNlmRpQpsxjc/SPQZcfVtsqe1rO/hjXndEylb4nVZBOQwry/RW6YPO gy2UoXaGkrJKjK+DO0vtDcEaL1bqCH2IWAnUnIlejbGRaH6Qoh4PBQuPqMH9ghZR9Y0T uw5nFvV3czYT/oG0yOK4irRq7tDzmREGY3luaqvqeWoMYZTw2qHPd0QI7HHXO8FchCmc 9JvlAzYmNsP1er5nVkV3B6fgZEbI2vWMAjjMusQw9WIU2ihbEQQGAYz+Zm4dHExCienJ itoJT8MJt4moDSla/yxI2LZZ6MrT+d+zI4EAqwQhKIhicMdYm29oWxtwNtl/oYG6C/7r TurA== 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:dkim-signature; bh=vTUVTphSjRqOLzEAq4AJERTLad8wEOEYyPCB9Gzzk28=; b=ARN+1Kpw4c3WKJnHPrmjg2fvbeNSCObFrz88MOfwQclzhCXjswiDr9BXtRnpAwLwfX QXuYArJAEjvuwSQ5bV6CSvOpn4WMyMPFb4Qv7eO0i+59MdpXghn+6MQjV20IPED2lEHA NqlVzE7h+Fhz8JqUL7vDRll+hBJipcL/QNsxfxqHn8CE1j9NI0I3LI7a+xXr2i3llW2A c9ZdCl4UGub/+Ji2vgoCyXErjMQss+bI5RSCgui+Iqp0omexHi0+XpxUO3vNKcogWtWd JpU++jDxgqXcrsnYF7aam1XqORGRg5Fo/tIwZw+utzxailzj3rYrRrWsnnsZW+CIODhI YkqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=Z169z99Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d18-20020a63d712000000b003fd41012235si9846305pgg.803.2022.06.13.10.04.35; Mon, 13 Jun 2022 10:04:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=Z169z99Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241123AbiFMPlb (ORCPT + 99 others); Mon, 13 Jun 2022 11:41:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240757AbiFMPlL (ORCPT ); Mon, 13 Jun 2022 11:41:11 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1777915EA7D for ; Mon, 13 Jun 2022 06:16:15 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id y15so3830963qtx.4 for ; Mon, 13 Jun 2022 06:16:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=vTUVTphSjRqOLzEAq4AJERTLad8wEOEYyPCB9Gzzk28=; b=Z169z99Yp60K3L6aH53aQYSmZcelvnNMLnX6tk8ht16Qm3uhvNctCnuYXhB9g6O/q0 VW23qE0clRf2Tx7RkHvrw0Z19LAJl409ZqBMjtbHki8NbU1rC9G2tVDVWsVIOzCBe8K1 NHx+bQy9cdLqi1lJmzjAqJBcgbdwrY1m+tUWfsyOC2AoI3iiY/iT9WHSZWdTf5YYcX7Y dggVXOle1k/XyLx6L+6HJjWQiXV2jHvKGD3lC4DaN58vsWfdtyB0D3rDtvwxSaAhkxsm Mby8KDNhq7UOKe5INfIXGLt9kEqKVBHK8kgGhQR9wPB56YYA4luoneloQhreLU4m9B5A bE8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vTUVTphSjRqOLzEAq4AJERTLad8wEOEYyPCB9Gzzk28=; b=yreJsYtqVdE3qb1dMMQFxnM5eSjm7brJAfPM0EPoGjhkLUFpB+L8v5KHRilkIYkrB8 U14WwVvsV3/gd8lhIqcFc2hFlN+oyeA6foO8cMNsv+gn0E2vYXRDffLx1HGLEmopyJN+ KtHuVuCeOKRGlfetEyEPvmNQn6Tvksh2hx/iR+R1Taqg0voj0hwFD+QtZBN1FJdtX8rF bgiWpZl+2N5pWECuLOLKZD2yIFRTPRto2SNSJw4xw2VIzXjd6NoFR0aeep4pL1XVPQk9 zVaEG3qeLqdj+kwqONMVsjHxb/JuT2QbChARdVqBQ+fuHWZZRid3JOolkXSYJ7TQ5ADX whig== X-Gm-Message-State: AOAM530eIkl0bD4rbVcZKxeWqQg5U8qfPozbmZmLqLzVVSPMz7oYYZUV DnbLOTpBGgklrPfmr4bOekXj+g== X-Received: by 2002:ac8:7d4d:0:b0:305:307a:6562 with SMTP id h13-20020ac87d4d000000b00305307a6562mr4897401qtb.481.1655126174749; Mon, 13 Jun 2022 06:16:14 -0700 (PDT) Received: from localhost (2603-7000-0c01-2716-00ea-7f88-5fd9-01cd.res6.spectrum.com. [2603:7000:c01:2716:ea:7f88:5fd9:1cd]) by smtp.gmail.com with ESMTPSA id b128-20020ae9eb86000000b006a7137330e2sm6105984qkg.132.2022.06.13.06.16.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 06:16:14 -0700 (PDT) Date: Mon, 13 Jun 2022 09:16:13 -0400 From: Johannes Weiner To: Ying Huang Cc: Aneesh Kumar K V , linux-mm@kvack.org, akpm@linux-foundation.org, Wei Xu , Greg Thelen , Yang Shi , Davidlohr Bueso , Tim C Chen , Brice Goglin , Michal Hocko , Linux Kernel Mailing List , Hesham Almatary , Dave Hansen , Jonathan Cameron , Alistair Popple , Dan Williams , Feng Tang , Jagdish Gediya , Baolin Wang , David Rientjes Subject: Re: [PATCH v6 01/13] mm/demotion: Add support for explicit memory tiers Message-ID: References: <20220610135229.182859-1-aneesh.kumar@linux.ibm.com> <20220610135229.182859-2-aneesh.kumar@linux.ibm.com> <7e0b41422dbd0976cb43c2f126e9371d5e311e77.camel@intel.com> <48096ad7-ce6d-79b7-1edd-7e6652ab2a4d@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 13, 2022 at 01:30:08PM +0800, Ying Huang wrote: > On Mon, 2022-06-13 at 09:01 +0530, Aneesh Kumar K V wrote: > > On 6/13/22 8:52 AM, Ying Huang wrote: > > > On Fri, 2022-06-10 at 19:22 +0530, Aneesh Kumar K.V wrote: > > > > +config TIERED_MEMORY > > > > + def_bool NUMA > > > > + > > > > > > As Yang pointed out, why not just use CONFIG_NUMA? I suspect the > > > added value of CONIFIG_TIRED_MEMORY. > > > > I decided to use TIERED_MEMORY to bring more clarity. It should be same > > now that we have moved CONFIG_MIGRATION dependencies to runtime. IMHO > > having CONFIG_TIERED_MEMORY is better than using CONFIG_NUMA. > > I don't think CONFIG_TIERED_MEMORY bring no much value. It's better > to use CONFIG_NUMA directly. But this is just my opinion. I agree. As long as it's always built with CONFIG_NUMA, it's simply NUMA code. Easy enough to modularize it later if somebody really wants this to be configurable separately.