Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp305911ybl; Tue, 28 Jan 2020 03:35:36 -0800 (PST) X-Google-Smtp-Source: APXvYqy4L7AoBS5dk6zftEKyTiQfDKtukUgoi03ISXQuUDVZXal8mUJc7oZx4BVBS9hHmUTE0CVQ X-Received: by 2002:a05:6830:15d7:: with SMTP id j23mr4902628otr.357.1580211336714; Tue, 28 Jan 2020 03:35:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580211336; cv=none; d=google.com; s=arc-20160816; b=mbcjGvCCIpAELu764VQrZ3j8EmySTtz5kTDdxF6QHLkEDhFKgyYQrlpixt1bGGL7F/ HW9LWShF25FuvoK0TVUQpkHnWYu738PF+5tfs/zleACffkfG8SDqxNskCkTAd3M60blB MaUdXuWoFX+jb9yS6aHWHo59belRta0VFuenO6BqKFw8+iEGP9oBKJQq7OGgLgHnaFvX qahYiDu/HcpZxNUMagwOKyXJWBxdYrLNKJIejPAfUNZq/7Q3/HgP3tE2rT+gTdq0JYXM U4bUhtMTkSM0vyU5rib8sYpq+a5x4ubhNKYhXOrNgi9BSITlyYyyh3U1IbXp7PAfmBZ9 Nw8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=q8pJOToQMlOLM9ifitUxf3GGFrY4seiOTQIXCAmsKP4=; b=BThRZRmUOgqqw0WISeYLZzu/uKwloak393W3q+QbU/GqGmMDwQFLK7E9cJPEG1KcrI Jx6RJ2M3Z2NOuBejHZstmvK4SwZqI/Jp5J9wvwOXShvBOLUIcpxcCQUhNvVaEp+Opn4u WGB5U74qNcDU+IMYFlDZLk/BFFunVUbNYQ0q8pWdOEQJHelIo0HncS2Flf1MNHZMsS9A JxAc/Ss3bWJ99L56nM4QMXQoMIF7dapzBEBuGL/tHtyhRnp+2kcif+0WNE7kXkL08w5U PlunL+bsJ07SSCLtB9bc4vyh3Oyj/RKvEz3NWtZuQWEUK81d++jdUsEYI/CzNmJwniNg +Afw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18si6017773otp.48.2020.01.28.03.35.24; Tue, 28 Jan 2020 03:35:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725977AbgA1Le0 (ORCPT + 99 others); Tue, 28 Jan 2020 06:34:26 -0500 Received: from foss.arm.com ([217.140.110.172]:55506 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbgA1LeZ (ORCPT ); Tue, 28 Jan 2020 06:34:25 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 422A6101E; Tue, 28 Jan 2020 03:34:23 -0800 (PST) Received: from [10.1.194.46] (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3C8533F52E; Tue, 28 Jan 2020 03:34:22 -0800 (PST) Subject: Re: [PATCH v3 0/3] sched/fair: Capacity aware wakeup rework To: Dietmar Eggemann , linux-kernel@vger.kernel.org Cc: mingo@redhat.com, peterz@infradead.org, vincent.guittot@linaro.org, morten.rasmussen@arm.com, qperret@google.com, adharmap@codeaurora.org References: <20200126200934.18712-1-valentin.schneider@arm.com> <35c18eee-7e92-8a7d-c59d-11dfd2b053ff@arm.com> From: Valentin Schneider Message-ID: <9b6d0ea2-cf5e-ed89-6c08-6f43c345265f@arm.com> Date: Tue, 28 Jan 2020 11:34:21 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <35c18eee-7e92-8a7d-c59d-11dfd2b053ff@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/01/2020 09:24, Dietmar Eggemann wrote: > On 26/01/2020 21:09, Valentin Schneider wrote: > > [...] > >> v2 -> v3 >> -------- >> o Added missing sync_entity_load_avg() (Quentin) >> o Added fallback CPU selection (maximize capacity) >> o Added special case for CPU hogs: task_fits_capacity() will always return 'false' >> for tasks that are simply too big, due to the margin. > > v3 fixes the Geekbench multicore regression I saw on Pixel4 (Android 10, > Android Common Kernel v4.14 based, Snapdragon 855) running v1. > > I changed the Pixel4 kernel a bit (PELT instead WALT, mainline > select_idle_sibling() instead the csctate aware one), mainline > task_fits_capacity()) for base, v1 & v3. > > Since it's not mainline kernel the results have to be taken with a pinch > of salt but they probably show that the new condition: > > if (rq->cpu_capacity_orig == READ_ONCE(rq->rd->max_cpu_capacity) && ... > return cpu; > > has an effect when dealing with tasks with util_est values > 0.8 * 1024. > Thanks for going through that hassle! I'm quite pleased with the results of that change - if you also look at e.g. the stddev for sysbench on Juno, runs are much more consistent now.