From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753192AbcHXDE2 (ORCPT ); Tue, 23 Aug 2016 23:04:28 -0400 Received: from mga07.intel.com ([134.134.136.100]:17463 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751799AbcHXDE0 (ORCPT ); Tue, 23 Aug 2016 23:04:26 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,568,1464678000"; d="scan'208";a="160108432" Date: Wed, 24 Aug 2016 03:09:10 +0800 From: Yuyang Du To: Peter Zijlstra Cc: Vincent Guittot , Ingo Molnar , linux-kernel , Benjamin Segall , Paul Turner , Morten Rasmussen , Dietmar Eggemann , Matt Fleming , Mike Galbraith Subject: Re: [PATCH v1 00/10] Optimize sched avgs computation and implement flat util hierarchy Message-ID: <20160823190910.GE3273@intel.com> References: <1470788095-2125-1-git-send-email-yuyang.du@intel.com> <20160810002352.GB3273@intel.com> <20160822232637.GC3273@intel.com> <20160823141341.GP10153@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160823141341.GP10153@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 23, 2016 at 04:13:41PM +0200, Peter Zijlstra wrote: > On Tue, Aug 23, 2016 at 03:28:19PM +0200, Vincent Guittot wrote: > > I still wonder if using a flat util hierarchy is the right solution to > > solve this problem with utilization and task group. I have noticed > > exact same issues with load that generates weird task placement > > decision and i think that we should probably try to solve both wrong > > behavior with same mechanism. but this is not possible with flat > > hierarchy for load > > > > Let me take an example. > > TA is a always running task on CPU1 in group /root/level1/ > > TB wakes up on CPU0 and moves TA into group /root/level2/ > > Even if TA stays on CPU1, runnable_load_avg of CPU1 root cfs rq will become 0. > > Because while we migrate the load_avg on /root/level2, we do not > propagate the load_avg up the hierarchy? > > And always propagating everyrthing up will indeed also fix the > utilization issue. Yes, but for util it's actually irrespective to the number of hirarchical levels, just propagating directly to the top cfs_rq or simply rq will do. In other words, it's flat :) > Of course, doing that propagation has its costs.. > > Didn't you post a patch doing just this a while ago?