Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp265456imu; Mon, 5 Nov 2018 00:00:49 -0800 (PST) X-Google-Smtp-Source: AJdET5e1ApkwDXelic9ohpkpl2WmPdisbSVD4Oy5gbHBXKCL5eJ4LvWToA7ImYOaV4OSox8Ffdxt X-Received: by 2002:a17:902:9698:: with SMTP id n24-v6mr21791227plp.9.1541404849331; Mon, 05 Nov 2018 00:00:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541404849; cv=none; d=google.com; s=arc-20160816; b=Us+lGNldXAQZC9867pUjxwAuunplLFevqSlN4jrbd8WsFwL1K4VUuIndrQM56PlVoX YJz+RE/PvKOBnrtE4p9GUZbrUMu0hJ2MQ2/5Yy1ZBkemXL61a06YkW0sPOsEKVHhZoKh KdFu1MvTgpee4YVkj+HA6Zyq9pxR0FjQr7A6jd+n49fVoq53DzRSoX1U4ofKTBFjZJ5L 1r9UJIacQzG/coQK/D3+6WFTcNNBvHmQICvH1le/E4kIqq18fG4S07BCutHVXPScMnSw 7VnJUAzrhoZ6A8KXbNSCEVsUxQqX2+3TivONlo9A0AoPGFGyruOKk45/UhFgo+VPtCRU qjLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=i28DBGLbaF8ntoHzdw8vDZ+cVJIJP2mTvCsI6lWVOGE=; b=OPwU5/t2fZMET99RNLYaTO/eOckO4oHV6eBDIVOEpp7QwyW/c+e55PMEIlg1OR1PpW 1phPxfM8WvPuJEKGoFI9Wn5xFtfnfSGP1Ei5h6Nyn1bTqCpaoEqA9BBpwFwA9DlgbnTG cOnXpnDW3f+G/L4QVyWf9nTlCy0G4xED6xVSxiS5I0JCMzV2SmctJ/bYG8Mtslp6r+vl H5Niy7Rv8sKjnWnF9XIdfCutZ44mz/kWq6naAxVWzs9Qcg7tZ0Jz7YR5EyRaWbdDGp32 RkSVAay/80QMuiarQWjTey6Ol7RAVVRthMPhBLriY1fMPCKYpT+1A8k7qq3CmoEy1H3K QaIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ThrKgFfS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9-v6si41764238pgj.210.2018.11.05.00.00.33; Mon, 05 Nov 2018 00:00:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ThrKgFfS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726474AbeKERSU (ORCPT + 99 others); Mon, 5 Nov 2018 12:18:20 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:51729 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725737AbeKERST (ORCPT ); Mon, 5 Nov 2018 12:18:19 -0500 Received: by mail-it1-f193.google.com with SMTP id h13so11445137itl.1 for ; Sun, 04 Nov 2018 23:59:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=i28DBGLbaF8ntoHzdw8vDZ+cVJIJP2mTvCsI6lWVOGE=; b=ThrKgFfSjkTvfECIstDh2dKajWTD6wHDAxBGurID3/xY5yfOlStR9FKvd2KaE7R+BE fi7BrzjJzfDCWJ2diqpsBEYQ65fV0rAItHLnPznF6la9LZYOl/ZKLmgn3frIeWYjeUSj Fy4zzMXBre0tM6qn2QR+PjbVQpStuXwl1sl/U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=i28DBGLbaF8ntoHzdw8vDZ+cVJIJP2mTvCsI6lWVOGE=; b=ca7GVF73I2txgaVJjYosaRVa+VgEpUjehVT9g1tEeYmMDaAkMqQKb32AsTmN/W+rpw LMWJ/nEOqTs7+YN/JC/ZcSthL9GHWEilntIpWl3DdPzj/g2Ojmml/8iWvbgffbfDkkz/ /ZJWITomDiEx2N9MwKPrqDEk7aMM7iB05SqqAq4LyuhJmRbDhd2WM5uX/ndVIxbJU4Br C2efGOPOBtSvVJ/mkou7hhwt9BVS2wCvD5Lsou3Lil6RbV//bbCm9D/0hQ+qYgwAZxqy lxnH/Z60673/OWflNs3iMycICecA4bndjTm9yDWFfoasF5YGNKxrkRjHGcwGdQaEBHcV rGcw== X-Gm-Message-State: AGRZ1gI1kh90CRM9Jvjd+Ov7rPnLqOABWZPa8CpA4pxzbArFC7jjv+Db 98dzTySNdDjmiQsl2PMMrgKd9Rgto0rfT6jvzf89CQ== X-Received: by 2002:a24:c983:: with SMTP id h125-v6mr5885654itg.152.1541404793402; Sun, 04 Nov 2018 23:59:53 -0800 (PST) MIME-Version: 1.0 References: <1540570303-6097-1-git-send-email-vincent.guittot@linaro.org> <1540570303-6097-3-git-send-email-vincent.guittot@linaro.org> <6d0b324e-5e26-a510-9bcd-97f475e515ed@arm.com> <145bfbd2-f07f-6312-ca2f-029a5301fb15@arm.com> In-Reply-To: <145bfbd2-f07f-6312-ca2f-029a5301fb15@arm.com> From: Vincent Guittot Date: Mon, 5 Nov 2018 08:59:42 +0100 Message-ID: Subject: Re: [PATCH v5 2/2] sched/fair: update scale invariance of PELT To: Dietmar Eggemann Cc: Peter Zijlstra , Ingo Molnar , linux-kernel , "Rafael J. Wysocki" , Morten Rasmussen , Patrick Bellasi , Paul Turner , Ben Segall , Thara Gopinath , pkondeti@codeaurora.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 1 Nov 2018 at 10:38, Dietmar Eggemann wrote: > > On 10/31/18 10:18 AM, Vincent Guittot wrote: > > Hi Dietmar, > > > > On Wed, 31 Oct 2018 at 08:20, Dietmar Eggemann wrote: > >> > >> On 10/26/18 6:11 PM, Vincent Guittot wrote: > >> > >> [...] > >> > >>> static int select_idle_sibling(struct task_struct *p, int prev_cpu, int cpu); > >>> static unsigned long task_h_load(struct task_struct *p); > >>> @@ -764,7 +763,7 @@ void post_init_entity_util_avg(struct sched_entity *se) > >>> * such that the next switched_to_fair() has the > >>> * expected state. > >>> */ > >>> - se->avg.last_update_time = cfs_rq_clock_task(cfs_rq); > >>> + se->avg.last_update_time = cfs_rq_clock_pelt(cfs_rq); > >>> return; > >>> } > >>> } > >> > >> There is this 1/cpu scaling of se->avg.util_sum (running_sum) in > >> update_tg_cfs_runnable() so it can be used to calculate > >> se->avg.runnable_load_sum (runnable_sum). I guess with your approach > >> this should be removed. > > > > Yes good catch > > Another thing, since you do not need the cpu parameter in > accumulate_sum() anymore, you could also get rid of it in > ___update_load_sum() and further in __update_load_avg_blocked_se(), > __update_load_avg_cfs_rq() and __update_load_avg_se(). yes, I have to clean interface from reference to cpu > > Nitpick: The function header of update_cfs_rq_load_avg() mentions '@now: > current time, as per cfs_rq_clock_task()' ... should mention > cfs_rq_clock_pelt() instead. ok > > [...]