Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751588AbdG0NFL (ORCPT ); Thu, 27 Jul 2017 09:05:11 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:34768 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751428AbdG0NFI (ORCPT ); Thu, 27 Jul 2017 09:05:08 -0400 From: Roman Gushchin To: CC: Roman Gushchin , Vladimir Davydov , Tejun Heo , Johannes Weiner , Michal Hocko , , , Subject: [PATCH 1/2] mm, memcg: reset memory.low during memcg offlining Date: Thu, 27 Jul 2017 14:04:27 +0100 Message-ID: <20170727130428.28856-1-guro@fb.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170726083017.3yzeucmi7lcj46qd@esperanza> References: <20170726083017.3yzeucmi7lcj46qd@esperanza> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [2620:10d:c092:200::1:a524] X-ClientProxiedBy: HE1P190CA0049.EURP190.PROD.OUTLOOK.COM (10.160.72.166) To SN2PR15MB1088.namprd15.prod.outlook.com (10.169.192.138) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5c35e699-1813-4003-29a8-08d4d4f01503 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:SN2PR15MB1088; X-Microsoft-Exchange-Diagnostics: 1;SN2PR15MB1088;3:E9HswPO95TqMCfdXpACJTQIR9VIs9AqDcv1mMLknXceTtKfI5FWjkjJjg9zVZYDCcaCalngOxRWqlnFiTCNf6Mz2b3ANt7bmVhJtUMv4fz4ssm4sTAM9UG/ZnXJnNWt9dJV2mAaODWIEu3Dxt7sglfc2CPLXmO4GY03HsLNdjCjloA1XGjeLe6nEKAnKJgpzOFNI0EA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hLqHGM+Kof0tr2CkgZ3SfrgG7pL3DIZypqC/QE2WRbTHf2BZnLPkkVgX7h5LYMP7fawu44tCh+JLQmzoxKzbl5VNlpE3U7fjcfLnwO1w2VOxkfnQ8AlUbSU8Yu/sWpXd+vE= X-Microsoft-Exchange-Diagnostics: 1;SN2PR15MB1088;20:xbfdpzZyivwxCfws6Mwxbu+oTNoxSQiFIlj96LRzUeSzFvvIPmyi7S9m+Y9Obhe44RZOumYhjBIk4QTCYXHYyeFgNrcbjelu1BVFQWTOJY5u9LQefMVQkmfJeF3mLjkKVI8KRz7S057iYW5eIBVsuMnOfx/yBnBZfVyjNZjIBFoWnr93xxEuCyzEsipq6Af6HdXF9pmNDlO2GeG+RIVLjDWqJPLX8N8dv6sM8Sr353JO1P5mt+6Z8tQlMjGiOFA08a9/92lKldvO5JeCoV6aG2Q9lNrdl79YTLY5rGIAw3Ep+I/vb5KAhIX85wxmOcVO+6erDLlUhymsxAvJ4Og4QDKXBhe/OykQYvDd5uqQ+9bPjUXl+pB1KX8sYaK/DgRTZMOXELRKw2TRKVh9qp3jp5DwRa7l/rW1OmOCKcN3P6EJm5R1/geRUM6iErPU9fdzBhVz5FpFpgOIIwwdAef7E6oeCUjYZFq0nRB/Z22WlKYzY3kDU/3R2mqPSu9/Xk0b X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(67672495146484)(17755550239193); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6041248)(20161123555025)(20161123564025)(20161123560025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:SN2PR15MB1088;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SN2PR15MB1088; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN2PR15MB1088;4:83GQHuvr464hNpfmgc5E2mQTwz2YPuNPkJFiRCpeNk?= =?us-ascii?Q?DD1yP7vcaxGbuyK60AeFFHXCufRL1kI/gvgEUdx8PfA+f2NlWDrDLGVvEEL/?= =?us-ascii?Q?iSsygCv6Df6F+yHqP2U8URm3fIMbEJHRCeIG3K5+73+jwHdoFahncZmUKVYR?= =?us-ascii?Q?VyKj8uxkGGnnTc5Sv7Kb7MqdmhPy2y/8xgLBm+KAVupGG2aCOVCmTmPejC4h?= =?us-ascii?Q?Mx2p3IrNRPDmsgZrbJJcYFItVMQkoo3O7/uznxPYr++tIvW+GMJLVmemkBIp?= =?us-ascii?Q?bswRbDcPtplX9r3gc2mSAjpD12Vy0Ip6aDkTlBUxzaKNk3inXUZFpdIukI28?= =?us-ascii?Q?3IUi7xYG0bvErl4YJayYtyOxcE3WmJxVxh6HmbrcBDtl56QTk1XcQlPAMNJC?= =?us-ascii?Q?EchJLQ8uFw5x9b/y5k18Uz8gOrMpshuujaDtdHswR5GwWZhPwMUMAnHEdwrI?= =?us-ascii?Q?LAhywxhg6mbpDnQcE5I/b3SZ7eoZbpS5wm57Ptxm1lNFgR1wl+ho7AKWdQOv?= =?us-ascii?Q?xvqHiLqneT0s4g0Qdmzdzj7N90RZJJJ3dYynqVDLeWf4rVapjQOFVTJ+LIC8?= =?us-ascii?Q?xX03qFY4f/loaKbDQd9hl+Ry19ZNjTsQuCTojKUFnRndWDpPE7EQ3CnPVRYu?= =?us-ascii?Q?VsUAvhfcd56ldt2E7HSTq/bACzFfSdK+VBO4oDQJsMOBDelT5nKbqHi2dwO+?= =?us-ascii?Q?WtKC0SJckg0PGVMh/ME+4TN7QGqWClMy1SA4bCvaDP+k20Y/zWTmbja1hj+m?= =?us-ascii?Q?KVOrhttCXT1dGWjxlqXlEL0l6Nyq2FRChZIPBvFYGzmgxKVcNIMiTXg0jT+M?= =?us-ascii?Q?jRgUtAZl+Y//arG9blGVopgcdojmqyEDMUTxMoBlIEHKm9QWZRkwR++YDCBa?= =?us-ascii?Q?9eXTPFEwpJCiOiz6WZCMXUILd/qgcO2AkkDLPWWV6CuZKdOeDTEx21hL/i30?= =?us-ascii?Q?G5yvU4ZCC0CAMmRuwwKj9R073kBnjvIqRuZLUXSCkvBrOH9COBr/D/fvXJTD?= =?us-ascii?Q?goESqF0QzHxd8dU9x/JCRs3flcni4jfRIqYAoJInWiDM1xW+PMunWhowdAB+?= =?us-ascii?Q?szF/MJDGyw/eRuIE7ml6404Oj6ump26hzd3PFDYCCXreKd7cixmyCpMFLvbr?= =?us-ascii?Q?NDQPpWDHPS6hZCmrtSOAkF6XLvd48PKeU4GZXFAYKo5ODstnEtfuAprgnSMm?= =?us-ascii?Q?TSXMQEEZv2glVIVYacEXm3dPg1PwHujsDlhByfqk+mL3WcvtmID2s21a9tf3?= =?us-ascii?Q?txq+EApA6Ji4umgPY=3D?= X-Forefront-PRVS: 03818C953D X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(7370300001)(6009001)(39450400003)(39410400002)(39850400002)(39400400002)(39840400002)(189002)(199003)(81156014)(81166006)(69596002)(105586002)(76176999)(7350300001)(8676002)(2906002)(6916009)(6486002)(106356001)(5003940100001)(189998001)(53936002)(50226002)(6666003)(2361001)(101416001)(2950100002)(50986999)(478600001)(6512007)(6506006)(36756003)(53416004)(4326008)(2351001)(42186005)(54906002)(25786009)(48376002)(110136004)(38730400002)(6116002)(86362001)(47776003)(5660300001)(97736004)(305945005)(33646002)(1076002)(7736002)(68736007)(50466002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:SN2PR15MB1088;H:castle.thefacebook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN2PR15MB1088;23:6qUIKMo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kqtkvui54zU3q8wutnX+eLzXB+nIve0Vj9GLh0JcFaSXFZN/tnu/Or8OUfMmzyFPNfhLtvgcgpSCunkQBYaY4j9MyBpIL3eF3U6lKiaPduoywpWOOFgC7yhFfZQHrt0FjuMSWIn+y2z/Hplg1gJ3h66kjCCp6KuDnIhB8BhL7ekaf8= X-Microsoft-Exchange-Diagnostics: 1;SN2PR15MB1088;20:hTfsHgO3owk6aGb4n8AM+33U5i6I8R3/QVIPHPpf1a4HYhdgTOfV/T968VIokJ5ToeeNQFByCLif72JxkiqrBcdDRecSzKpazaYg+0U16WTltuM8zlrC6tjxj/ykzPJSlYao1oefFAVJTPxtcE+ZAqCrOTnpSjNPXHzUljgqcsY= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2017 13:04:55.5304 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR15MB1088 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-07-27_06:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1495 Lines: 45 A removed memory cgroup with a defined memory.low and some belonging pagecache has very low chances to be freed. If a cgroup has been removed, there is likely no memory pressure inside the cgroup, and the pagecache is protected from the external pressure by the defined low limit. The cgroup will be freed only after the reclaim of all belonging pages. And it will not happen until there are any reclaimable memory in the system. That means, there is a good chance, that a cold pagecache will reside in the memory for an undefined amount of time, wasting system resources. This problem was fixed earlier by commit fa06235b8eb0 ("cgroup: reset css on destruction"), but it's not a best way to do it, as we can't really reset all limits/counters during cgroup offlining. Signed-off-by: Roman Gushchin Cc: Vladimir Davydov Cc: Tejun Heo Cc: Johannes Weiner Cc: Michal Hocko Cc: kernel-team@fb.com Cc: cgroups@vger.kernel.org Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/memcontrol.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index d61133e6af99..7b24210596ea 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -4300,6 +4300,8 @@ static void mem_cgroup_css_offline(struct cgroup_subsys_state *css) } spin_unlock(&memcg->event_list_lock); + memcg->low = 0; + memcg_offline_kmem(memcg); wb_memcg_offline(memcg); -- 2.13.3