Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754766Ab1EJH1P (ORCPT ); Tue, 10 May 2011 03:27:15 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:49099 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752294Ab1EJH1O (ORCPT ); Tue, 10 May 2011 03:27:14 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Message-ID: <4DC8E8BA.3010106@jp.fujitsu.com> Date: Tue, 10 May 2011 16:26:50 +0900 From: Hidetoshi Seto User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Paul Turner CC: linux-kernel@vger.kernel.org, Peter Zijlstra , Bharata B Rao , Dhaval Giani , Balbir Singh , Vaidyanathan Srinivasan , Srivatsa Vaddagiri , Kamalesh Babulal , Ingo Molnar , Pavel Emelyanov Subject: Re: [patch 11/15] sched: prevent interactions between throttled entities and load-balance References: <20110503092846.022272244@google.com> <20110503092905.427302001@google.com> In-Reply-To: <20110503092905.427302001@google.com> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1311 Lines: 34 (2011/05/03 18:28), Paul Turner wrote: >>From the perspective of load-balance and shares distribution, throttled > entities should be invisible. > > However, both of these operations work on 'active' lists and are not > inherently aware of what group hierarchies may be present. In some cases this > may be side-stepped (e.g. we could sideload via tg_load_down in load balance) > while in others (e.g. update_shares()) it is more difficult to compute without > incurring some O(n^2) costs. > > Instead, track hierarchal throttled state at time of transition. This allows hierarchical > us to easily identify whether an entity belongs to a throttled hierarchy and > avoid incorrect interactions with it. > > Also, when an entity leaves a throttled hierarchy we need to advance its > time averaging for shares averaging so that the elapsed throttled time is not > considered as part of the cfs_rq's operation. > > Signed-off-by: Paul Turner > --- Reviewed-by: Hidetoshi Seto Thanks, H.Seto -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/