From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752152AbcGRWwy (ORCPT ); Mon, 18 Jul 2016 18:52:54 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34336 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751675AbcGRWww (ORCPT ); Mon, 18 Jul 2016 18:52:52 -0400 Date: Mon, 18 Jul 2016 18:52:49 -0400 From: Tejun Heo To: Topi Miettinen Cc: linux-kernel@vger.kernel.org, Jonathan Corbet , Li Zefan , Johannes Weiner , Markus Elfring , "David S. Miller" , Nicolas Dichtel , "open list:DOCUMENTATION" , "open list:CONTROL GROUP (CGROUP)" Subject: Re: [PATCH 02/14] resource limits: aggregate task highwater marks to cgroup level Message-ID: <20160718225249.GM3078@mtj.duckdns.org> References: <1468578983-28229-1-git-send-email-toiwoton@gmail.com> <1468578983-28229-3-git-send-email-toiwoton@gmail.com> <20160715141058.GI3078@mtj.duckdns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 15, 2016 at 05:15:41PM +0000, Topi Miettinen wrote: > There are clear semantics for the limits themselves, either they apply > per task or per user. It makes sense to gather values according to these > semantics. Then with systemd or other tools you can use the valuse to > set the limits for a service regardless if the limit applies per task or > per user and it works according to each limit's semantics. What does it mean to collect the maximum of the high watermarks of multiple users or the high water marks along process hierarchy which is spread across multiple cgroups? These are non-sensical numbers. If you want to collect high watermarks per-cgroup, the numbers have to be per-cgroup - how many fds are being used in that particular cgroup and what's the high watermark of that number and so on. You can't just take maximum from process hierarchy or user watermarks. Thanks. -- tejun