Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6025165ybp; Tue, 8 Oct 2019 11:50:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCpZHX4VRTE/1QDMuPEpYL9189baEHEiA/3Hte1GDXXFLcTy1tlR6F9Dg4QyL5S3HRjU0c X-Received: by 2002:aa7:d789:: with SMTP id s9mr6366560edq.62.1570560623201; Tue, 08 Oct 2019 11:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570560623; cv=none; d=google.com; s=arc-20160816; b=aK9exr9pBoXLduM4zDlAW5PN6xpqpKNzfghFZ6kUui/cGYfF3q7K7I4wxELoOw/HmK 8VoGoKjTRceoQMq+qhOAna1E6eFFKDruCkLcGRLfzyB52yG969mEPL5XZK/L8SarfGhl ksvXhy67IA+2VMIWB1qg5494N1j2b5e/+8JiJlhc1trM808jKyu/eDPniV2esvQQApiL BVD6IFTeBd5UJ/A8aiAzSK+IHgC+QReNydjGDD+Dpn2h7NZT8I3pT/uLz4KWP6WadVu7 E0iJ7uMvUDow3Qf47NOHh/gfYcdpjB4WuFgWgZUaS/H4Wj8DfYjffdGDiMVRCYXXgDs3 i5sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=NqVCRA8DXcJbueCkNXpXj55U/sPwUJi86T0AFdK851g=; b=CxZz8Lcp1y8+M4ddkaW8fb9cjZwcnrTr01mZ0j/pC3GlMrBo1GQqUyFeDWdvopbDDu Mn0kyzfLeRSBLjLNo5hQV0CykukqWnxaf4ToBuXvMf5T7uwChGZAFAIkAM+Vw/2NK9CT XHwr0DKTGxl5m+9Maa3D8JQZrnH82qH96UGCZnYz5SFWM8DtaOvRYQXm9bK+Wtkjrzro 49wEdQwWTx/b0oPmWY2RlahqjModOD2J/j3TtuAoX4MRm2ibyVILUqEF/e9WAeooAiPx gt+65VLLsrK8RAB/Z1+znRPJkl12AN+mms8YmJ2ZZYWL5rFpht68TTHsf/wJdUnpOwiM ZLQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Emybee+3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e57si11278198ede.356.2019.10.08.11.49.59; Tue, 08 Oct 2019 11:50:23 -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=pass header.i=@linaro.org header.s=google header.b=Emybee+3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729872AbfJHSr0 (ORCPT + 99 others); Tue, 8 Oct 2019 14:47:26 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41025 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbfJHSr0 (ORCPT ); Tue, 8 Oct 2019 14:47:26 -0400 Received: by mail-lf1-f67.google.com with SMTP id r2so12751157lfn.8 for ; Tue, 08 Oct 2019 11:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NqVCRA8DXcJbueCkNXpXj55U/sPwUJi86T0AFdK851g=; b=Emybee+3RFAUwAW/L2KKsoVCidti/TvHDnVzPjg0lUeAwKfvemlBcNmdI57+NwrH93 F8w3wC6Xb32v6bugBgFX3TBSXsCgjWFinj+7hJlanBzf7WEP0vFubbZB7hDN3zGC9RBV 7vHxJx6VHJOfTu0j7kbRMQasGPVl0HnU4gL1y+cRqWH/nB4LkAHm73VDZaJjSVIvo48p rpwMvVM+MF7pfa16xLOojyTL1jn3/GwwKu4ZN3Vn2tqSv8DlPJvY3NM9aM8ATtjw+NSI pkaqguQsc2zrPolAx6LlPeLM+l15DOup95mAAM/aSZSmKYPTmlJOyb4f+IrLx2zIVBpd Fx2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NqVCRA8DXcJbueCkNXpXj55U/sPwUJi86T0AFdK851g=; b=mIPqmh/uf2TJlhlzda08o3E1pkyJ6jMG0b6WOk8d4M/1sAAcicHKGC+8YZ5fR+JFKn 5qPebGpat9wEfeo/R5gHN6sRyxSxWDGBM4sRdN9MdsGTq1KGnavMEyS2Rn3hxNhRTahB qG6jbvae50fAodz/nZhZH4KcyFYIZXKeTz8ioj2tiEMSxhRMD2HJHd62c28Gx7h/ws0v husIDsE5+itDuUYt7dxmszNXhxCwYB20bq1uLtFGkRbkCHr9CTAGoQkOCsynUK+owHVI EVDbj4EqkkanOj8SZkLdGa4rv6BUoonFIc8vh1gRo0NDpVu//QLN79riIVZh0bV4oGh6 3NwA== X-Gm-Message-State: APjAAAVHTZK/KY+JnVhg5HshTco0J+cNsM8g0u6GNO/LeFIce12F4mt8 sRyCXqBzxeVuGf7kXGKR64eUaZm0CuX5ObMgFQogzg== X-Received: by 2002:ac2:59c2:: with SMTP id x2mr19473718lfn.125.1570560444146; Tue, 08 Oct 2019 11:47:24 -0700 (PDT) MIME-Version: 1.0 References: <1568878421-12301-1-git-send-email-vincent.guittot@linaro.org> <1568878421-12301-5-git-send-email-vincent.guittot@linaro.org> <20191008175537.GC22902@worktop.programming.kicks-ass.net> In-Reply-To: <20191008175537.GC22902@worktop.programming.kicks-ass.net> From: Vincent Guittot Date: Tue, 8 Oct 2019 20:47:12 +0200 Message-ID: Subject: Re: [PATCH v3 04/10] sched/fair: rework load_balance To: Peter Zijlstra Cc: linux-kernel , Ingo Molnar , Phil Auld , Valentin Schneider , Srikar Dronamraju , Quentin Perret , Dietmar Eggemann , Morten Rasmussen , Hillf Danton Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 Oct 2019 at 19:55, Peter Zijlstra wrote: > > 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. I have just kept current mechanism > > 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. I can probably set the number of running task to migrate instead of the load >