Received: by 10.192.165.148 with SMTP id m20csp646560imm; Wed, 2 May 2018 06:37:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqzETN6VfPlnm6NAfHMM2a4YHMVTAlpuWipTDvgbc+JKD35QjuTDE2eYG7TMFH3kqfZn07p X-Received: by 2002:a17:902:24a5:: with SMTP id w34-v6mr20386406pla.328.1525268268249; Wed, 02 May 2018 06:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525268268; cv=none; d=google.com; s=arc-20160816; b=zKuf/pXM/zinfR/rPqKP55Bwi1sI8LskgHt/HZ+fvcTsqwDi7L8TOaCpOoQKb8mdma 2OZrRGsbLYV5bqQn6pcRks+MNPfJ5KgBDEIH5P3R1hLsddJVlE1Az6xv/kaG+Q9PiU1P iX9JDzer72NhbkWg/nvUaoQhLfr7uUPWwxnLDeSmbjG8//wySb9iY+iMqOsOavjmtoXP Vwesar9K/cuB73qdD/YpDZ9upbEFbPNgrUp8AatIUuMN8Lo2DNT0ct298dMB4mLLJiAy hK5lbI8D1cspUdkSf8VnFFYjeIRSs8kNZL3a6y0d22Tozyx0tom5P+Z3BOnMqdCwjtvg akPQ== 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:dkim-signature:arc-authentication-results; bh=MQb+rLXer5NC629RGQaLtl3AJPMltgdaOmcYi9Z0Qz8=; b=pAbzV9Q+wPQ37HdD4GLzWPUFOA4rSmPpFxeraapwwy71ljg6FIF6fOX0BA/AHTFDAQ c0FKRZxQntSdHfAIZk7AwBI/cSojE7fDYw+g6b8z2kMfSCFW2RG0I4RDTKs/HqK5p4jO GAqRk8dv/1lFExUnkC9cpujWZgUPu5mkhig/LbjYDsBFgOGGD5VtI1p3ZC7+htVDT9a6 xHPi+d1mEcb/OtxyXkVJZ0DIBhL0+d7JgvOvJ/5D64RvXbQmfIYlWiXMkPKZsrAjuUXT ED+wXC0J+dc97COZ4BTZ6lKzkvDwwmq0qw4gdjU9JGwiTFVB/GEy3FGB+uUJbKeF+DW2 y9LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=va/27gNs; 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=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r15-v6si9583006pgs.292.2018.05.02.06.37.33; Wed, 02 May 2018 06:37:48 -0700 (PDT) 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; dkim=fail header.i=@cmpxchg.org header.s=x header.b=va/27gNs; 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=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751609AbeEBNgy (ORCPT + 99 others); Wed, 2 May 2018 09:36:54 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:48838 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750898AbeEBNgs (ORCPT ); Wed, 2 May 2018 09:36:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cmpxchg.org ; s=x; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=MQb+rLXer5NC629RGQaLtl3AJPMltgdaOmcYi9Z0Qz8=; b=va/27gNsD8aCyniJXZj9IdTPTc 5XSM0rKqONVdzkURGbOSYSZnSoBYsy7zJuw7Lh7r7Oeun50AttK/LXi3S1ud50qV05xG/B++oH/Tf vvdJ79ljsjLjmiM2Wwk/opkxZNGfjOEXITGyxlGobldCCYy494f4vNufSmDNJMaVVXf4=; Date: Wed, 2 May 2018 09:38:32 -0400 From: Johannes Weiner To: Roman Gushchin Cc: Vladimir Davydov , linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, kernel-team@fb.com, Michal Hocko , Tejun Heo Subject: Re: [PATCH v2] mm: introduce memory.min Message-ID: <20180502133832.GA18204@cmpxchg.org> References: <20180423123610.27988-1-guro@fb.com> <20180424123002.utwbm54mu46q6aqs@esperanza> <20180424135409.GA28080@castle.DHCP.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180424135409.GA28080@castle.DHCP.thefacebook.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 24, 2018 at 02:54:15PM +0100, Roman Gushchin wrote: > From: Roman Gushchin > Date: Tue, 24 Apr 2018 14:44:14 +0100 > Subject: [PATCH] mm: ignore memory.min of abandoned memory cgroups > > If a cgroup has no associated tasks, invoking the OOM killer > won't help release any memory, so respecting the memory.min > can lead to an infinite OOM loop or system stall. > > Let's ignore memory.min of unpopulated cgroups. Good point, this makes sense. > Signed-off-by: Roman Gushchin > Cc: Johannes Weiner > Cc: Michal Hocko > Cc: Vladimir Davydov > Cc: Tejun Heo Acked-by: Johannes Weiner > @@ -2549,8 +2549,11 @@ static bool shrink_node(pg_data_t *pgdat, struct scan_control *sc) > /* > * Hard protection. > * If there is no reclaimable memory, OOM. > + * Abandoned cgroups are loosing protection, losing