Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2379243ioo; Sat, 28 May 2022 11:49:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKvA7/PmMA7T/dbaQr5o+dAmO7l8tuddLqhQkFcgHww7dDSVVluZroU9AisVuDr5/J6XEj X-Received: by 2002:a62:e40e:0:b0:518:3f5d:eecc with SMTP id r14-20020a62e40e000000b005183f5deeccmr9522179pfh.22.1653763745000; Sat, 28 May 2022 11:49:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653763744; cv=none; d=google.com; s=arc-20160816; b=gSKGX/Xs/gZX6R3bWrmVaxqVPfCFw50YDPGQjISp3BOrggTfZGqVdFIS4ehHRdn77p jtYi74+7pHowvBslJatU08azENhqjuvtD6WLrFWTvFbP5HGJkHz7LQFZUhnpo/UVjRXI 27Ic9r2dVXrE1/BB0q3W0Yt0xz7vYIZYK3GiWCfxdgoRHhyAZaH+ufh2IA/oWlUrjP+P Ks34EBP/dYKOgrSJWXI70YRcqA5ogvVYU6ApCMXbaR/Ma4+VMZkc433dLQGyF4usT7HP 8GiF3AgaHYJB2q5dlA7ZwlW817tZv4mlxQzR/PzaSS8yL2PbzBeSva7JGAm4Zs/lNWYE KUwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=zOdP/drjTzGihZLXcMHbI5b4sIdT2KZuKatWTzb/zdg=; b=bZwZqd4EzaD/ow/FBPzF/u8ggYeRAiegR6KOBSwPZt5H5BSSoHLSfz1vytqnlZHf3M qdPHgAriDSaOwnVkP6/gm12ppj9vpEx4iIZAFWGgUYotBz52d8IQcD+kbTOqJNxPkGuZ s7nZrbtFw9/jFKWXnLq3Uxffg1k14GQwrusuZYEq0ddgNFdKl+T9IF4+SZAgAGbG3YeD agnGoFwFS4ozYXLJ/FjMt/u6D4Si+G3PhWDa/x5qCbnk/MSvsXjrDU4q9TsXcKn+Vd/5 Bdb6xES9RUjNulBGbvdBYhs5HBQeSD46wFmFcHSkaNqtow+V5MS0qcQgJBM3iQHKbRWt qvlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=La1fwbdD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 5-20020a630d45000000b003fa34f00425si11093616pgn.321.2022.05.28.11.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 11:49:04 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=La1fwbdD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 74CFA2E9DB; Sat, 28 May 2022 11:37:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351399AbiE0Nlx (ORCPT + 99 others); Fri, 27 May 2022 09:41:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243477AbiE0Nlu (ORCPT ); Fri, 27 May 2022 09:41:50 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 137EB49251 for ; Fri, 27 May 2022 06:41:50 -0700 (PDT) Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24RDelT8023246; Fri, 27 May 2022 13:41:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=zOdP/drjTzGihZLXcMHbI5b4sIdT2KZuKatWTzb/zdg=; b=La1fwbdDEHypRKWo5kr1a4yo+RAJdujdyXPVjlTuOim1WgwBXl75LM3nDo4661HS3tkg BsRPk3cIOXi3ac9oju7ezet8/JdATkmpfTMxB/zPNg0LQK+TyC/SfMkK4gtcVJyx6NWr dY9wEbiBNHZiZYVoibd7PHELbip8ABVtzLDSymzaCTNCgYEF6KxZdhdxNZOCDK+IENsu GRKB+CT/+BjFOg7YuuCEQAbNM0Iv/gsPelosxkWwePeCwkwmmKdbzvKSBksHQgOYK0Wr ux3Y5U3qlaqt4jMqar+NBNXlHQOdo3F+rEV2ANoSOfEt1t5hAWfVEv28DgGU/0FHO6vG 6A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3gayqx009e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 May 2022 13:41:18 +0000 Received: from m0098416.ppops.net (m0098416.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24RDfIgh028676; Fri, 27 May 2022 13:41:18 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3gayqx006j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 May 2022 13:41:17 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 24RDIvWu023541; Fri, 27 May 2022 13:41:05 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma04ams.nl.ibm.com with ESMTP id 3g93v03yu4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 May 2022 13:41:04 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24RDQnjv46596606 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 May 2022 13:26:49 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AB32C5204E; Fri, 27 May 2022 13:41:02 +0000 (GMT) Received: from [9.43.91.191] (unknown [9.43.91.191]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id E037152050; Fri, 27 May 2022 13:40:56 +0000 (GMT) Message-ID: Date: Fri, 27 May 2022 19:10:55 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: RFC: Memory Tiering Kernel Interfaces (v3) Content-Language: en-US To: Wei Xu , 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 References: From: Aneesh Kumar K V In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 2ETpv1Ag1m1AG8xaAH-grwbMMCZl3HFv X-Proofpoint-ORIG-GUID: Js3ZwWpwPd6A2FJOhOWYEm4xBoJCvbPi X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-27_03,2022-05-27_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 suspectscore=0 spamscore=0 mlxscore=0 clxscore=1015 phishscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2205270064 X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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. 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. -aneesh