From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE69BC433F5 for ; Fri, 27 May 2022 13:41:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232745AbiE0Nly (ORCPT ); Fri, 27 May 2022 09:41:54 -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 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