Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755827AbcKVVmE (ORCPT ); Tue, 22 Nov 2016 16:42:04 -0500 Received: from mail-yw0-f194.google.com ([209.85.161.194]:36491 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752142AbcKVVmC (ORCPT ); Tue, 22 Nov 2016 16:42:02 -0500 Date: Tue, 22 Nov 2016 16:42:00 -0500 From: Tejun Heo To: Shaohua Li Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Kernel-team@fb.com, axboe@fb.com, vgoyal@redhat.com Subject: Re: [PATCH V4 05/15] blk-throttle: add downgrade logic Message-ID: <20161122214200.GE17534@htj.duckdns.org> References: <20161122212121.GC17534@htj.duckdns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161122212121.GC17534@htj.duckdns.org> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1169 Lines: 28 Hello, On Tue, Nov 22, 2016 at 04:21:21PM -0500, Tejun Heo wrote: > 1. A cgroup and its high and max limits don't have much to do with > other cgroups and their limits. I don't get how the choice between > high and max limits can be a td-wide state. Ah, okay, this combines with idle cgroup detection to determine whether the cgroups should be allowed to exceed high limits. It makes more sense to me now. In that case, for the high/max limit range issues, the enforced high/max limits can simply follow what's implied by the configuration. e.g. if high=100 max=80, just behave as if both high and max are 80. > 2. Comparing parent's and child's limits and saying that either can be > ignored because one is higher than the other isn't correct. A > parent's limit doesn't apply to each child separately. It has to > be aggregated. e.g. you can ignore a parent's setting if the sum > of all children's limits is smaller than the parent's but then > again there could still be a lower limit higher up the tree, so > they would still have to be examined. This part still seems weird tho. What am I misunderstanding? Thanks. -- tejun