Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753889AbaJHHQb (ORCPT ); Wed, 8 Oct 2014 03:16:31 -0400 Received: from mail-oi0-f54.google.com ([209.85.218.54]:53100 "EHLO mail-oi0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752604AbaJHHQa (ORCPT ); Wed, 8 Oct 2014 03:16:30 -0400 MIME-Version: 1.0 In-Reply-To: References: <1412684017-16595-1-git-send-email-vincent.guittot@linaro.org> <1412684017-16595-5-git-send-email-vincent.guittot@linaro.org> From: Vincent Guittot Date: Wed, 8 Oct 2014 09:16:09 +0200 Message-ID: Subject: Re: [PATCH 4/7] sched: Track group sched_entity usage contributions To: Benjamin Segall Cc: Peter Zijlstra , Ingo Molnar , linux-kernel , Preeti U Murthy , Morten Rasmussen , Kamalesh Babulal , Russell King - ARM Linux , LAK , Rik van Riel , Mike Galbraith , Nicolas Pitre , "linaro-kernel@lists.linaro.org" , Daniel Lezcano , Dietmar Eggemann , Paul Turner Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7 October 2014 22:15, wrote: > Vincent Guittot writes: > >> From: Morten Rasmussen >> >> Adds usage contribution tracking for group entities. Unlike >> se->avg.load_avg_contrib, se->avg.utilization_avg_contrib for group >> entities is the sum of se->avg.utilization_avg_contrib for all entities on the >> group runqueue. It is _not_ influenced in any way by the task group >> h_load. Hence it is representing the actual cpu usage of the group, not >> its intended load contribution which may differ significantly from the >> utilization on lightly utilized systems. > > > Just noting that this version also has usage disappear immediately when > a task blocks, although it does what you probably want on migration. Yes. For this patchset, we prefer to stay aligned with current implementation which only take into account runnable tasks in order cap the change of the behavior. IMHO, the use of blocked task in utilization_avg_contrib should be part of a dedicated patchset with dedicated non regression test > > Also, group-ses don't ever use their running_avg_sum so it's kinda a > waste, but I'm not sure it's worth doing anything about. > >> -- 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/