From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15EB3C433FF for ; Mon, 29 Jul 2019 14:28:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DF776216C8 for ; Mon, 29 Jul 2019 14:28:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728151AbfG2O2s (ORCPT ); Mon, 29 Jul 2019 10:28:48 -0400 Received: from foss.arm.com ([217.140.110.172]:45084 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726190AbfG2O2s (ORCPT ); Mon, 29 Jul 2019 10:28:48 -0400 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 0306A28; Mon, 29 Jul 2019 07:28:48 -0700 (PDT) Received: from [10.1.194.37] (e113632-lin.cambridge.arm.com [10.1.194.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DB0C13F71F; Mon, 29 Jul 2019 07:28:46 -0700 (PDT) Subject: Re: [PATCH 3/5] sched/fair: rework load_balance To: Vincent Guittot Cc: linux-kernel , Ingo Molnar , Peter Zijlstra , Quentin Perret , Dietmar Eggemann , Morten Rasmussen , Phil Auld References: <1563523105-24673-1-git-send-email-vincent.guittot@linaro.org> <1563523105-24673-4-git-send-email-vincent.guittot@linaro.org> <4d3a67f5-c9c4-6397-7405-6f0efbd49d5c@arm.com> From: Valentin Schneider Message-ID: <58f79135-4b6c-2507-3f5d-e3c7704bf8b3@arm.com> Date: Mon, 29 Jul 2019 15:28:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: 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/07/2019 15:47, Vincent Guittot wrote: [...] >> If CPU0 runs the load balancer, balancing utilization would mean pulling >> 2 tasks from CPU1 to reach the domain-average of 40%. The good side of this >> is that we could save ourselves from running some newidle balances, but >> I'll admit that's all quite "finger in the air". > > Don't forget that scheduler also selects a cpu when task wakeup and > should cope with such situation > Right, although I'm not sure even the slow wakeup path is any good at balancing utilization. >> >>>> happen, but it'd be a shame to repeatedly do this when we could >>>> preemptively balance utilization. >>>>