Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp942943ybe; Wed, 11 Sep 2019 07:07:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDEQL3I6vENl+RFX9iphL4Wr6fArsbYWeKEi5iODfvhVkRM1Y2+tU3yrkXLU3OAN5y0ZCn X-Received: by 2002:a05:6402:1e2:: with SMTP id i2mr37627048edy.56.1568210838229; Wed, 11 Sep 2019 07:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568210838; cv=none; d=google.com; s=arc-20160816; b=J1CwuGHkhGjhZ0ErpRn/MzPrpZGg9OcIPuAC3m6p9Vsuu5K2cy1Df2PEg3v+BTK/lp zJui0wEgqcKvwj4laegM6PoB7h5pSQdXjkJbGYZ72Wthzq5m8sDTNzq9L1zwTJDQIiLL CjJc0u1V4w2zCdHNAgxV/XEChmWe9fM8e0ONqOZkkaq3pHHe1tAycLxMc/pCVvdLEgXc KJabrrz5l6W6Y7nWBfqbHnM5wpXvWAI6o6s5uaFjkVVpSSj/JDz5qmfXJ7r0AWJuHTlC ji9mnrPvpoVSzCC8eFeROitprqbFgsyb2MAvIDfpzmwpigB4CoYqsk/uiqTraFOJAepb rN2Q== 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; bh=GGdsLj5GldnMMfYMytP7mS4ecCW2YmnYycawg8kfPr8=; b=e0oJZk9xypCnQCvPTpz5u1EmE7GJIEK/zXPfIcG+TtFYFvwxckKnRnwBNXauVUhKu7 gEYdh+dSUY7/2hfZmyUyDyfsldeBa1SlvIfYoVRDB7Yip+aRAb3LQMYqUDit8xhoaGlz mKhWkQcI0FTooBk1JzddeG8ZUMy+abIk0ATsvS8vbqW1QF0/FUjCatQbJbF9JDuoGrBM 3zennv2zRUDSGKOiFl2CMGhmv7aG+hi/sKVWmcqRxjEfhi3+A/Rw/H5EtftWsCAhP73p SsLq+wa0jGb25Rdd9KyRoUI8j88No3qZIx1w8TN1eVHKs+hwKUFMmY1144xzEBWpOpy6 60Sw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k12si10628233edi.145.2019.09.11.07.06.52; Wed, 11 Sep 2019 07:07:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728080AbfIKOCW (ORCPT + 99 others); Wed, 11 Sep 2019 10:02:22 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:46094 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726626AbfIKOCV (ORCPT ); Wed, 11 Sep 2019 10:02:21 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R251e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04391;MF=aaron.lu@linux.alibaba.com;NM=1;PH=DS;RN=22;SR=0;TI=SMTPD_---0Tc4oLSS_1568210525; Received: from aaronlu(mailfrom:aaron.lu@linux.alibaba.com fp:SMTPD_---0Tc4oLSS_1568210525) by smtp.aliyun-inc.com(127.0.0.1); Wed, 11 Sep 2019 22:02:12 +0800 Date: Wed, 11 Sep 2019 22:02:05 +0800 From: Aaron Lu To: Tim Chen , Julien Desfossez Cc: Dario Faggioli , "Li, Aubrey" , Aubrey Li , Subhra Mazumdar , Vineeth Remanan Pillai , Nishanth Aravamudan , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Kees Cook , Greg Kerr , Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Subject: Re: [RFC PATCH v3 00/16] Core scheduling v3 Message-ID: <20190911140204.GA52872@aaronlu> References: <20190619183302.GA6775@sinkpad> <20190718100714.GA469@aaronlu> <20190725143003.GA992@aaronlu> <20190726152101.GA27884@sinkpad> <7dc86e3c-aa3f-905f-3745-01181a3b0dac@linux.intel.com> <20190802153715.GA18075@sinkpad> <69cd9bca-da28-1d35-3913-1efefe0c1c22@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tim & Julien, On Fri, Sep 06, 2019 at 11:30:20AM -0700, Tim Chen wrote: > On 8/7/19 10:10 AM, Tim Chen wrote: > > > 3) Load balancing between CPU cores > > ----------------------------------- > > Say if one CPU core's sibling threads get forced idled > > a lot as it has mostly incompatible tasks between the siblings, > > moving the incompatible load to other cores and pulling > > compatible load to the core could help CPU utilization. > > > > So just considering the load of a task is not enough during > > load balancing, task compatibility also needs to be considered. > > Peter has put in mechanisms to balance compatible tasks between > > CPU thread siblings, but not across cores. > > > > Status: > > I have not seen patches on this issue. This issue could lead to > > large variance in workload performance based on your luck > > in placing the workload among the cores. > > > > I've made an attempt in the following two patches to address > the load balancing of mismatched load between the siblings. > > It is applied on top of Aaron's patches: > - sched: Fix incorrect rq tagged as forced idle > - wrapper for cfs_rq->min_vruntime > https://lore.kernel.org/lkml/20190725143127.GB992@aaronlu/ > - core vruntime comparison > https://lore.kernel.org/lkml/20190725143248.GC992@aaronlu/ So both of you are working on top of my 2 patches that deal with the fairness issue, but I had the feeling Tim's alternative patches[1] are simpler than mine and achieves the same result(after the force idle tag fix), so unless there is something I missed, I think we should go with the simpler one? [1]: https://lore.kernel.org/lkml/b7a83fcb-5c34-9794-5688-55c52697fd84@linux.intel.com/