Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751934AbdGYMHI (ORCPT ); Tue, 25 Jul 2017 08:07:08 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:60138 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751103AbdGYMHE (ORCPT ); Tue, 25 Jul 2017 08:07:04 -0400 Date: Tue, 25 Jul 2017 13:06:42 +0100 From: Roman Gushchin To: Michal Hocko CC: , Tejun Heo , Johannes Weiner , Vladimir Davydov , , , Subject: Re: [PATCH] mm, memcg: reset low limit during memcg offlining Message-ID: <20170725120642.GA12635@castle.DHCP.thefacebook.com> References: <20170725114047.4073-1-guro@fb.com> <20170725115808.GE26723@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20170725115808.GE26723@dhcp22.suse.cz> User-Agent: Mutt/1.8.3 (2017-05-23) X-Originating-IP: [2620:10d:c092:200::1:d1cc] X-ClientProxiedBy: VI1PR0101CA0052.eurprd01.prod.exchangelabs.com (2603:10a6:800:1f::20) To BL2PR15MB1073.namprd15.prod.outlook.com (2603:10b6:201:17::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 14d96795-86ba-43dc-a1cf-08d4d355a441 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:BL2PR15MB1073; X-Microsoft-Exchange-Diagnostics: 1;BL2PR15MB1073;3:1l7uWhjPz3YQtO1/PVanXEwnJzWJF6WhpSrL+Tj9KYl210px8yhJZtxaucy4J8DumNf5nfp+iy61UtnQdAais1kksDrZTycETzLqswpGEbxEstUJflgRwSh2MVl2ugjytFbAeFJaUWrBjLBi0jhli8kW/R3A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Zjm255192sOWF8gSo++0lQzVGWKQMx9QmCOBT3LzLEdpJ8nDa+cefcYiBUtKAO8eY39yfid6X1kbGdQvTvlSqP0jmE9ZqoWxPjJPoX0zoapbymCErlRv6Iz5rOKcVCm1q/bnYhCYxo8B+LNArG6yPh4pQE= X-Microsoft-Exchange-Diagnostics: 1;BL2PR15MB1073;20:MktHLlNzLGVmK0DugZB56GHpnk7Ga1ug/8tmNx8L4JsaxQ4DUpItGSv3uECr+IXEBffk8B+ej96gcfJOI76qAStgJNxEf337LVC4MGhQ7XVDddbf93r+n8Ua88Q4U+euHica0yIAhHJRccz9//ht7/QEBt/ov4nRUzzNEBy35oDIz/rNgqciQycRb28VnSS1DKGRDPEeLHwyM0H+MFUHpcTaUFVQynxVEDqdn2QrrnVPi5LSY6y39yytETiAnDK1OVy++kGgUtoN8vYjGU1yQa8+TaDnxtBB3/ulNjdx5yNzjEnru7522iQ2/TUWnvP0w5l1C8VKzIUAFEcuIwCS9JlDYpcO2NroWgNMoCsCvufH0Zo43Y7LeMtpQg8zS6V4fm5r+HwGnkbd3QIELjOopZ9bO6mYypDHxeBDrxPD04+Aa9utHIpk9f+1UqXN1LQrt2+00TmcozdfMYk3e3/AwMiTl41t3AKYhvF53eNUJnumwcw05OGCh4Z3oNq4YDwp X-Exchange-Antispam-Report-Test: UriScan:(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)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123560025)(20161123555025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BL2PR15MB1073;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BL2PR15MB1073; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR15MB1073;4:H73u5lczwYrd49XmCHGYWYdm4T/vUdUko4iBcs3KUX?= =?us-ascii?Q?/5ATd0s3GrgbvaaZgBmMihosSL0cVv+tuG+Tb5/mjpiqGHAnsrtZ+vgqloqP?= =?us-ascii?Q?XsDslCSnh5fVWHBAac6T7LeVOeCjI5VpeKe0VnQWgXMxg8y+LrFYfEoxe2MM?= =?us-ascii?Q?LIr5ToGPGdIstxS5LVqwsPeVFlVGvVI69B+ETIumBuHSIho/whjRYwHajIZW?= =?us-ascii?Q?GfD47nkBlqdrI2kzB2nif0YgzTN5583BraNrmZ78Kyjz82Rf78dX9MiwhBaQ?= =?us-ascii?Q?8zH8tZ6qDFJbJa6GyD3rLZH8qqjnoyAlXUyc1qICEI5BcL7u5sztMrXmW38d?= =?us-ascii?Q?jtwK7LaSm9lsHJvYICmILeP/ojzsKICMq2rk4666qFxsRFZ5e3TaW6xuauzo?= =?us-ascii?Q?btAQJlkTM7m626meJks9Whoa/ZCL1t3jVIRD9NI3MPxDGm+t9VkIQy+AaDOB?= =?us-ascii?Q?xVoYgZBGCJmC3lmHf5RXuA55tvYPCj0zQeZ98dssHy+14ntnNJw/UkGYCEgt?= =?us-ascii?Q?WtwadPTTjaXoR1IZmHMUsktkJCdYPoK8LHvD7YbUusDZCrL0WQ2QSfiVOeVL?= =?us-ascii?Q?7AagV9SJTGal7T1x7jWb2Em+9RrmpXaojH1h0MU1sdNNyk4XgxIGxHNPdgQI?= =?us-ascii?Q?ackZP8Lb7u+RU5+xPBzRW2t4Wf77MffanYK6ZOEy8oaJHdvt6xW7OJhHbzuB?= =?us-ascii?Q?Voprg+2hikys9iHdZJK9sW1oNlklEjz8nCpr0/wFVXsI0rX09xxv0Xk3o/Kz?= =?us-ascii?Q?V9lRcEnupjm2KqyfLgmr8VqKdmC14tkraUcoOcs0wORl4DKFdAqnnfgtMQf7?= =?us-ascii?Q?0V02utoInodDneTRbrzsyERQorHaYbA+cDbJjMLfkPJGD+YRV9A3nIXdkjrI?= =?us-ascii?Q?ko3Mg5Md6SDJECu6jwzwS4KyXF7a7B0PYSyu1t0zg/bKDXo4FmKYYz0niguP?= =?us-ascii?Q?y2dxXYvBIJqbOG1ue20Y4q/ekonAvVT5Fr9nzJ+XWzECWTfYr8JGp65dJYw1?= =?us-ascii?Q?i2t1hsNsEidGr4AN5h90MnIPIROM83KSd2ZZqwRdAV6WgZEHAyvw8MAKiV3W?= =?us-ascii?Q?lokeBQmT0QxYb4U7PJSmSovFzkHYoc6QnymiKYf7cKP4AHqUZVzDzV+f/fZe?= =?us-ascii?Q?JKcyFCHhBCJXcdIXb8DxZWodeu3PQ1wCoWryyrtQl1j/JSMToDyvu2YcyebU?= =?us-ascii?Q?6yZj9azzSGLmc=3D?= X-Forefront-PRVS: 03793408BA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(7370300001)(4630300001)(6009001)(39410400002)(39400400002)(39850400002)(39840400002)(39450400003)(199003)(377424004)(24454002)(189002)(478600001)(50466002)(47776003)(6246003)(25786009)(53936002)(189998001)(5660300001)(86362001)(33656002)(7736002)(54906002)(97736004)(68736007)(9686003)(305945005)(4326008)(6116002)(23726003)(55016002)(229853002)(106356001)(76176999)(83506001)(6506006)(2906002)(50986999)(54356999)(1076002)(7350300001)(8676002)(4001350100001)(81166006)(101416001)(110136004)(6916009)(105586002)(2950100002)(38730400002)(81156014)(6666003)(42186005)(18370500001)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:BL2PR15MB1073;H:castle.DHCP.thefacebook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR15MB1073;23:6dil68DUYeOKpnncPJ/dwEIR9vDQiUvHZbQrjghQp?= =?us-ascii?Q?Xep2/SRZOd9CsyhrIhJZhenDwq+41SMcFPDwWi9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nV4zh4+i1WX92yI21I+YX1z6jVvjaAblts5Y8fV+s?= =?us-ascii?Q?TiiVxFSXnMzVgG5TWwuMRyM228AzMsx9NEAFchaHjmOF5ecnHcAWjB4zxAtx?= =?us-ascii?Q?/te1D56RNISI2nhRFK2J4OyyjtIR9J0Zg/cUUXI8N5br+nNAZMfaOHXm1cNM?= =?us-ascii?Q?v842LOfqjRH++acCuYylC1oQ8Wix2i9Wr631CSLA+bWOmH4wjPlAz9M5CYW3?= =?us-ascii?Q?BGMe6HyaLmv9BXY2kOZKvJMlQm91oKj6uamRwqMJqsqmXOY/Hn24Bl3EWm+P?= =?us-ascii?Q?GiVOSHuUcgyt4GnMYuBxdfGJJzWAfErWdaidIpL6MjoBcI0GsPcx8H91RUuq?= =?us-ascii?Q?UjzaFAAskxEMwiP6vaJZCCT7a41CJzitC0fgiRVcAf5ow5LsquYn+QXUDFSr?= =?us-ascii?Q?DAJv7QyQHQ9a344/VpYBT1IWNg=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR15MB1073;6:MXiFqo4cqo5yKbRmjuUMni89ynl8kxslizwroLECOc?= =?us-ascii?Q?QRGjzmVWgU4FMwI7Sb38QP3DbHcIBzAjFcqsyG7SJJistarjuEYhhnSBdlJz?= =?us-ascii?Q?c63AoQg1H1XLOyx5buh2nqk4c9bgumioFo6SNIt0jaqoR33uyWHezd+54GVJ?= =?us-ascii?Q?sW7wsz3NxsPwjmF6nz0sJ5ynrwOkJDCG4OubYNmlYglsPGyL3ZT7ib1OOjfX?= =?us-ascii?Q?lvNlC+i3DzmAbH36Bf0R7RS93WbhjkT/mFzQF5KGvvzw9lgIDmr/bvVGPKJa?= =?us-ascii?Q?o00M3zwHeMXYnBv77h51gJ4Ylo+LMK2YikKXywVxF618jRCdbh34KfvRaxc6?= =?us-ascii?Q?m8i8jsUFLnd7v8j8gcHcixLygXFtGBuuKfStjvBG236PZwp+tcwQG1y/HvM6?= =?us-ascii?Q?ViwHDhHUjtV8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plhUq0GHJ02n9IVfNFaUIMUvLe4NaZQ3ZdZJaW+IV4jR8KWoYvZsYK9MdDyY7xo5CWgVl3AS6Zh671qUMd2r2qM7HLWVZwKOTP+7xr3b8rFXhx6Enpw4WRPqzlopv6O+X5Jy299ec= X-Microsoft-Exchange-Diagnostics: 1;BL2PR15MB1073;20:ABr6IhZPVodgJJ5lJomDBfS2tqNrce4YO5tXikOoSJTO5qqXmcf8VdZwvAw/8OTBH9Z9fls08fVZAdCmBaqpUPmimaAzPQnJT2wLoWvK/mlxYlXKQDO7uLtTEWvxwWA71gJ4Tn7MTzFm/hPxFOWUPgFBOH+snlSaIGSLc/WLr80= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2017 12:06:53.3777 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR15MB1073 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-25_06:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1229 Lines: 27 On Tue, Jul 25, 2017 at 01:58:08PM +0200, Michal Hocko wrote: > On Tue 25-07-17 12:40:47, Roman Gushchin wrote: > > A removed memory cgroup with a defined low limit 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. > > > > Fix this issue by zeroing memcg->low during memcg offlining. > > Very well spotted! This goes all the way down to low limit inclusion > AFAICS. I would be even tempted to mark it for stable because hiding > some memory from reclaim basically indefinitely is not good. We might > have been just lucky nobody has noticed that yet. I believe it's because there are not so many actual low limit users, and those who do, are using some offstream patches to mitigate this issue. Thanks! Roman