Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1393067rdg; Fri, 11 Aug 2023 22:38:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGawoEuk9BgkrRoD+WeTJfs/D8JT67HwX566XT3+o6X60UBys3tdUo5yxSM7CG/adUV+L8/ X-Received: by 2002:a25:dc8c:0:b0:d4a:d2e2:afe0 with SMTP id y134-20020a25dc8c000000b00d4ad2e2afe0mr3935982ybe.14.1691818708727; Fri, 11 Aug 2023 22:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691818708; cv=none; d=google.com; s=arc-20160816; b=wUQ37XaS+KoOcmBapGPwhkXJhanrtcBhniO4Gy06swDY38KspBeUqzUQ2GHRqCU2z3 9HEkwhxvzQYZRw/l3XHrwOtsPgAepDi81x4d6cAJ9E85v1KL9Ba3gkx4fsvSNQ24ktLH 7reEd/s6m/2lnSyDHvbHEtGnNflUtsrfXqgLjKbmJgVlg/2HrntNeVfLByZk9k70Ez04 /8j9haNp9Y8XryZ2rGxTAGAOnRQZPNohL92CmntQZueeBl1rt8zQqT07TICOnMSYmTRD 4x7jOjXnZc2xDJV0gTS8O9JcAZ0DwfRFhPq3qpi0sbYJqpDBHQtlMgVFlghCCqYQ+5yZ 8RIg== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=86mtJloUHa2cU6xz1krwxTUYHHYWBvUKL/iATDB/E+k=; fh=vtnWV8JNwR1XsewvXMxtEaYdG53Drn0uZ/h82qJVaaE=; b=c9DaB9QPJxwWQKwGqwWKbigREqS3aUb3s4RAKpmshg2ZVG0szuFHdjQw85axnWyywc 8J7m5leDyzUKk6DnCRM1L2WZya5EqckYaVL+NHN10OFtu6fKYvIOBf1hRdsuUTOAr/6l c69xhBAQX7YeIdAlUEyXWHoMzXgGuQWYPdA4pWWmw7Kt50ghIF2NFPTjWv4Ns2ikH0NX +mx7fOABCtq1xDes976PffbEyWAvQxsxvq0Fk4sl8iodoS3qUFGK9SWgyZLfgm/+MpiR ztmca235zr/9oFIjikdPv0M1HJxcTZeb8/+X+hJksTji4KUA5EWpV7IMxOWj4sedoPDt 9Gzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="ejQ/KB0x"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pd3-20020a17090b1dc300b00268b0001dcdsi3717104pjb.1.2023.08.11.22.38.17; Fri, 11 Aug 2023 22:38:28 -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=@quicinc.com header.s=qcppdkim1 header.b="ejQ/KB0x"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234144AbjHLFJn (ORCPT + 99 others); Sat, 12 Aug 2023 01:09:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231685AbjHLFJl (ORCPT ); Sat, 12 Aug 2023 01:09:41 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75F9A2722 for ; Fri, 11 Aug 2023 22:09:41 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37C59Kpg030312; Sat, 12 Aug 2023 05:09:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=86mtJloUHa2cU6xz1krwxTUYHHYWBvUKL/iATDB/E+k=; b=ejQ/KB0xxNzhvQQMMu3fDEEMOHkBHkZyZ2+Wj78XLZQihQ8aUzFweazNT9NJo92w01EC uzZ6+WaQfXq/kemj/hkdcoy7nubvof8DObdYaTt87/V+FroieN9AAAA1miFgUXkBF8HW QYPJd19L+hkJwfP+ys74Vp0joG/+ejKbbQgKyvazKsmlWW7tYGqSiyxLuNsc4EsyW19A 6dCuxdXkq0isczaeHwOTvpATe+uIdOjRRU6z1JwiZzmvnZe50xd9m+9VZr1vl7Mv/U4k sHZSh49b+qF3i8jbsaCLn1Ine50wYa3zidUcj2WKIqLnsUi9fdR5Hkk+3SLE6Qf3xqf2 dQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3se3hsr0bm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 12 Aug 2023 05:09:20 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 37C59Jfc032040 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 12 Aug 2023 05:09:19 GMT Received: from [10.216.41.189] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Fri, 11 Aug 2023 22:09:16 -0700 Message-ID: <2dce810b-3fa8-0ae3-1f74-b0c447c1ed71@quicinc.com> Date: Sat, 12 Aug 2023 10:39:13 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] Multi-gen LRU: skip CMA pages when they are not eligible To: Yu Zhao CC: David Hildenbrand , , , , , , Kalesh Singh References: <1691568344-13475-1-git-send-email-quic_charante@quicinc.com> <9d109a43-78a3-dee4-5aaa-385bdfe4bcb3@redhat.com> Content-Language: en-US From: Charan Teja Kalla In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: GeKOCoDcCB0OB0bzUFKTHUlYkcGMTb3v X-Proofpoint-ORIG-GUID: GeKOCoDcCB0OB0bzUFKTHUlYkcGMTb3v X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-12_03,2023-08-10_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 suspectscore=0 adultscore=0 spamscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 priorityscore=1501 mlxlogscore=687 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308120047 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 8/9/2023 10:39 PM, Yu Zhao wrote: >> On Wed, Aug 9, 2023 at 7:00 AM David Hildenbrand wrote: >>> On 09.08.23 10:05, Charan Teja Kalla wrote: >>>> This patch is based on the commit 5da226dbfce3("mm: skip CMA pages when >>>> they are not available") which skips cma pages reclaim when they are not >>>> eligible for the current allocation context. In mglru, such pages are >>>> added to the tail of the immediate generation to maintain better LRU >>>> order, which is unlike the case of conventional LRU where such pages are >>>> directly added to the head of the LRU list(akin to adding to head of the >>>> youngest generation in mglru). >>>> >>>> No observable issue without this patch on MGLRU, but logically it make >>>> sense to skip the CMA page reclaim when those pages can't be satisfied >>>> for the current allocation context. >>>> >>>> Signed-off-by: Charan Teja Kalla >> Reviewed-by: Kalesh Singh > Thanks, Charan! Do we need a "Fixes" tag? I think the below tag matches. Fixes: ac35a4902374 ("mm: multi-gen LRU: minimal implementation") >