Received: by 10.213.65.68 with SMTP id h4csp831869imn; Fri, 6 Apr 2018 09:38:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+6R4U30mr0m2brLpyJOGfesbSWLmQ98FNd6N4/cStjU9E0ihkbkmZwmgyHOpzvUpnP7l9z X-Received: by 10.98.247.14 with SMTP id h14mr10512280pfi.161.1523032682184; Fri, 06 Apr 2018 09:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523032682; cv=none; d=google.com; s=arc-20160816; b=LewWrr+gWI2gjySqAHconkwfHMvKK2UcyKxZ8QXuC5bMnb1xee0wDJf6ZYvyU4Iwwk SY00hTGdr66hQx+GOBUCM0CICMBm17BkSTIUwsPH5JQ1KBWTcyJl5z3k0L6DeWlyLZoi OIA0bfAacg6HU/k7bVTF6clcbJiX27mAh6arGmkkjgfIJeabKzevLSqoNi76MdVVG97+ bHWg5+Ho+ZW0o+/s3NmKE/sSvE9/AlRq7lfvuR22O9NgSzAgz3ZDiieeOh4lJ3A1n3d9 xnjeve1aXoG9/Cy2YrQtt3UtgaetO4Dy1VEgZMRBx/arAwqUi2LN2sFnzX5Ne0XFxXyd 1VGg== 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=G1W9EH839+87r9MXmeuL0pSDxs06KZ8k62C/vHaConA=; b=MtmeBVzjECFIirz6suIzVi7ArGsK93KVUBF9la/+dV1DKYJu8lni0SSwSjeX2mJYa4 InB/4oxFZFZ/LmXIIsK1pkU2+2jX+O1oJvTW84+pJ0Hpc36nCFpuCjoBXYaEyvXftdK9 O+9ET55ZWdaVbe8AyqJJkres5cU7NTdoEUQM8db41W+1gl69RJh2iQ8CKvGyarxfQFoz uQp2vSNabk97wK6dIz24xJkGg07AVh3PhaCaG0hJf//Vw0Hfv7WN4NCpHH8pFnvLIsUT CwELlj1ijgKy66XR1O5Gdn6j+WfDOOmXzPD1XVUf/tX1BNxDveZtnIVXd+e2Z//guHqa 15BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=akaIdFeT; 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 u12-v6si8791512plm.83.2018.04.06.09.37.25; Fri, 06 Apr 2018 09:38:02 -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=akaIdFeT; 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 S1751570AbeDFQem (ORCPT + 99 others); Fri, 6 Apr 2018 12:34:42 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:50422 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751298AbeDFQel (ORCPT ); Fri, 6 Apr 2018 12:34:41 -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=G1W9EH839+87r9MXmeuL0pSDxs06KZ8k62C/vHaConA=; b=akaIdFeTT0FencETsReWLrJmI1 WxxaBYaO1aBd6j31WoAqgLw/sheHq3DQRA0H/zfuYmGhqYkw8jWeBPqbylBNkPa0VHxky944WKPE0 b+QvVVwoYgbApWN+Yik5E3GojtyKuXdhOprEYzINYJkAtY40DFAX9yD9k83FYMz9J8kY=; Date: Fri, 6 Apr 2018 12:36:05 -0400 From: Johannes Weiner To: Andrey Ryabinin Cc: Andrew Morton , Shakeel Butt , Mel Gorman , Tejun Heo , Michal Hocko , Linux MM , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH] mm-vmscan-dont-mess-with-pgdat-flags-in-memcg-reclaim-v2-fix Message-ID: <20180406163605.GE20806@cmpxchg.org> References: <20180406135215.10057-1-aryabinin@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180406135215.10057-1-aryabinin@virtuozzo.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 Fri, Apr 06, 2018 at 04:52:15PM +0300, Andrey Ryabinin wrote: > On 04/06/2018 05:13 AM, Shakeel Butt wrote: > > Question: Should this 'flags' be per-node? Is it ok for a congested > > memcg to call wait_iff_congested for all nodes? > > Indeed, congestion state should be pre-node. If memcg on node A is > congested, there is no point is stalling memcg reclaim from node B. > > Make congestion state per-cgroup-per-node and record it in > 'struct mem_cgroup_per_node'. > > Signed-off-by: Andrey Ryabinin Thanks for fixing this, Andrey. This is great. For the combined patch and this fix: Acked-by: Johannes Weiner