Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752225AbbLNC7v (ORCPT ); Sun, 13 Dec 2015 21:59:51 -0500 Received: from mga11.intel.com ([192.55.52.93]:52361 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751785AbbLNC7t (ORCPT ); Sun, 13 Dec 2015 21:59:49 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,425,1444719600"; d="scan'208";a="706722192" Date: Mon, 14 Dec 2015 03:13:20 +0800 From: Yuyang Du To: Steve Muckle Cc: Peter Zijlstra , Ingo Molnar , Morten Rasmussen , Dietmar Eggemann , Patrick Bellasi , Juri Lelli , Vincent Guittot , "linux-kernel@vger.kernel.org" Subject: Re: PELT initial task load and wake_up_new_task() Message-ID: <20151213191319.GA28098@intel.com> References: <566B8009.2090006@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <566B8009.2090006@linaro.org> 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 Content-Length: 927 Lines: 21 Hi Steve, On Fri, Dec 11, 2015 at 06:01:45PM -0800, Steve Muckle wrote: > In init_entity_runnable_average() the last_update_time is initialized to > zero. The task is given max load and utilization as a pessimistic > initial estimate. > > But if in wake_up_new_task() the task is placed on a CPU other than > where it was created, __update_load_avg() will be called via > set_task_cpu() -> migrate_task_rq_fair() -> remove_entity_load_avg(). > > Since last_update_time is zero the delta will be huge and the task's > load will be entirely decayed away before it is enqueued at the > destination CPU. Since the new task's last_update_time is equal to 0, it will not be decayed. -- 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/