From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754303AbcFPTBU (ORCPT ); Thu, 16 Jun 2016 15:01:20 -0400 Received: from mail-lf0-f42.google.com ([209.85.215.42]:32824 "EHLO mail-lf0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751490AbcFPTBS (ORCPT ); Thu, 16 Jun 2016 15:01:18 -0400 MIME-Version: 1.0 In-Reply-To: <20160616185115.GL30921@twins.programming.kicks-ass.net> References: <1465942870-28419-1-git-send-email-yuyang.du@intel.com> <1465942870-28419-2-git-send-email-yuyang.du@intel.com> <20160615152217.GN30921@twins.programming.kicks-ass.net> <20160616163013.GA32169@vingu-laptop> <20160616185115.GL30921@twins.programming.kicks-ass.net> From: Vincent Guittot Date: Thu, 16 Jun 2016 21:00:57 +0200 Message-ID: Subject: Re: [PATCH v6 1/4] sched/fair: Fix attaching task sched avgs twice when switching to fair or changing task group To: Peter Zijlstra Cc: Yuyang Du , Ingo Molnar , linux-kernel , Mike Galbraith , Benjamin Segall , Paul Turner , Morten Rasmussen , Dietmar Eggemann , Matt Fleming Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16 June 2016 at 20:51, Peter Zijlstra wrote: > On Thu, Jun 16, 2016 at 06:30:13PM +0200, Vincent Guittot wrote: >> With patch [1] for the init of cfs_rq side, all use cases will be >> covered regarding the issue linked to a last_update_time set to 0 at >> init >> [1] https://lkml.org/lkml/2016/5/30/508 > > Aah, wait, now I get it :-) > > Still, we should put cfs_rq_clock_task(cfs_rq) in it, not 1. And since > we now acquire rq->lock on init this should well be possible. Lemme sort > that. yes with the rq->lock we can use cfs_rq_clock_task which is make more sense than 1. But the delta can be still significant between the creation of the task group and the 1st task that will be attach to the cfs_rq