Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp199591ybi; Thu, 30 May 2019 23:31:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOuGrl84vtPTVTI+BxE93TACv8W1Be5YhDDW7OZkABMS4q8db240kcxlDDmOb1c5/z2A6k X-Received: by 2002:a63:1c19:: with SMTP id c25mr7097947pgc.183.1559284300283; Thu, 30 May 2019 23:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559284300; cv=none; d=google.com; s=arc-20160816; b=YjL7l+zBSfDsnkmXRwND/58OPIc9AfSeqPW4fJO7NSKcgYXgGtj+iCN8BUwmoee6GB an215vv6LB96dkpWyB+U9ARHmm7tDmlGAGwdzOII5tcBdjxdgBcLdw2J+LFbxxSQ0zfU wS0SZb+pndZLANISJTpyuRo4aohx1Qtcns+1vwebdSUxaj4Nzqd1SxlIr3KDMo2iYz6k pMvL0W8jROlcU6hpjE/YTuLJ3isrX2Bs+yxCSlqKxdMy8Z84HP70exMSlGbPvFkI3tMk G4lFra9Pacy18Cp2ityUO2e9JLPOz4+kWNUL1/dmfwKvRli4KH3cDVK1JMUK4Zsh4R/M NXPQ== 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=v6dimRf+yHDe7xz8eg6wzBp0xwGCHBPie8WH9UV+01o=; b=wMj28ewECwf575raAlmmK1XNzrgdwAg52KNWg2aKD4GMJcSCRM8TI2L4Wc1k3Oh6LU jK7UC6UwZGomi4F3tjwd4vv4N5b7U5BJf7pmyNqhIbASzUNGPh1UPomiRbmcXpdJG9RW 9kyY6Plf1rdzbvy8NmvMyF1wRHs3H/USxXgUvIU0oKRvohNzJKCQr50HgE/lzFT1pmUL etscSgedtD+/GrDv9bpLpQOVDKxCNBi6ueuW8ekJt5Gw7qkmy5+CYCw92l5MRuhOH2SH GKENT9Em5WAMuHSSle+9oZko8wCG1NaZwkqF9a5uwcGvXwIYsXQQPrlc0I5PhgPWpZ9P aWEg== 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 p188si5541904pfp.112.2019.05.30.23.31.24; Thu, 30 May 2019 23:31:40 -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; 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 S1726747AbfEaG25 (ORCPT + 99 others); Fri, 31 May 2019 02:28:57 -0400 Received: from mx2.suse.de ([195.135.220.15]:59148 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725955AbfEaG25 (ORCPT ); Fri, 31 May 2019 02:28:57 -0400 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 CFF82AF8A; Fri, 31 May 2019 06:28:55 +0000 (UTC) Date: Fri, 31 May 2019 08:28:54 +0200 From: Michal Hocko To: Chris Down Cc: Andrew Morton , Johannes Weiner , Tejun Heo , Roman Gushchin , Dennis Zhou , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, kernel-team@fb.com Subject: Re: [PATCH REBASED] mm, memcg: Make scan aggression always exclude protection Message-ID: <20190531062854.GG6896@dhcp22.suse.cz> References: <20190228213050.GA28211@chrisdown.name> <20190322160307.GA3316@chrisdown.name> <20190530061221.GA6703@dhcp22.suse.cz> <20190530064453.GA110128@chrisdown.name> <20190530065111.GC6703@dhcp22.suse.cz> <20190530205210.GA165912@chrisdown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190530205210.GA165912@chrisdown.name> 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 Thu 30-05-19 13:52:10, Chris Down wrote: > Michal Hocko writes: > > On Wed 29-05-19 23:44:53, Chris Down wrote: > > > Michal Hocko writes: > > > > Maybe I am missing something so correct me if I am wrong but the new > > > > calculation actually means that we always allow to scan even min > > > > protected memcgs right? > > > > > > We check if the memcg is min protected as a precondition for coming into > > > this function at all, so this generally isn't possible. See the > > > mem_cgroup_protected MEMCG_PROT_MIN check in shrink_node. > > > > OK, that is the part I was missing, I got confused by checking the min > > limit as well here. Thanks for the clarification. A comment would be > > handy or do we really need to consider min at all? > > You mean as part of the reclaim pressure calculation? Yeah, we still need > it, because we might only set memory.min, but not set memory.low. But then the memcg will get excluded as well right? -- Michal Hocko SUSE Labs