Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp200823ybl; Tue, 28 Jan 2020 01:26:41 -0800 (PST) X-Google-Smtp-Source: APXvYqzYvdAF2dDRaAlYS7Gn0UWsBzGOfLDTsHZitE2FOUe20Q5r/eciAUNc6eBjqRN5eGc4veP4 X-Received: by 2002:a9d:65da:: with SMTP id z26mr15684308oth.197.1580203601700; Tue, 28 Jan 2020 01:26:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580203601; cv=none; d=google.com; s=arc-20160816; b=Mdc7RGQopdc5SblZptVfUxFNxELLfbp/aWib88znPBEF0qKtdpjzXUKg9xyEY2gSGC JDj1o0iimSwg4mXF+gopAp5oKHu7K/y7gQYPNQej9HFzZvxDSpyMUG8fcsSbrHuWuPLb NKW1VG4V1t/PgXAO02ku1EwXHoRyvBFaF+K3ztA54+7QmgjjJLevpwDt2/kv2tsJquIu B6av4vY/ZqRcHRtLRL+WN8xx5sq9a14qE2rpzWq6Q6YUUYrn8o/HgwjcHLtwS0a8Wgu0 ka7pGAPeLhcYGNHGYZqCMO0mVj9T89fclxgyR7Y9eaU2+BcUpeW7HR+lxhCgSzlmUFo8 wJjw== 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=vvqL8X3F2e2yQxX1hXz41DGmGCsUuPLwIbYrMjJnQH8=; b=R/b4wCNwtGh6u+0Yhmq3Yp1sluToeu0C0Jl2rAS0cCvlSckaQwr3BwaQX7NypbpvmG AGV24TQADWEq/dgxeDMTp2dd4T7sUs8EawatR5C+IRa0rXh6x1mgkdMtWWilkc54XxZS veS3q5JMC9OC8otNCqYH2f0YaXJ0IpuX1DtiY0L/4X2j+GAKnQMrkXiYaE7/jQLJ1SwO WiLLt6d+JpGmS7fvGVTuQ1v0HKcgca0AZ0ipkyo/Xx9Ia4lBUFOojjoag8MTnv4/gH/M qo8toFko/6ubIFM+K06XdL4sUOgWsEFkq7xhifSuH7j6mJvYtdX22vGtXOo66PyRpB9V yKAA== 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 f17si8084502oto.85.2020.01.28.01.26.28; Tue, 28 Jan 2020 01:26:41 -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 S1726129AbgA1JYa (ORCPT + 99 others); Tue, 28 Jan 2020 04:24:30 -0500 Received: from foss.arm.com ([217.140.110.172]:54156 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbgA1JYa (ORCPT ); Tue, 28 Jan 2020 04:24:30 -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 CD23231B; Tue, 28 Jan 2020 01:24:29 -0800 (PST) Received: from [192.168.0.7] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 91EA43F52E; Tue, 28 Jan 2020 01:24:28 -0800 (PST) Subject: Re: [PATCH v3 0/3] sched/fair: Capacity aware wakeup rework To: Valentin Schneider , 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> From: Dietmar Eggemann Message-ID: <35c18eee-7e92-8a7d-c59d-11dfd2b053ff@arm.com> Date: Tue, 28 Jan 2020 10:24:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200126200934.18712-1-valentin.schneider@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 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.