Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3716780ybh; Tue, 6 Aug 2019 00:05:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzyszT8f3Cfx4yeRMiLzlun6TzrMWwsHXKHLWRfpDnPmLgM3V7qpBtMzWvEQOWjN/hylI8 X-Received: by 2002:a17:902:ff05:: with SMTP id f5mr1681206plj.116.1565075140209; Tue, 06 Aug 2019 00:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565075140; cv=none; d=google.com; s=arc-20160816; b=PDj9/k7TL5Bg9Qotan0QRyRbvi0IAy1iCYQuzGe3utrzIH7jmiprT9F+E/G1LOFV+g xfnI9epEeku4mogESy5imw9KLhNxenI01kQF2cEVR4gZk/IkHRnSLINWp2d6N9nK0olK sGaNQTF6MkLHkqQYKiJVooFZ/f6HXs7zJt7VKXRVH07Biz75ocKHfkobjcs9BjM66qqm NUGBT2xQpn5zH4r9JjHa3rdLXPDxXtJsPbuJE9PCDUodCHBFf7eu0oKBpBmWt7WqCw2L TlNVwsXKZ1ii/VSmQcnuiltcnVSEfIUrcdX4F0zOXHqLGKCePGtaFjvPLJl3jedq7HKA kE+g== 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=2g3+bmR9HncrRy3lxXW3Xxi/gJAyQaIBCY6KO0Z4ZuE=; b=C3sm60wyqinAIZiRK8HuU6MxwJDd3vF09zQb4nZbRMME4M0ZLXzEaWu4HKZeK1p7uk TLWaTtIkaG2bjwB3rA6pKaZmghgvVRz3y9iHXamxA2PpXW5+hiiFFPhO6rm9xbaS8nbR MZRMuXk9lNrMJWVVQ1IaVr67eWlhFFGht2CGcO7SLrMxUy+xGXsCbEQVBIdVbo0cRnWp FDc+PmYZTm44FHMWj8ERmQQcPO9ITw/oAKkuEmzTTnFipujSIaNnylxCPZXb4aEF1k/n ipdNc1SUbgcdoG1W4gfU79kPglDcAnNYr7sSF42jGRPxzm6frkcWyK8U0SiOi+aoca4d hD2Q== 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 t27si44696967pgk.502.2019.08.06.00.05.25; Tue, 06 Aug 2019 00:05:40 -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 S1731948AbfHFHEt (ORCPT + 99 others); Tue, 6 Aug 2019 03:04:49 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:36746 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731711AbfHFHEs (ORCPT ); Tue, 6 Aug 2019 03:04:48 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07417;MF=aaron.lu@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0TYo6kt7_1565075082; Received: from 10.15.232.115(mailfrom:aaron.lu@linux.alibaba.com fp:SMTPD_---0TYo6kt7_1565075082) by smtp.aliyun-inc.com(127.0.0.1); Tue, 06 Aug 2019 15:04:43 +0800 Subject: Re: [RFC PATCH v3 00/16] Core scheduling v3 To: Aubrey Li Cc: Tim Chen , Julien Desfossez , "Li, Aubrey" , Subhra Mazumdar , Vineeth Remanan Pillai , Nishanth Aravamudan , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Kees Cook , Greg Kerr , Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini References: <20190613032246.GA17752@sinkpad> <20190619183302.GA6775@sinkpad> <20190718100714.GA469@aaronlu> <20190725143003.GA992@aaronlu> <20190726152101.GA27884@sinkpad> <7dc86e3c-aa3f-905f-3745-01181a3b0dac@linux.intel.com> <20190802153715.GA18075@sinkpad> <20190806032418.GA54717@aaronlu> From: Aaron Lu Message-ID: <54fa27ff-69a7-b2ac-6152-6915f78a57f9@linux.alibaba.com> Date: Tue, 6 Aug 2019 15:04:42 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.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 2019/8/6 14:56, Aubrey Li wrote: > On Tue, Aug 6, 2019 at 11:24 AM Aaron Lu wrote: >> I've been thinking if we should consider core wide tenent fairness? >> >> Let's say there are 3 tasks on 2 threads' rq of the same core, 2 tasks >> (e.g. A1, A2) belong to tenent A and the 3rd B1 belong to another tenent >> B. Assume A1 and B1 are queued on the same thread and A2 on the other >> thread, when we decide priority for A1 and B1, shall we also consider >> A2's vruntime? i.e. shall we consider A1 and A2 as a whole since they >> belong to the same tenent? I tend to think we should make fairness per >> core per tenent, instead of per thread(cpu) per task(sched entity). What >> do you guys think? >> > > I also think a way to make fairness per cookie per core, is this what you > want to propose? Yes, that's what I meant.