Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5969867ybp; Tue, 8 Oct 2019 10:58:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXOWkuiLN3lSBBScy9yp0HzxllB0fgT8NIdjGUH2HdLamTPG3nWfoFbNzQOaHnAMm+zvR8 X-Received: by 2002:a17:906:cc9b:: with SMTP id oq27mr29982225ejb.125.1570557485839; Tue, 08 Oct 2019 10:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570557485; cv=none; d=google.com; s=arc-20160816; b=COboE8NAPx5oi4xbGaGISEp0sVvp6g4g+Xw7PMOf+wwmGx5JAIybmb+hypvPlvGmwr mcdbMQ1Hanz//OtVG9O8uhUlEsshxPYyrfW5zShg8qx98lPPokgeb7lHSYzxSKQbOdPP xO4PgVbll6RjBUAZv9iK/Hb6nR08duj+GigKy79s88C7j7ohz/AdGkXLHZdMfhivvatn w0jR7uROkayLkJHNMSkDBcNnnfprjLIIIXsaTR2r/yLaqwLSWmjhujpla2Yz7y1lyVTi g+fjPFizni0u0zKKcEiexl1YYqZF8AXLERQrF633WWjpO3eOvQRdTJTEFKs7nnBWiAwz RPkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XOAM8DrmdqvOxvYQbnHko0mZQJE/UmKN0IyZDI0K4rU=; b=ndyDoDPKgs5XKVhk09BpR+nbx/mGlqd7uUSl/1a588RBCq5xlvZggr9ZmTqVgJqvqm 8Ee7tv+64eiXj+q+sbTrKGlSOEzLPmmbtYIAF3pReBQ3cFUE+XgcY7PerQitUNu65K3w FMdn7T8LzDBFSEWa3doQHY2rIdhcozmur22lkYtB6Ncx2AtdyH2szm7XjtVL/I+LMSfG h2fpo/YPtIYlz4XYwbEzGq6Y9FgY7HVnaLjqSO+5SBxPTeyU/VB9k+n1YmVUNj2mh0WT ynmaeuhO2MLVM2F6DArTM45cm+M32P4RdWcoULYll1eybsH2Ln945zg6HleFnpOnTiRc R95A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=WI9aVGwm; 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 f43si12244768edf.422.2019.10.08.10.57.41; Tue, 08 Oct 2019 10:58:05 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=WI9aVGwm; 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 S1729211AbfJHRz5 (ORCPT + 99 others); Tue, 8 Oct 2019 13:55:57 -0400 Received: from merlin.infradead.org ([205.233.59.134]:42842 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726822AbfJHRz5 (ORCPT ); Tue, 8 Oct 2019 13:55:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XOAM8DrmdqvOxvYQbnHko0mZQJE/UmKN0IyZDI0K4rU=; b=WI9aVGwm7YTWXAmUw7I2TkGL7 +3yNEppGPH7QWQJPxzileVld9tlJ18/mLs6Bl25ozl+v4BIjsA218S0lYCUCswRLLufiAc0B6rkK5 oUKidiL8Srw8ncQhZw6r23fFR03KioL8SfO8L4hjp4sKjb/dIMBvqtZtk/YvVDRYjIzH/VrhC/31E Itpqly77Ro5XbRMTbqMcdp8JmL3QldO46NXdYPT2F1BNtXE4wEf+f+TG0WrMiFx/Eoo/vSq6zoNSb lMMvh6C7OESSWGH4E5E+kSuTlMw4BQQIC9URq4yg8uya8K+TjEceqR66PyikrL2h5t2puUHRuWPke MP07ddn6w==; Received: from [31.161.223.134] (helo=worktop.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.2 #3 (Red Hat Linux)) id 1iHti8-0004La-AY; Tue, 08 Oct 2019 17:55:50 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 2721E9802E0; Tue, 8 Oct 2019 19:55:37 +0200 (CEST) Date: Tue, 8 Oct 2019 19:55:37 +0200 From: Peter Zijlstra To: Vincent Guittot Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, pauld@redhat.com, valentin.schneider@arm.com, srikar@linux.vnet.ibm.com, quentin.perret@arm.com, dietmar.eggemann@arm.com, Morten.Rasmussen@arm.com, hdanton@sina.com Subject: Re: [PATCH v3 04/10] sched/fair: rework load_balance Message-ID: <20191008175537.GC22902@worktop.programming.kicks-ass.net> References: <1568878421-12301-1-git-send-email-vincent.guittot@linaro.org> <1568878421-12301-5-git-send-email-vincent.guittot@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1568878421-12301-5-git-send-email-vincent.guittot@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 19, 2019 at 09:33:35AM +0200, Vincent Guittot wrote: > + if (busiest->group_type == group_asym_packing) { > + /* > + * In case of asym capacity, we will try to migrate all load to > + * the preferred CPU. > + */ > + env->balance_type = migrate_load; > env->imbalance = busiest->group_load; > return; > } I was a bit surprised with this; I sorta expected a migrate_task,1 here. The asym_packing thing has always been a nr_running issue to me. If there is something to run, we should run on as many siblings/cores as possible, but preferably the 'highest' ranked siblings/cores.