Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1760373lqe; Mon, 8 Apr 2024 21:54:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXRvwbQMOrnFI5ts5/gY3bhNsoVTSXLN6LSBWeUETrs02hQLobPeECix+BLf3JcL+dT4A2zB45FFZN8fw5D+D4EPv6aDAYaTdHnUtTyMg== X-Google-Smtp-Source: AGHT+IHiN0vfKpjXiWUsxqwZRHF4AYFr+vYzDVihmhE88vP6TXTmyBBht1LmBEjLxb4Z4TG9hsK1 X-Received: by 2002:a05:6102:3e07:b0:47a:77a:e932 with SMTP id j7-20020a0561023e0700b0047a077ae932mr4602096vsv.25.1712638471492; Mon, 08 Apr 2024 21:54:31 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j14-20020a05620a410e00b0078d4e0d6d5bsi9219121qko.324.2024.04.08.21.54.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 21:54:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@oppo.com header.s=selector1 header.b=JcASuTYO; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-136242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oppo.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2F5A21C24278 for ; Tue, 9 Apr 2024 04:54:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8A6152F7D; Tue, 9 Apr 2024 04:54:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=oppo.com header.i=@oppo.com header.b="JcASuTYO" Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2094.outbound.protection.outlook.com [40.107.215.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A578433C8 for ; Tue, 9 Apr 2024 04:54:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.215.94 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712638464; cv=fail; b=g+gWfXHEbltP5blpCgbUI/y0Rq57K+AqaH6Sly79TK4AOH/lqdmKQsX+5XzSlP+5Xr0L70dengUa4I01r8X9QjXyE7b5sPRS6RkMAR/cTxQE4wkn5f745IaXqVKn9klLXxAz1lmbbG/EPpfXzomOtS4RL1z95lBQA9XV4BALgFo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712638464; c=relaxed/simple; bh=ULLD/Wx+zmQpMBj+d5HShFIJMyKS7trCtVko9IVLIvg=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=VopD5mtyhsJrewqRj5HYr2kTLHZLGKVaK4Kv0EghCVDpAs4J94n38QE21xLB473wCdSiq+SNydcXzzOLCskGK6YyTAkUYa9AoNvoQ4iL8Nw+O8MXY34C7uXtm/ED1SZvuUFCdEo/EGPFqd7WloubWGigfcZWg4C6LEYZCy5k8t8= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oppo.com; spf=pass smtp.mailfrom=oppo.com; dkim=pass (1024-bit key) header.d=oppo.com header.i=@oppo.com header.b=JcASuTYO; arc=fail smtp.client-ip=40.107.215.94 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oppo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oppo.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QoYqVUIhES1mRFNv4qqCmrayteYbDAN9GvS/BhHeYjCQSjkAB/aoxQ7s0GjLDpIEwFurVCxxGZy4tTk9fKxBoG/YxoV4csPReNsgQubP4VmDafTls7BjRUVNi2z2BPx2fayqP87QdzdRwOMd9EGlzdy2jPG/nModDJ3j+NSYA8UZhlX6jEzdiB012VOS4HbukghC8i0sA3B9MXZXbu5r8hLSXPuNOvwu/C5rDM1qxjxE9r7UWsP7rwhhvd+0mj0Pni+eSwOGpAsRrP2XgvKQlC4oGrRv7ucwIrm7f42LUFNAYVgXDEL/15ZfmJdCkHnDbv4P+OoECAh9bWfoMfEf1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ULLD/Wx+zmQpMBj+d5HShFIJMyKS7trCtVko9IVLIvg=; b=Jt/x6Ct9teEKvpnglqDBcZKlONY365hcKkn7Y+LBmBDR5ijAumniJOvBm7jCcZ8PunhHzwMYKO9Yy6i8uoRyjV0Rz0V1UnZqjDU4kI9QsuCscwvaUHiS3VCvgFiEPmHX5JRO6Exe76+ajGE0JH9T55fizI3RfhhuzdaWJG28sPQxFVEy13yF9MKDmz+Bre2UEFZUJMGhoxZcr/bylbriP1lwURGRpI+ZkfPtKYsf/ubEKkFR8/MZlSlAibriKMOC15WkzJbAx1Xa/wH7TdOKSjK51eQwm3c2MU921cnHFDQjRKUtqmUbnRw3ozQIFkVti/pMnScDKDjR4nJgGHucbA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oppo.com; dmarc=pass action=none header.from=oppo.com; dkim=pass header.d=oppo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oppo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ULLD/Wx+zmQpMBj+d5HShFIJMyKS7trCtVko9IVLIvg=; b=JcASuTYOSXM8BMtIpFp52zJ6T4ZnofxlE8+ACrq8NSkuyTGGGWWusgEW34WEBBjE9vpT9MUEAGqs3F+TmmkwVuMJQKmJOyYLr65uHlQ6ZPG/UbUtd1VlhftbVyTxboUeqZ5m2NAgZbPNS5l7RlTiht5Za/+4eSUNsTT8+E9UZyU= Received: from SEZPR02MB7164.apcprd02.prod.outlook.com (2603:1096:101:194::8) by SEZPR02MB7101.apcprd02.prod.outlook.com (2603:1096:101:195::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.41; Tue, 9 Apr 2024 04:54:16 +0000 Received: from SEZPR02MB7164.apcprd02.prod.outlook.com ([fe80::5652:ff56:99db:8db1]) by SEZPR02MB7164.apcprd02.prod.outlook.com ([fe80::5652:ff56:99db:8db1%3]) with mapi id 15.20.7409.042; Tue, 9 Apr 2024 04:54:16 +0000 From: =?utf-8?B?5YiY5rW36b6ZKExhb0xpdSk=?= To: Oscar Salvador CC: "akpm@linux-foundation.org" , "nathan@kernel.org" , "ndesaulniers@google.com" , "trix@redhat.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "llvm@lists.linux.dev" , "surenb@google.com" , "zhaoyang.huang@unisoc.com" , "quic_charante@quicinc.com" , "yuzhao@google.com" Subject: Re: [PATCH] mm: vmscan: do not skip CMA while LRU is full of CMA folios Thread-Topic: [PATCH] mm: vmscan: do not skip CMA while LRU is full of CMA folios Thread-Index: AQHaiYuRl0SECUJYB0aKbci+ca4YcLFeDTEAgAFTqYA= Date: Tue, 9 Apr 2024 04:54:15 +0000 Message-ID: References: <20240408080539.14282-1-liuhailong@oppo.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SEZPR02MB7164:EE_|SEZPR02MB7101:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gRG7hoTl7Y6tMOZZ2rz4MZ/WJapQ0if/ajAbLEju9tF7XVlGiDz9X2C2K7DToA0EmaxmCSZhCWgqhDfIvhGLxbl8so/6Ts2js9qU9srYwEzaiAvayy3IPTEPTu2sv3+Tez3mq1hPmOo2DWY4obpOaKfzVH0RsuadADL/tjb65g149I28erJ8nRoEYlbuDyklPDgoqLFZ7CGmbZF3Ep2jPBoHZCMI13o7qG5UxW6He574SeY+7r9I+MWkhdcqOkgEQtJWobFz+KQqxvexSIM1JSDxDsFrGVFWqlIO6YNW4KvD/YXdK8PRZX52QPmqG+UAlqI1J+EgspnWUm5DgF4kgsN/NuFj+52rhMWZ2o2IgweCkcN4S22Ug434YfGJYk4hma29h5EPqswFhkX7lL4KyLD2gYjZSw+ziNp+fccPg2CsBQ/seBJZo7BzMSzOMLC8PlRXE46K1qAkZbc4UbTtwiZ407wx+7ITJACtnKYFgxTYej5N3ECX64lQL8gLyQAVZiw/OlTeSAxHtHPqHVVImEksg/ptkJ2fITdFAbS7SyOiLa4scQL7+vIiSjgyD/+mfe2w4zC59gLylMtX2UjjYFgI26ogp8Hjva8a4uu3NGEb/3jMooGUEpMSsbjcBgAuTvQEkwQzRK9eFlgxHkJq8HMZzTs5QmGHedU91qRU9+Q= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:zh-cn;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR02MB7164.apcprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(7416005)(366007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?a095dWZBTkJEM1hRanRoZk8wY0hNYjkwSWFNUnpHOUtrSlhNL0phV09mdUZU?= =?utf-8?B?S214Qkxac3NPMVVaUEc4OExMNW9zWW5HQjI5aDdnV0tleFl1ODV5WCtidlNW?= =?utf-8?B?TFBsOTZsdzdsOUdvSkFuWWJlNno0cUNCcVVlMmJXMTAxSzhiSFNlcWlpV2s0?= =?utf-8?B?UnQzVUVvRjk0MENRUTZqeFQrQkUvNXZCVVJDc3E2dHJlaVdUZEdhdTVpczBI?= =?utf-8?B?SGc5YVJ6QjBLdzFyQ3I2bklsYlZDR0hyT0JxTGNGZUxKcWdXM01sTFJUZktY?= =?utf-8?B?ZzFYUmVjZjdFV1ZGMGViTWs0Tk1CS3lpbmlUVDNmL09rYVlzeHlwdGo4UWN1?= =?utf-8?B?Wk03ajNQdFMyTitVRm1SSkZjUEd0aDhMd1dGWE1DRENpWkhKdTY5b2RwVXNy?= =?utf-8?B?N1dZcmxHOCsvR25sbThBVzRFL1dxYkxxcU0rR29oQU1RQUVZbVVLR1RWS2FX?= =?utf-8?B?QWFRZkZlLzJZdERCeitVZWZEbW9HWmwyUk1xK3M1Mzk1VkZRNVBhYVdMdHpi?= =?utf-8?B?SlI3WjBLbVZpV1AxUTVtell3Sm5TOVc2Ti84aHhKTFVhM3lIUEVjZy9EdTRi?= =?utf-8?B?R1ZZNDFLTTNzZWhEdVc0VHdPY2xoU0gvREhCVm4xSEdpSmhoS3EySVEzSkN5?= =?utf-8?B?OXNuZGRRSEdtY1pTV0REK0VwZ012aTlsb3RLUUdxbm1aMTdYRllyTGJDbm1B?= =?utf-8?B?QlN6TTBpWk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?utf-8?B?d2RhQWY3V09YRHRRMnpPelhlUlE5NmJaWk9Ya21HZmdCMjhVaEJFMElhTk1F?= =?utf-8?B?ZC9vSGFzbzg1YTA4MGVnUzBqTHdwOTlUUmFYTzRqT2hhSmVPRjlXUmdwS3lI?= =?utf-8?B?RzBNMnNUWGxyUEdMdlBHZjNib1E1WHZoM2kzSkRJWU15VFFuYXJQY2IveE15?= =?utf-8?B?cGM1WU5sU1gwaDMyWWdqLzR0UGYzb2wzTFp0a01kelhkck9JdGQvaTl1a2lR?= =?utf-8?B?Q24vOU5MUThHMk0wQXh4eEJ1R05WbkZoV1BoMWpsbG9QYTh0NERqclB1NXhW?= =?utf-8?B?Q0UxREZuZEhrMklvTHJ4VFJqZ3ZGeXFRM0RtT2tzVjNkdlFyNHR0d0R6S2FO?= =?utf-8?B?ajJaQVV1NXg4b1JtM1krb3g3Y0dMRFZJV2dqNFF1WUZSdCtlSUhkeVdHWFBL?= =?utf-8?B?eE8rUXJ4VkRxNHBGY2FxSXZ4MjREYURwaDl0RW5Lb2o0ZFJsQUVXV1pJU3Y0?= =?utf-8?Q?wCWUsm6ek2nvzRnTVfiqd0Rpv?= Content-Type: text/plain; charset="utf-8" Content-ID: <3C9C075A8D84EF49885FC373115E0659@apcprd02.prod.outlook.com> Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: oppo.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SEZPR02MB7164.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e9057b52-8fee-4b97-9d24-08dc58511b94 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2024 04:54:15.7698 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f1905eb1-c353-41c5-9516-62b4a54b5ee6 X-MS-Exchange-CrossT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