From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753208AbcFOIPM (ORCPT ); Wed, 15 Jun 2016 04:15:12 -0400 Received: from mga01.intel.com ([192.55.52.88]:65334 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752378AbcFOIPJ (ORCPT ); Wed, 15 Jun 2016 04:15:09 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,475,1459839600"; d="scan'208";a="828399135" Date: Wed, 15 Jun 2016 08:18:18 +0800 From: Yuyang Du To: Vincent Guittot Cc: Peter Zijlstra , Ingo Molnar , linux-kernel , Mike Galbraith , Benjamin Segall , Paul Turner , Morten Rasmussen , Dietmar Eggemann , Matt Fleming Subject: Re: [PATCH v6 1/4] sched/fair: Fix attaching task sched avgs twice when switching to fair or changing task group Message-ID: <20160615001818.GL8105@intel.com> References: <1465942870-28419-1-git-send-email-yuyang.du@intel.com> <1465942870-28419-2-git-send-email-yuyang.du@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Jun 15, 2016 at 09:46:53AM +0200, Vincent Guittot wrote: > I still have concerned with this change of the behavior that attaches > the task only when it is enqueued. The load avg of the task will not > be decayed between the time we move it into its new group until its > enqueue. With this change, a task's load can stay high whereas it has > slept for the last couple of seconds. The task will be updated when it is moved in the detach, so if it stays high, it is highly expected to be enqueued soon. But if the task is never enqueued, we don't bother the new gruop cfs_rq. So this is not perfect, and nothing is perfect, but a simple solution.