Received: by 10.192.165.148 with SMTP id m20csp2116593imm; Thu, 3 May 2018 10:37:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZohApg9U1AQQ7wX3EmHlHOH56voOvzCniqInMldEY5sZP5r75oadU9qadKl/DP2An8VxCij X-Received: by 2002:a63:3584:: with SMTP id c126-v6mr20201048pga.37.1525369069210; Thu, 03 May 2018 10:37:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525369069; cv=none; d=google.com; s=arc-20160816; b=rhETR7HDhXHkjpp87Fr9HIl54yaxwfo16LA5FHXmbygwv4iUPwoFrswBLgiJSTNXae JwB0GOI2pX6Mh3V/YIkY1A4JxjbHqRZlcvaBQBugd78YnwgqCor125hq9MS5c7EKd0HQ RZw13QxR9R2uiIhoY7g+YMFpd6+5X8SWBC6bD7zTmrNQFlGI+y2Unkb3UxoT61VfrR3L v+Qc0zAjnOOsQn/X9Ghmq5gmOZ2Cd0Gto8MCGDGcU4S2dTC7O2XszNTnHN1tqHXRkijL GT2sY3DZTgdcqrOufwmiv6ARw5DNO35JmvhsFQc+61e+8ciKPdL17GS6oIyyUAjGLOY3 6BSA== 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=yGKZ2MpmLAn12z2OhyS/VqJbQz1cw1GLpeNV7XdVd/U=; b=ZTZYv+kZ8dbL7GolaLhTbZ2okZFwl1V2UF0AKpff8el8by874B50Ih9cfBp+hgb21W 7hnuRKf1UVAw49beyeAE8O2hxJRTCzSWcrNRCwipzbS/tg70gyZqF2jqZp3omurR+t+9 M0OIF6gGRQQ/WU2Cz8R3OIb3h/KL3ikIsSrFIC9CCbJnZIKxCScyrJsYwIFDchAVUBeh WAPb2jyGr2aC96NqU2LZ7AEknIdBcG2nh6uNF7Y4D/4TwW6R1IzIkMjY0210oJFJP5tY iG0mIawtLHEH90EbTSWfGdxGoplWxYr/2EPvV+wUpgPXbk9eQPCLqhTKNXDkithtpQw4 9sxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=2utcRTIK; 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 m1-v6si11834581pgm.413.2018.05.03.10.37.34; Thu, 03 May 2018 10:37:49 -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=2utcRTIK; 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 S1751302AbeECRgy (ORCPT + 99 others); Thu, 3 May 2018 13:36:54 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:48978 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751007AbeECRgv (ORCPT ); Thu, 3 May 2018 13:36:51 -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=yGKZ2MpmLAn12z2OhyS/VqJbQz1cw1GLpeNV7XdVd/U=; b=2utcRTIKF7b8bbWv3zWd+e0H9M w6oxiJBC7cc+ncaPLLYTArWUUKW45ACKHXviwHXjTk5/JKSNcyIL1CvkJr5mz4R7LOWismMhm1/Vc /Fh4SVFBr1blSiJ1k1atgkHSl/gT6W9MXcPDirMZUmhMSnUiHpJqWTjLLMmEczQXzGnc=; Date: Thu, 3 May 2018 13:38:35 -0400 From: Johannes Weiner To: Roman Gushchin Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, Michal Hocko , Vladimir Davydov , Tejun Heo Subject: Re: [PATCH v3 2/2] mm: ignore memory.min of abandoned memory cgroups Message-ID: <20180503173835.GA28437@cmpxchg.org> References: <20180503114358.7952-1-guro@fb.com> <20180503114358.7952-2-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180503114358.7952-2-guro@fb.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 Thu, May 03, 2018 at 12:43:58PM +0100, Roman Gushchin wrote: > 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. > > Signed-off-by: Roman Gushchin > Cc: Johannes Weiner > Cc: Michal Hocko > Cc: Vladimir Davydov > Cc: Tejun Heo Acked-by: Johannes Weiner I wouldn't mind merging this into the previous patch. It's fairly small, and there is no reason to introduce an infinite OOM loop scenario into the tree, even if it's just for one commit.