Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp2002574lfo; Sat, 28 May 2022 13:27:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKyBwdmSHvTNFo6Usdrsu6L1FALtj9gV3J2zfdYD2YFIFaCTBT0HwDugwsNu6I27rdcwBO X-Received: by 2002:aa7:9f4b:0:b0:518:1402:cf6 with SMTP id h11-20020aa79f4b000000b0051814020cf6mr50056084pfr.15.1653769665444; Sat, 28 May 2022 13:27:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653769665; cv=none; d=google.com; s=arc-20160816; b=oi1ms2Yi09N8SaqI09Fyf/miNAkpVuiQivyY2x+1qbpyzDSdp0j/S/9IRhkO0nw4IC 8dqbQvjr5So0zh62Uuf2WPGsTOrSOcJRKEhATz9d1QHcEwhEA+A4O90+NKZ8h3y3yPxn zw9W4XWtkCVf2RQ/QX+BcfOE+mxMsXOuq5z32uA8D3xG6aTl6t1g0LvxQVNmpGLED3cQ AE0SLtEOQM3wFlyP0EEOo7qlh5opehk/SL6c3CVy0LDSe9ZdV5FmTB3EdWewOOrxG/OE 3q9ZVkcC8yNnZ58N2MsSTknbCWvt9PLYLoXmrTty+ZaA+worGxjXBjGVZGn4eC2NWdyh 8buw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9g6mz1ylmv173XWWIuI9CzS3Wpc02dZXxX1VqooLv6M=; b=mvG2f50ZvJ6jTKbMzjXihyWuL+bsyOwm7YxHUAFV3fFHsc7M/X7FwGiIuF96w68V8b lJ1Yd8EcdgyAXxbekgReXMhYwGSrkhdCs+40jtfW3S1Jn/kZoaPpQXzg5f6TqpUOanV0 VwJAo8LMNMegjDTR4B7bSQrYUM2GFu4uYX8oBbnMBX84SjuImMsQ5ahgOA3NSXahwjbv o/zprtr48kFsky7oKn841exuzRNHAriV0Y9oO2HLihn6HREJw4E0CRcoz0zRV0drQ8ng ZFyY+HLnjr19rJpaPDDmDObgj4G1GvW7iUkytkQSgo9PEeaTqXSIWrjr+m3cqg+mPcBF 5oAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ICPj8M19; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u17-20020a170902e5d100b00153b2d16403si11417793plf.11.2022.05.28.13.27.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:27:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ICPj8M19; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F30F6193201; Sat, 28 May 2022 12:34:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351681AbiE0QaY (ORCPT + 99 others); Fri, 27 May 2022 12:30:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231132AbiE0QaW (ORCPT ); Fri, 27 May 2022 12:30:22 -0400 Received: from mail-ua1-x92f.google.com (mail-ua1-x92f.google.com [IPv6:2607:f8b0:4864:20::92f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EE583B2B6 for ; Fri, 27 May 2022 09:30:22 -0700 (PDT) Received: by mail-ua1-x92f.google.com with SMTP id 63so1733305uaw.10 for ; Fri, 27 May 2022 09:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9g6mz1ylmv173XWWIuI9CzS3Wpc02dZXxX1VqooLv6M=; b=ICPj8M19sLww6myKVnMx7K4vHlePmm+tmuVa2CCBroqezT99t1DinF9BZu3oSQWi95 PpHxUge67hCiEN+WbmdFcFmp8LoaNqXmtffkzJy1t2bg6QFSpt+0cta9Vh/exFeakeY8 ES6R1K20FZEi8DvnQo+3jrpIm5FGofSrhASDaagpHZYCBydJb1rbBRkKTUKmMN2hpZbm FRCTGunZ2yKbLACuUH57tkyr0bh7HuM09UnLIwgdDTL+WogL5Yjb2zxog50f0Rjsgd8z Cctn/w1tgtMEDvEQuXCz2/zfx4aQ/YRaYg3+SGh/W7Ihl0m86+RY8kWo0ZD2STUDzwff u6xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9g6mz1ylmv173XWWIuI9CzS3Wpc02dZXxX1VqooLv6M=; b=S9UfGCvXRtWeJsG6aomG4Keq/v0lvolTsizZdHeyRGLX3bbkQc8hy+/Jgcf7wPgzuZ DipF6sV3octCax5DTGQDiD1BEIVHXbSefjwU5UAzaY3jjz1P0p0fgNvC8NzSGDp9Jemj o32L+xFShfqUQel2bY4qY5LaaWitkFRngLaQ0ywAysaUoI2FzTJrizf0bKBZT1s3yWbb 9WRaLxGMr+eHUJgU2Ei0eLcQvK+OmEpZJTUc4LBqeCTmmBFG9yjaBmXwNseITKVmhz71 5SfS0E4u4kh4FU7Bys31dgrwaqW59tBxygnxmUoeuMn93K6V5WJwGNosfymbzgDYWcEW 4SCg== X-Gm-Message-State: AOAM533CojZTdobz1LDNsKMgOtRF6HWFYAZ2cSCR3hosDIdLQMqThq4l GR/YsOlqOsOV2JCtBRvblB3vK06Cx9Sex8a22fQsRg== X-Received: by 2002:a9f:3592:0:b0:365:ef07:68c9 with SMTP id t18-20020a9f3592000000b00365ef0768c9mr15993279uad.60.1653669021023; Fri, 27 May 2022 09:30:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Wei Xu Date: Fri, 27 May 2022 09:30:10 -0700 Message-ID: Subject: Re: RFC: Memory Tiering Kernel Interfaces (v3) To: Aneesh Kumar K V Cc: Huang Ying , Andrew Morton , 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 , Linux MM , Jagdish Gediya , Baolin Wang , David Rientjes Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 Fri, May 27, 2022 at 6:41 AM Aneesh Kumar K V wrote: > > On 5/27/22 2:52 AM, Wei Xu wrote: > > > The order of memory tiers is determined by their rank values, not by > > their memtier device names. > > > > - /sys/devices/system/memtier/possible > > > > Format: ordered list of "memtier(rank)" > > Example: 0(64), 1(128), 2(192) > > > > Read-only. When read, list all available memory tiers and their > > associated ranks, ordered by the rank values (from the highest > > tier to the lowest tier). > > > > Did we discuss the need for this? I haven't done this in the patch > series I sent across. The "possible" file is only needed if we decide to hide the directories of memtiers that have no nodes. We can remove this interface and always show all memtier directories to keep things simpler. > We do have > /sys/devices/system/memtier/default_rank which should allow user to > identify the default rank to which memory would get added via hotplug if > the NUMA node is not part of any memory tier. Sounds good to me to have it. > > -aneesh