Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp170855rwb; Thu, 1 Dec 2022 00:12:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf52DJXKumga25lPXfAm6vEBw1484kukRLBiaXeZNbHBco+zk2bQpLmLXWMdstEd0L7HW7j9 X-Received: by 2002:a17:906:6992:b0:7c0:a880:d569 with SMTP id i18-20020a170906699200b007c0a880d569mr3395237ejr.414.1669882322436; Thu, 01 Dec 2022 00:12:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669882322; cv=none; d=google.com; s=arc-20160816; b=TEISwJIj7xp3n5BUdZbvJ0DU+vKV7aap7HQKQU7ZGIV6thhy6AJ4aEUpQASB14YbFY 5cUHpp+UWxApQWpaks9alX6ZARn8i4vvGP3p6TZwrBBnI2KC1EucYsBqrPX9VTmaqYqq zmnbsBTHxMUMTf+SjYYWjz1qbLpGvFLSJaeyFD6YqRD403Jf0z9UiR+TE6cQKhCoKNHW 2N5k6I+oIjgHqg20XIy1iBWxd20ZTsDXf1bscdCU5Yztaj6Fk7MDJTxPfXXU0fhtIz9u SV2fCgxA8lQHguYYRWINS8O182DFv750icrpJCYdjcxYKStBEhARrPBb+vZMO/tQFv0y Epmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=hF5bK9BgR5u24krlK1Hs8Gg6ciNoLM006f90q2ObRPc=; b=xFwk9K4h0/SFLAEBW7vIkUTWYwPE9HiWRuxoNE/Mz8hNcAp/yWbTeNYxsH5EkFw2n8 +J2nsz1dWE24SuUsypGAzT5Ew2NRh1xpN2FvJobDE/ZJadZr2Mo5mZ7951E4BfU+Cik9 +bKizjJEDskLpVrwCELF5bV8njRrdZHo/1Eb5cr7iHVJaCXuP8f4W5GXoaV6pJMxJzDw 5sG9Pc+JQN3YpMXA2/oVun4zJbWH5l9yasL1JDNjfwvI3ZHnR9UtQrx9oOTlhep9BE00 1wbidE4+irUCuAa4rC2s/TKb46l1YUlhmWGTxVjLpKjDj+zX+eD4hnvQMFHRXi7zZtf8 7SYA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g23-20020a50ee17000000b00459fc3fcf3csi3171496eds.102.2022.12.01.00.11.42; Thu, 01 Dec 2022 00:12:02 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229692AbiLAHtO (ORCPT + 82 others); Thu, 1 Dec 2022 02:49:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbiLAHtK (ORCPT ); Thu, 1 Dec 2022 02:49:10 -0500 Received: from mx6.didiglobal.com (mx6.didiglobal.com [111.202.70.123]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 7C809442C1; Wed, 30 Nov 2022 23:49:06 -0800 (PST) Received: from mail.didiglobal.com (unknown [10.79.71.35]) by mx6.didiglobal.com (Maildata Gateway V2.8) with ESMTPS id EDC44110021101; Thu, 1 Dec 2022 15:49:04 +0800 (CST) Received: from ZJY03-ACTMBX-05.didichuxing.com (10.79.71.35) by ZJY03-ACTMBX-05.didichuxing.com (10.79.71.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 1 Dec 2022 15:49:04 +0800 Received: from ZJY03-ACTMBX-05.didichuxing.com ([fe80::1dcd:f7bf:746e:c769]) by ZJY03-ACTMBX-05.didichuxing.com ([fe80::1dcd:f7bf:746e:c769%8]) with mapi id 15.01.2375.017; Thu, 1 Dec 2022 15:49:04 +0800 X-MD-Sfrom: chengkaitao@didiglobal.com X-MD-SrcIP: 10.79.71.35 From: =?utf-8?B?56iL5Z6y5rabIENoZW5na2FpdGFvIENoZW5n?= To: "roman.gushchin@linux.dev" CC: Tao pilgrim , "tj@kernel.org" , "lizefan.x@bytedance.com" , "hannes@cmpxchg.org" , "corbet@lwn.net" , "shakeelb@google.com" , "akpm@linux-foundation.org" , Michal Hocko , "songmuchun@bytedance.com" , "cgel.zte@gmail.com" , "ran.xiaokai@zte.com.cn" , "viro@zeniv.linux.org.uk" , "zhengqi.arch@bytedance.com" , "ebiederm@xmission.com" , "Liam.Howlett@oracle.com" , "chengzhihao1@huawei.com" , "haolee.swjtu@gmail.com" , "yuzhao@google.com" , "willy@infradead.org" , "vasily.averin@linux.dev" , "vbabka@suse.cz" , "surenb@google.com" , "sfr@canb.auug.org.au" , "mcgrof@kernel.org" , "sujiaxun@uniontech.com" , "feng.tang@intel.com" , "cgroups@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , Bagas Sanjaya , "linux-mm@kvack.org" , Greg Kroah-Hartman Subject: Re: [PATCH] mm: memcontrol: protect the memory in cgroup from being oom killed Thread-Topic: [PATCH] mm: memcontrol: protect the memory in cgroup from being oom killed Thread-Index: AQHZBK+NwNVzWF9Xk0ibAn/rxGrWSq5XnGYA//+FgwCAAVYiAIAAMVUA Date: Thu, 1 Dec 2022 07:49:04 +0000 Message-ID: <5019F6D4-D341-4A5E-BAA1-1359A090114A@didiglobal.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.79.64.101] Content-Type: text/plain; charset="utf-8" Content-ID: <55EEAD05261B624DAB9E7E4EE8B22659@didichuxing.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 QXQgMjAyMi0xMi0wMSAwNzoyOToxMSwgIlJvbWFuIEd1c2hjaGluIiA8cm9tYW4uZ3VzaGNoaW5A bGludXguZGV2PiB3cm90ZToNCj5PbiBXZWQsIE5vdiAzMCwgMjAyMiBhdCAwMzowMTo1OFBNICsw ODAwLCBjaGVuZ2thaXRhbyB3cm90ZToNCj4+IEZyb206IGNoZW5na2FpdGFvIDxwaWxncmltdGFv QGdtYWlsLmNvbT4NCj4+IA0KPj4gV2UgY3JlYXRlZCBhIG5ldyBpbnRlcmZhY2UgPG1lbW9yeS5v b20ucHJvdGVjdD4gZm9yIG1lbW9yeSwgSWYgdGhlcmUgaXMNCj4+IHRoZSBPT00ga2lsbGVyIHVu ZGVyIHBhcmVudCBtZW1vcnkgY2dyb3VwLCBhbmQgdGhlIG1lbW9yeSB1c2FnZSBvZiBhDQo+PiBj aGlsZCBjZ3JvdXAgaXMgd2l0aGluIGl0cyBlZmZlY3RpdmUgb29tLnByb3RlY3QgYm91bmRhcnks IHRoZSBjZ3JvdXAncw0KPj4gdGFza3Mgd29uJ3QgYmUgT09NIGtpbGxlZCB1bmxlc3MgdGhlcmUg aXMgbm8gdW5wcm90ZWN0ZWQgdGFza3MgaW4gb3RoZXINCj4+IGNoaWxkcmVuIGNncm91cHMuIEl0 IGRyYXdzIG9uIHRoZSBsb2dpYyBvZiA8bWVtb3J5Lm1pbi9sb3c+IGluIHRoZ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