Received: by 10.213.65.68 with SMTP id h4csp836456imn; Fri, 6 Apr 2018 09:43:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx48upj/Xd5Jc6U8zkodBhqZpIwxQXZxpkLKVDnLy/8911YMuN1IelKn+zegxnw7gZczkVItC X-Received: by 2002:a17:902:aa95:: with SMTP id d21-v6mr19436672plr.66.1523032987245; Fri, 06 Apr 2018 09:43:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523032987; cv=none; d=google.com; s=arc-20160816; b=Ed2XxBSsoyfIWbH3uNbrMgPB36m2/IgF3gpBiB65DKBfC4CzL2AG+/caHYce5YGMUG 5JQDaMuBpZ+w2aFiQs/64wCOLTc27GOkyqsUsbwLZRBShyAjc0qgeIe+obivo91x+37R jTDKycQDIcO/4vggU94LN5BbviUG7UZaDPdpCzz8A2hI954vBKgE2HclpAKu0icVWTY8 Onlzzzbcg4Mnyx8L/MKVrQvmZBA5zNsyuGHbezvqOPNaCsJAeilZW8DPS5gboZtd+tHW Rxw66Nekg0zNcyL6tjP8kueT5ezWbaqviwn0a/Y1DYAMjYXO1nRDY7UIBoGdHFlLq2b1 ebZA== 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=uRVB9Uovmd3OXzYs3nRkXSuERcfqGWHo66jmqocx+D8=; b=ZAS9ywq1H7ga2EMUMLsr8mwgAK53xL4BmY4Ey7Gxsv0T+CroamU5keWdRtAYbvGv6w EfB/eOd72QF72l/Qy8VzKWCrTycNPMrZqfan2jauoaDYUMzkTYgZV5VZqujXmOxt+ZJa 479wiCbSg1aoeUili6rpT5tfvkTU5EFUasn9aIHlHNP1810isapnNW6s/UKuzO3wgD4E GV+2H60V+YNKiTB2rE7vx/jAZ3ptdDEns8ODZVxUxwBmoSYEuZSxgtf0AEobkEz9QHrK ygCXrYN82Xzc9GG2MwwZdTKRV7mS6PA8F8O8jiPsD0J3P1p6lt8e+Xg3Srg1BWAbBQmi I7zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=snuwDoGu; 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 a24si4559651pff.256.2018.04.06.09.42.30; Fri, 06 Apr 2018 09:43:07 -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=snuwDoGu; 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 S1751678AbeDFQgk (ORCPT + 99 others); Fri, 6 Apr 2018 12:36:40 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:50434 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751312AbeDFQgi (ORCPT ); Fri, 6 Apr 2018 12:36:38 -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=uRVB9Uovmd3OXzYs3nRkXSuERcfqGWHo66jmqocx+D8=; b=snuwDoGuE7phhJKZUf1g/j0oij NcL11QjtEmnCy9ADn65uuBIeRMNOpRVAibaRn2ZNyPFyrIFt7sztsK7YM3ier11mAN6tFKwg0nqOO AkclOe/ESmJ122jGyiq4G/cSYJD99OiHlhR8c48zVKNcS8BhprwGzGvP2GiTcHHFX5IA=; Date: Fri, 6 Apr 2018 12:38:02 -0400 From: Johannes Weiner To: Roman Gushchin Cc: linux-mm@kvack.org, Andrew Morton , Michal Hocko , Vladimir Davydov , Tejun Heo , kernel-team@fb.com, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/4] mm: treat memory.low value inclusive Message-ID: <20180406163802.GA16383@cmpxchg.org> References: <20180405185921.4942-1-guro@fb.com> <20180405185921.4942-3-guro@fb.com> <20180405194526.GC27918@cmpxchg.org> <20180406122132.GA7185@castle> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180406122132.GA7185@castle> 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 Fri, Apr 06, 2018 at 01:21:38PM +0100, Roman Gushchin wrote: > Updated version below. > > -- > > From 466c35c36cae392cfee5e54a2884792972e789ee Mon Sep 17 00:00:00 2001 > From: Roman Gushchin > Date: Thu, 5 Apr 2018 19:31:35 +0100 > Subject: [PATCH v4 3/4] mm: treat memory.low value inclusive > > If memcg's usage is equal to the memory.low value, avoid reclaiming > from this cgroup while there is a surplus of reclaimable memory. > > This sounds more logical and also matches memory.high and memory.max > behavior: both are inclusive. > > Empty cgroups are not considered protected, so MEMCG_LOW events > are not emitted for empty cgroups, if there is no more reclaimable > memory in the system. > > Signed-off-by: Roman Gushchin > Cc: Andrew Morton > Cc: Johannes Weiner > Cc: Michal Hocko > Cc: Vladimir Davydov > Cc: Tejun Heo > Cc: kernel-team@fb.com > Cc: linux-mm@kvack.org > Cc: cgroups@vger.kernel.org > Cc: linux-kernel@vger.kernel.org Looks good, thanks! Acked-by: Johannes Weiner