Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6210843imm; Mon, 23 Jul 2018 13:34:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcYfc1PYnP5aRMLX0bP8Zo5C4mfM28hZfZ72AiRouWY6ThEwKGOG15Ova3sdSyu50fuaALJ X-Received: by 2002:a17:902:900b:: with SMTP id a11-v6mr14297705plp.143.1532378069102; Mon, 23 Jul 2018 13:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532378069; cv=none; d=google.com; s=arc-20160816; b=p9yMZGR2blQev7Dm3b9+XYIaKcugdB3+Veo3Tk1tzabuUEXfWrrAx4S+XA+hTQGeQc fe131oyvkNYyeSBt1eJLlhVokRi4jFGz+eLp7xbuFMfUAc9kl6nOFvU3eEkaJL34ojW8 Ij1neAkhZZpmlcNd5T4xr0ssIlEjzEsqp+UQpnLXpNODJO5SOgJzLRdX1Kbf0tvAwmB5 EtzudrZUe9Jxycj79zREZQlbhOM7aaxh9CZikVkDby4Mbv6oNLxDPhJOi3bnthbduib/ Yc0vg3KiOqFYNVwQLrdVsBFc/tXZJNCPnhaTbTrdaD42Nmu+JoYkwRUm0y5h2SSe4nng Ob2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=yGbLnZFJA6I0Ic94Ezv3ensUtPYygDmSuOZCeDVO0mw=; b=K426LRaaKSBCZQZpPOixKR7KCDiQMcHZQ82hM9EFtEc+vWpo4MmbK1HITM3ChxH7tD 9jpWELzxmcgbTOTVYuA+Z+hKYNaOJD2L/GU6AzqydAT7YiyHhofBzq6JxKsTv7Z4EXQK ptxP7V4+1xXralbeKUihnUOn/sDtqJyOF1HxYcU+REEwDSp1GS2BFTh4pl/fQhRDZyAc VAm9/+8VAPVcgxly8k8huiG3kqPJbu9FJyDjkY1pSh+uvms+sNlJHj1tlf4JNhtWsnQk OgRmR3f0qaL8UwzPucNOSFFqorzaiB2HwnTeoGe16S2uS+GCnLTkGdefkykM3bxWKLEn sVZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=oxLjg5bu; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j124-v6si10281080pfb.191.2018.07.23.13.34.13; Mon, 23 Jul 2018 13:34:29 -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=pass header.i=@google.com header.s=20161025 header.b=oxLjg5bu; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388153AbeGWVgQ (ORCPT + 99 others); Mon, 23 Jul 2018 17:36:16 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:38657 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388069AbeGWVgQ (ORCPT ); Mon, 23 Jul 2018 17:36:16 -0400 Received: by mail-pl0-f65.google.com with SMTP id b1-v6so709383pls.5 for ; Mon, 23 Jul 2018 13:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=yGbLnZFJA6I0Ic94Ezv3ensUtPYygDmSuOZCeDVO0mw=; b=oxLjg5buWfC5lY0MP4QEexzMyzT7/3auEi6ZXL2vv7Dlk7kWdcE6TMIM9cVmrCVMvw BK31MZtGUg/nISgd64gQ5ZnjTuqzhnQqq7gKdcFwfsz/P5/N1SEgLWO502PThbZFYI5t C95njTz3xBhxzoKMlTC0pqOoO/pLrl8z/GB7tIvVX8tgzxKK8T+eokHPns6PuIaoIZI7 cjA3IswRrkH+u0wSYphsn7iaNzsA7Jg7MrB/Gyk6/59Ck15suuL/o6BohMQlmC91IN4B nrQT1nh9JrkfitRcrcoRPmaQjzS57XO0HdwXljyXU6Mwecxlp/oBuUTy1X1j2BRoZ5zE e2fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=yGbLnZFJA6I0Ic94Ezv3ensUtPYygDmSuOZCeDVO0mw=; b=ExZUbUyVbO9bSJB7Exc+wIuMSLWfijLmHp0Fk/5a8+v4t/iMJKOnjBVXqIWyX4sI9i uzEhMnkc+9IvNGIvhTSE+Xn/frsz+ePRSvsjs1Hs36kSa3A1OzuEAjyCwsw2+2iY2LPQ kAhH8QfPvZBXNsTv24IoSuXkpg45iVq9QDMoalUfPLcxShnn74l06U26XELjjetO9WQB UvHaq57w6BJJKEVdlYIIbIkCakx4GhaYbaxKk1BTpBXBNX7harH3qp22+nw0+TVX50Dv EMOukQHA+GS4gtN8OLbMENiIsLhnhCiYb0ipip0TZIL/MoN4xLcTv9jJJ80cpfgR5PS6 csIw== X-Gm-Message-State: AOUpUlF1pcQw1gRqGZlCZFNK+CK7MRXoKf5tC24T4qZtlibzT8wjuQwJ 2AeX1zZbd1SO7WRw+MSUSAHA7A== X-Received: by 2002:a17:902:7e43:: with SMTP id a3-v6mr14169721pln.151.1532378001671; Mon, 23 Jul 2018 13:33:21 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id v20-v6sm22919829pfk.12.2018.07.23.13.33.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Jul 2018 13:33:20 -0700 (PDT) Date: Mon, 23 Jul 2018 13:33:19 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Roman Gushchin cc: Andrew Morton , Michal Hocko , Vladimir Davydov , Johannes Weiner , Tejun Heo , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [patch v3 -mm 3/6] mm, memcg: add hierarchical usage oom policy In-Reply-To: Message-ID: References: <20180716181613.GA28327@castle> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Jul 2018, David Rientjes wrote: > > And "tree" is different. It actually changes how the selection algorithm works, > > and sub-tree settings do matter in this case. > > > > "Tree" is considering the entity as a single indivisible memory consumer, > it is compared with siblings based on its hierarhical usage. It has > cgroup oom policy. > > It would be possible to separate this out, if you'd prefer, to account > an intermediate cgroup as the largest descendant or the sum of all > descendants. I hadn't found a usecase for that, however, but it doesn't > mean there isn't one. If you'd like, I can introduce another tunable. > Roman, I'm trying to make progress so that the cgroup aware oom killer is in a state that it can be merged. Would you prefer a second tunable here to specify a cgroup's points includes memory from its subtree? It would be helpful if you would also review the rest of the patchset.