Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3554506pxb; Mon, 25 Jan 2021 21:11:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJx17GJVrTsHIJKZ1tCHzjpq0MXJbiYnffgpR+ArxRHx4+H+Mfiq99InID+8LIXxPBNOIqZX X-Received: by 2002:a05:6402:3514:: with SMTP id b20mr2553547edd.100.1611637903543; Mon, 25 Jan 2021 21:11:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611637903; cv=none; d=google.com; s=arc-20160816; b=ykibLAPNtwpk6BXUzXh8BfqBMAbnkzp1/lZA+pimMH8kuE5JdLqMFnQTt5/dt4ojnX oPC7FIALqV3VJarrIY4PkDg79Ren9Y7bO+StNlZD5lZgAAWNKA31lbnJMJokCqtorEKS dyjNx3F5Y4X6tjWY4GqHZH4IcYTgx51kbKpUDgjAaOw93v2HbdK8Nog4TrtXhcp+9ypN iIZscD9SY5C+iC1Sc1vLEyq4EtKu5fcRX4QdwyiXmFbqVQUJQ+xAmWgnuuuWiW+PLu14 i9SSVV27yRdEb2JC6j9QyyYJeAtbq30BR+glFgbv1AsekAMCM3PH6G27rXqMhJMT3bJZ xcTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=kIc+6x4kQkaCQeQXANIQCTP6oUKxoi+QeVKK2zO/UEA=; b=H3t80m4oV0UfUrNimfnl2iC1wuR6s/FjNC3B40ZLCnkjkp5YN6vOZkZDNH7eQjWb4a UHdONex3SFqzRZpjFoinQa2DpnHybwCZ1POQtWhquYkEtq6T649egmBN11TGgtOArVas Vrf9JWIiFAPp2Sn8+P0HyQkpuRz9wcPY/Qq6zg5fA9a3Y+WDjFTsXPxOXxLBJzK/QpZn Y7C9DAPsrIQQkhZg/gCk19HgVSMlZPxFNp9KqUL6BAnnSY8adwc7GDGTI/yvnFpsDADq 5DddO9/Zt3keq3/dyCK5ReuIO82KfWyK3bmNsOXp3ALyFkA6FRZ/HNplMqh82UXnix7e S4gQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g21si7983198edb.12.2021.01.25.21.11.19; Mon, 25 Jan 2021 21:11:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727939AbhAZFKf (ORCPT + 99 others); Tue, 26 Jan 2021 00:10:35 -0500 Received: from mx2.suse.de ([195.135.220.15]:57018 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726854AbhAYJeV (ORCPT ); Mon, 25 Jan 2021 04:34:21 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id A276CAFF3; Mon, 25 Jan 2021 09:12:40 +0000 (UTC) Date: Mon, 25 Jan 2021 09:12:38 +0000 From: Mel Gorman To: Julia Lawall Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] sched/fair: check for idle core Message-ID: <20210125091238.GE20777@suse.de> References: <1603372550-14680-1-git-send-email-Julia.Lawall@inria.fr> <20201027091936.GS32041@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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). -- Mel Gorman SUSE Labs