Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2755901imj; Mon, 18 Feb 2019 11:35:51 -0800 (PST) X-Google-Smtp-Source: AHgI3IaKF6TlqacGZPIKYE10pgCcC6+GONxB9b/70OEmFrcj1eObU0zQORbW/M80Fi2is/iJcjoN X-Received: by 2002:aa7:8101:: with SMTP id b1mr26289251pfi.148.1550518551518; Mon, 18 Feb 2019 11:35:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550518551; cv=none; d=google.com; s=arc-20160816; b=l3NWVMHuqMJ30zuAV7DCtVUYq+kD2jCEzOWC4imsQnoI2n3ub6aWZJEYg2gpfGrwau vHRHTSWNOC488RNaSuxxcAafu/aII2mhNkrpbQ40T/FvifobQlWOgracuzx2gtzozspe p+iZbzvPyKzEBEzhYkJU6+1Y4AOiJQd3Ck6tiBZGV8wg//PCDpUvpSca/oXmAImsfQfn BDMkuO0qciziIKKcD4g/na7aQReWCmyRy45TKKz5gYEYGZXs1vgzCxyoptbz6gD5cDEt mhxeb26KwsFNe0JFBq+DuK5wSKAkvFsB2kf5m+sb93+HXji+Afwwpj9ASeJkpxtPCjti V3Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=LTArDjLVPmDg6x+ItnXjGrrzPnwjle3ydIqS15ofUr0=; b=f8GYIuKBTJ4JeVrXWJIajBr0StCoD/cXYwbQ70p76EstExgW8/1lZuBIsb3stNYpYj Q2tFNhpuXDcCNUF9nLKOBT/AVdg5pawLrG84FeOZi1EqniV5nFrVyVpO0KfJH5+JPSKO kE6v7Vz+gL6ecCvJxJupxbqECiNaZw0weEJjSrmloL0ZRgexV+wlxICwHJNfvvuhWIFn JJvQCXDHGBghs7C3uN2oawOnKuopMvLc02U+idSV2UUmH61BL6zmfg1S2TCheKgoKzJa bGS0j5+qEH6xr5BUeHkDtvxe/bxoOxTZJ+DfubrzWdNsJ464netUxG2Nzs9JPxC6fFHd jnsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u25si12064509pgm.532.2019.02.18.11.35.35; Mon, 18 Feb 2019 11:35:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729094AbfBRTOY (ORCPT + 99 others); Mon, 18 Feb 2019 14:14:24 -0500 Received: from mx2.suse.de ([195.135.220.15]:33320 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728501AbfBRTOY (ORCPT ); Mon, 18 Feb 2019 14:14:24 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id F384AABD5; Mon, 18 Feb 2019 19:14:22 +0000 (UTC) Date: Mon, 18 Feb 2019 20:14:21 +0100 From: Michal Hocko To: Roman Gushchin Cc: Greg Kroah-Hartman , Rik van Riel , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Dave Chinner , Wolfgang Walter , Spock , Andrew Morton , Linus Torvalds Subject: Re: [PATCH 4.20 71/92] Revert "mm: slowly shrink slabs with a relatively small number of objects" Message-ID: <20190218191421.GE4525@dhcp22.suse.cz> References: <20190218133454.668268457@linuxfoundation.org> <20190218133501.533140116@linuxfoundation.org> <20190218161634.GA30873@kroah.com> <20190218173825.GB4525@dhcp22.suse.cz> <20190218185738.GA3745@castle.DHCP.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190218185738.GA3745@castle.DHCP.thefacebook.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 18-02-19 18:57:45, Roman Gushchin wrote: > On Mon, Feb 18, 2019 at 06:38:25PM +0100, Michal Hocko wrote: > > On Mon 18-02-19 17:16:34, Greg KH wrote: > > > On Mon, Feb 18, 2019 at 10:30:44AM -0500, Rik van Riel wrote: > > > > On Mon, 2019-02-18 at 14:43 +0100, Greg Kroah-Hartman wrote: > > > > > 4.20-stable review patch. If anyone has any objections, please let > > > > > me know. > > > > > > > > > > ------------------ > > > > > > > > > > From: Dave Chinner > > > > > > > > > > commit a9a238e83fbb0df31c3b9b67003f8f9d1d1b6c96 upstream. > > > > > > > > > > This reverts commit 172b06c32b9497 ("mm: slowly shrink slabs with a > > > > > relatively small number of objects"). > > > > > > > > This revert will result in the slab caches of dead > > > > cgroups with a small number of remaining objects never > > > > getting reclaimed, which can be a memory leak in some > > > > configurations. > > > > > > > > But hey, that's your tradeoff to make. > > > > > > That's what is in Linus's tree. Should we somehow diverge from that? > > > > I believe we should start working on a memcg specific solution to > > minimize regressions for others and start a more complex solution from > > there. > > > > Can we special case dead memcgs in the slab reclaim and reclaim more > > aggressively? > > It's probably better to start a new thread to discuss this issue agreed > (btw, doesn't LSF/MM looks like the best place to do it? I can send a proposal). I was about to do that if nobody else did. dropped the rest of the email because this really deserves a new discussion. -- Michal Hocko SUSE Labs