Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754607AbbHOTwR (ORCPT ); Sat, 15 Aug 2015 15:52:17 -0400 Received: from casper.infradead.org ([85.118.1.10]:45015 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753675AbbHOTvc (ORCPT ); Sat, 15 Aug 2015 15:51:32 -0400 Date: Sat, 15 Aug 2015 11:46:17 +0200 From: Peter Zijlstra To: Morten Rasmussen Cc: mingo@redhat.com, vincent.guittot@linaro.org, daniel.lezcano@linaro.org, Dietmar Eggemann , yuyang.du@intel.com, mturquette@baylibre.com, rjw@rjwysocki.net, Juri Lelli , sgurrappadi@nvidia.com, pang.xunlei@zte.com.cn, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [RFCv5 PATCH 36/46] sched: Prevent unnecessary active balance of single task in sched group Message-ID: <20150815094617.GD10304@worktop.programming.kicks-ass.net> References: <1436293469-25707-1-git-send-email-morten.rasmussen@arm.com> <1436293469-25707-37-git-send-email-morten.rasmussen@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436293469-25707-37-git-send-email-morten.rasmussen@arm.com> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1197 Lines: 23 On Tue, Jul 07, 2015 at 07:24:19PM +0100, Morten Rasmussen wrote: > Scenarios with the busiest group having just one task and the local > being idle on topologies with sched groups with different numbers of > cpus manage to dodge all load-balance bailout conditions resulting the > nr_balance_failed counter to be incremented. This eventually causes an > pointless active migration of the task. This patch prevents this by not > incrementing the counter when the busiest group only has one task. > ASYM_PACKING migrations and migrations due to reduced capacity should > still take place as these are explicitly captured by > need_active_balance(). > > A better solution would be to not attempt the load-balance in the first > place, but that requires significant changes to the order of bailout > conditions and statistics gathering. *groan*, and this is of course triggered by your 2+3 core TC2 thingy. Yes, asymmetric groups like that are a pain. -- 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/