Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp194462iob; Mon, 2 May 2022 16:52:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7YlOt/lHOLWjh1jw9MKdrYvuzOP0dKJfkvrR4ftQ491OYa74GhQrfl65yKajYd525cuIU X-Received: by 2002:a17:902:ec8c:b0:15e:a371:ad7d with SMTP id x12-20020a170902ec8c00b0015ea371ad7dmr7626398plg.12.1651535566616; Mon, 02 May 2022 16:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651535566; cv=none; d=google.com; s=arc-20160816; b=UjPm8KhzlYIXXZi6jWz2VM3vMbP4bKwuiGVBRStbDiKO91d+NcYXQQDJnl2FHzbCik Ps9P0sXZ0eikRHbkDmWmwLi5GvDtT6KTalMJuLebXz6lpBzZxcsv/XsJHTYLXMoekl1W tkPlGDRk0yZS5okA2VJdBmO1gsXMx9yGqlPW+GoBV379bQtJEk63JsjbPMVRELCKdBRN 7Zu9+N1T1qh+gQi4HnGkzvDAiyNEFcXXLO6azefO1XI/QUCdlG7eIsXf+Yf71mQlwoIK S+9bJKgFdNsvQ4/EI2c757V26arimEID5ysa9h5dMyZyD+xKsPGze9vq3ot52c1hViEO 2V4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=YQB6wDDMj5JcWys4Hc57er6zcN2qmD7KxLoOkNkGhBs=; b=b2jSGt2x0D1Jq2tfnZNtMUgP47UQgkTrmxIrBphzv+HuXIhHieb5bNPluIQJ/XiCES y+vMI+aO1Gb+c7TdWTpWrf5RzOMIPuMsfR7O6OGxGJUjhc2UJqDuL4gRIF/yZqQS0RZK A27cdvBR5sx1b8KLlkAMUSGE3KIeaif8g0mB5+INDXXak6zOL7r0UmHBnZXZ+Ay9qP+Y ULjK41AOp/+o9zovwGc3P8I7/maBMYcHc7uYKRy6AggjWNUXQ5miNs6HhzwjaQj1F9Gb wRFqgIENus+LfC1ecE8brJmPJ18/TfI29KRFrVYSV1Bk2iyuRSn2oMCoyteKuKi7CiQ/ Se4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=YFOeKuTf; 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 bj14-20020a056a02018e00b003aaac06ee1esi16380180pgb.605.2022.05.02.16.52.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:52:46 -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=YFOeKuTf; 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 05CE933EA6; Mon, 2 May 2022 16:52:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358456AbiEBH1R (ORCPT + 99 others); Mon, 2 May 2022 03:27:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344735AbiEBH1P (ORCPT ); Mon, 2 May 2022 03:27:15 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D70D211C2A for ; Mon, 2 May 2022 00:23:47 -0700 (PDT) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24278Rqk021447; Mon, 2 May 2022 07:23:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type; s=pp1; bh=YQB6wDDMj5JcWys4Hc57er6zcN2qmD7KxLoOkNkGhBs=; b=YFOeKuTfm/Eh1cKAZ6YEFFoYzDeCN54SQhxppqigoNtu3yvSRR/niI5WQ//QR7wfGiC/ X9YJcSCJZHI3BZ/uMxVbSH6bjzdK8DewtTbn0UvcBtP/0FI/s3vhr+2C1uKvDahmkYBP pKtSsvXgI0cCRytsjVqcEGoDETEGxI0i1hlu80ML+U5twL3oCEQq8jYZu/qDB0nTlssy ZbFMRX2q8mtCPLCbuPZUnumAY9QtJG1xeNwVyuyBQDsPLbPVWFBVn1bdYFutc1MrwEqu VvyCdwNhMrQwBnvR/euUsx1sihDReD749M7HK8HBdM1CsULiyCIiHwygcocZnUYNrlAy rg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3fsf66vn6f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 May 2022 07:23:23 +0000 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2427FpW4016249; Mon, 2 May 2022 07:23:22 GMT Received: from ppma03wdc.us.ibm.com (ba.79.3fa9.ip4.static.sl-reverse.com [169.63.121.186]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3fsf66vn6a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 May 2022 07:23:22 +0000 Received: from pps.filterd (ppma03wdc.us.ibm.com [127.0.0.1]) by ppma03wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 2427BnhP016235; Mon, 2 May 2022 07:23:21 GMT Received: from b03cxnp07029.gho.boulder.ibm.com (b03cxnp07029.gho.boulder.ibm.com [9.17.130.16]) by ppma03wdc.us.ibm.com with ESMTP id 3frvr93t3d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 May 2022 07:23:21 +0000 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2427NLp131064424 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 2 May 2022 07:23:21 GMT Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0AF866E05D; Mon, 2 May 2022 07:23:21 +0000 (GMT) Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 158F66E053; Mon, 2 May 2022 07:23:14 +0000 (GMT) Received: from skywalker.linux.ibm.com (unknown [9.43.74.71]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP; Mon, 2 May 2022 07:23:13 +0000 (GMT) X-Mailer: emacs 29.0.50 (via feedmail 11-beta-1 I) From: "Aneesh Kumar K.V" To: Davidlohr Bueso , Wei Xu Cc: Andrew Morton , Dave Hansen , Huang Ying , Dan Williams , Yang Shi , Linux MM , Greg Thelen , Jagdish Gediya , Linux Kernel Mailing List , Alistair Popple , Michal Hocko , Baolin Wang , Brice Goglin , Feng Tang , Jonathan.Cameron@huawei.com Subject: Re: RFC: Memory Tiering Kernel Interfaces In-Reply-To: <20220501175813.tvytoosygtqlh3nn@offworld> References: <20220501175813.tvytoosygtqlh3nn@offworld> Date: Mon, 02 May 2022 12:53:11 +0530 Message-ID: <87ee1cv1nk.fsf@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 X-Proofpoint-GUID: t_CELR3ehHiO8Nup_quIkLgssZJ9pJ2_ X-Proofpoint-ORIG-GUID: kbUDMArbM8dJzS2RSB7kA1dc_xzfQdaY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-02_02,2022-04-28_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 clxscore=1015 impostorscore=0 spamscore=0 mlxlogscore=999 mlxscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205020054 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Davidlohr Bueso writes: > Nice summary, thanks. I don't know who of the interested parties will be > at lsfmm, but fyi we have a couple of sessions on memory tiering Tuesday > at 14:00 and 15:00. Will there be an online option this time? If so, i would like to participate in this discussion. I have not closely followed LSF/MM details this year. So not sure how to get the online attend request out. > > On Fri, 29 Apr 2022, Wei Xu wrote: > >>The current kernel has the basic memory tiering support: Inactive >>pages on a higher tier NUMA node can be migrated (demoted) to a lower >>tier NUMA node to make room for new allocations on the higher tier >>NUMA node. Frequently accessed pages on a lower tier NUMA node can be >>migrated (promoted) to a higher tier NUMA node to improve the >>performance. > > Regardless of the promotion algorithm, at some point I see the NUMA hinting > fault mechanism being in the way of performance. It would be nice if hardware > began giving us page "heatmaps" instead of having to rely on faulting or > sampling based ways to identify hot memory. Power10 hardware can do this. Right now we are looking at integrating this to MultiGen LRU. We haven't got it to work. One of the challenges is how to estimate the relative hotness of the page compared to the rest of the pages in the system. I am looking at the random sampling of the oldest generation pages (the page list in the shrink page list) and using the hot and cold page in that random sample to determine the hotness of a specific page and whether to reclaim it or not. -aneesh