From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751685AbdEBWhr (ORCPT ); Tue, 2 May 2017 18:37:47 -0400 Received: from mail-yw0-f170.google.com ([209.85.161.170]:36484 "EHLO mail-yw0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751177AbdEBWhq (ORCPT ); Tue, 2 May 2017 18:37:46 -0400 Date: Tue, 2 May 2017 18:37:43 -0400 From: Tejun Heo To: Vincent Guittot Cc: Ingo Molnar , Peter Zijlstra , linux-kernel , Linus Torvalds , Mike Galbraith , Paul Turner , Chris Mason , kernel-team@fb.com Subject: Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Message-ID: <20170502223743.GA2980@htj.duckdns.org> References: <20170424201344.GA14169@wtj.duckdns.org> <20170424201444.GC14169@wtj.duckdns.org> <20170426225202.GC11348@wtj.duckdns.org> <20170428203347.GC19364@htj.duckdns.org> <20170502132612.GA30485@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170502132612.GA30485@linaro.org> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Vincent. On Tue, May 02, 2017 at 03:26:12PM +0200, Vincent Guittot wrote: > > IMHO, we should better improve load balance selection. I'm going to > > add smarter group selection in load_balance. that's something we > > should have already done but it was difficult without load/util_avg > > propagation. it should be doable now > > Could you test the patch in load_balance below ? > If group is not overloaded which means that threads have all runtime they > want, we select the cfs_rq according to the number of running threads instead So, this didn't help. Tried also w/ return true added on the else clause but that didn't help either. Anyways, once debugged, the idea would work for this particular test case and in general we should avoid picking a CPU as the busiest if it doesn't have extra threads to give away; however, this isn't the proper fix for the identified problem and basing load balancing soley on the number of tasks is far more likely to be harmful than the other way around. Thanks. -- tejun