Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2908469pxb; Mon, 25 Jan 2021 01:38:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVYAfspHCrRPbQtpXejrrsI9nDiYJSIhDV5x+ALDAwmYujH9bS/crgxg+ANDPr5p5iCo7T X-Received: by 2002:aa7:cd07:: with SMTP id b7mr737477edw.29.1611567521241; Mon, 25 Jan 2021 01:38:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611567521; cv=none; d=google.com; s=arc-20160816; b=Tqcz0u++NQeVWz2WneWp0hzV4bFx9uY8rj1unwMJv3cCP97yxrXgh72ZL1BKWEctEH LKQxNINXlS2hvw5dj5bJHIKmV7dNDGDzw2i2z59ZT50u6i8KLI/bdNUq1i525ZcP00Ls SNYVIU4gbbQQ436wHvpDLIy8pH7IihjrUrOtP+OV9+WD8Eu5IrUOl8C/fbziQUndrwDo u4Xpve0P7FNuf1XhQcjSEi7f2iJYdqE4T75hIZHWiPlwcz6aHSod5dFW+aIJx8DpmMJQ dDeor8+0VSc4vweD7ECViaUZDyBdnMsd03+u2fAcsa6xJsC3/uiDkcn20cxw+RelhUIl jExQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vnHeIwqxBtkc8QdAEDyiefJYi3lqnllVIwzZtHS/B8g=; b=JjG/tTvKCWHYOhJV+2IjlyM5TbtnegPthKrnAZ9SxyjVt5gY054m73RSDL7d6Vqh9e OrdEwAMdrQiR//duGDlc12sD9eAcmv0GArSUlGFQSreuP4Y0RurPJ04iLHBW3jVCKMF7 s4GNW1UqGjfL4lboKIzak/VtnYfCbOLMmWxly6VxBzP2pStShg1UjBniT3skWuxob66R l6skvuK2TQVX20J5iu3hKs3lU9JGoqyqwPYV522ZNwWZsVJellRNt9QogpY9r51LTXfA Fbv36SpUZ56AKj8UU9ERmfe983pme4N5AXwlBL94Yc7dKJ4fQ6d2FOwHjy/dRV2eFWth zXng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w6k6hAuC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a5si3177465edq.515.2021.01.25.01.38.12; Mon, 25 Jan 2021 01:38:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w6k6hAuC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726883AbhAYJes (ORCPT + 99 others); Mon, 25 Jan 2021 04:34:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726476AbhAYJ0q (ORCPT ); Mon, 25 Jan 2021 04:26:46 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13740C06178A for ; Mon, 25 Jan 2021 01:26:06 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id v24so16687828lfr.7 for ; Mon, 25 Jan 2021 01:26:05 -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=vnHeIwqxBtkc8QdAEDyiefJYi3lqnllVIwzZtHS/B8g=; b=w6k6hAuCgmKRlMvfak3gAwLBF1ghJ7OJMdzv94wIXyk+McQu600jCNJRMlFKJOzu1/ 4bb0EeexNpiwLgylwSbU/iJ5jQcD48zepuuZDnemJ14pqne0VjOjbLxbQBid1jMv278y xoCPOl9K182hLiqElQuy9wwMbNVp0j4sGkAjr2YkXV/k/4KIHcGcQf4ZNWcSM+XzTF3w m76e0qrv18wYDNZ43IPZy2SF38TA3E+8MFv9p02+qJnP+EBFHtk40wIbwkKqgJX5CzAx /dPSZlMgiQ1Efr06sfI7fMGhIgeVdIQxn1v/CA2hIawa9tsYc9rahiH4uRHkQGBB9d4X f3xw== 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=vnHeIwqxBtkc8QdAEDyiefJYi3lqnllVIwzZtHS/B8g=; b=G8BXiLJ12OgsOJahCoRHI8BYr5tg1Neav1GO/OP0CEcozo7YHDsFnbkxuob0XQ16hu HfRuFtfH7N3FJ4U9PM4eqif6C80i2DoFepwScE4q/q1/qXIsSx773cRnZXtCsC+a25Ox LtFKLlyRcXoGCCNgBZ6MC4IPPfqxuKRkIVKfpsAnQojICzVDNHM4YqRyx8XMfDsO3uKp xCig+yPTGxKHTFFiAWFbinbHCnzOaFxx7vpMMk79tQ5aJc5pHQBHSsSpIvACO+sg4Jl+ 2boqUe7tXQgYqlJWACyJDTbuv7Zj9yQe0R4vox+JkX/5Jxib7Prnp7sveFggysCF9j5w ctEw== X-Gm-Message-State: AOAM532Y0ZOdWm/HUOPDbUX531wD54yR9jU8RT/YztMg7MuuQtCtut4p hOKVigLBxza665rrlv4bbOMYAdlghfdRfM3V8eWBCw== X-Received: by 2002:a19:83d3:: with SMTP id f202mr665248lfd.277.1611566763364; Mon, 25 Jan 2021 01:26:03 -0800 (PST) MIME-Version: 1.0 References: <1603372550-14680-1-git-send-email-Julia.Lawall@inria.fr> <20201027091936.GS32041@suse.de> <20210125091238.GE20777@suse.de> In-Reply-To: From: Vincent Guittot Date: Mon, 25 Jan 2021 10:25:52 +0100 Message-ID: Subject: Re: [PATCH v2] sched/fair: check for idle core To: Julia Lawall Cc: Mel Gorman , Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Jan 2021 at 10:20, Julia Lawall wrote: > > > > On Mon, 25 Jan 2021, Mel Gorman wrote: > > > On Sun, Jan 24, 2021 at 09:38:14PM +0100, Julia Lawall wrote: > > > > > > > > > On Tue, 27 Oct 2020, Mel Gorman wrote: > > > > > > > On Thu, Oct 22, 2020 at 03:15:50PM +0200, Julia Lawall wrote: > > > > > Fixes: 11f10e5420f6 ("sched/fair: Use load instead of runnable load in wakeup path") > > > > > Signed-off-by: Julia Lawall > > > > > Reviewed-by Vincent Guittot > > > > > > > > > > > > > While not a universal win, it was mostly a win or neutral. In few cases > > > > where there was a problem, one benchmark I'm a bit suspicious of generally > > > > as occasionally it generates bad results for unknown and unpredictable > > > > reasons. In another, it was very machine specific and the differences > > > > were small in absolte time rather than relative time. Other tests on the > > > > same machine were fine so overall; > > > > > > > > Acked-by: Mel Gorman > > > > > > Recently, we have been testing the phoronix multicore benchmarks. On v5.9 > > > with this patch, the preparation time of phoronix slows down, from ~23 > > > seconds to ~28 seconds. In v5.11-rc4, we see 29 seconds. It's not yet > > > clear what causes the problem. But perhaps the patch should be removed > > > from v5.11, until the problem is understood. > > > > > > commit d8fcb81f1acf651a0e50eacecca43d0524984f87 > > > > > > > I'm not 100% convinved given that it was a mix of wins and losses. In > > the wakup path in general, universal wins almost never happen. It's not > > 100% clear from your mail what happens during the preparation patch. If > > it included time to download the benchmarks and install then it would be > > inherently variable due to network time (if download) or cache hotness > > (if installing/compiling). While preparation time can be interesting -- > > for example, if preparation involves reading a lot of files from disk, > > it's not universally interesting when it's not the critical phase of a > > benchmark. > > The benchmark is completely downloaded prior to the runs. There seems to > be some perturbation to the activation of containerd. Normally it is > even: * * * * Does it impact the benchmark results too or only the preparation prior to running the benchmark ? > > and with the patch it becomes more like: * ** ** > > That is every other one is on time, and every other one is late. > > But I don't know why this happens. > > julia > > > > > I think it would be better to wait until the problem is fully understood > > to see if it's a timing artifact (e.g. a race between when prev_cpu is > > observed to be idle and when it is busy). I agree that a better understanding of what is happening is necessary before any changes > > > > -- > > Mel Gorman > > SUSE Labs > >