Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2399244ybp; Thu, 10 Oct 2019 06:55:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyidwouy8yUklbs+F85WL5hxY1BpeewGftyLlU+aRsl46KQU33y+U+DDl/crZSKqUwvKPod X-Received: by 2002:a50:f701:: with SMTP id g1mr8215556edn.62.1570715724700; Thu, 10 Oct 2019 06:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570715724; cv=none; d=google.com; s=arc-20160816; b=PuFX2cmjFcVIsssKnlZ7oM5/+Sus11sF98Gg0cHZZ1ggttIUaAnqknABSWhvA+Nf1H UsI2GS4EIsSUv1La/8i0fe0KM66Kes3NkVceI5tGkoYP1foYCFD0Pe0HBxqxwDzU/06L EE4y67S+DRbJ8edsg+Zer1K5S4fgsczB3701fBaydHpjU1PbJlMle0YucUTs+XHNFvpj cQ8M5sVKnRC7Crzvb+qR0V83eiOofH9xRycELctDIvCy3V3zwVKq2iKHA1+QCWBbWnQV /Hq7SSSq6c5wtFXFH+KA6uHh8QYHyanIpwHrvpiV17k9bwoAw44YtIjHCsfjbaMMdqPT khNw== 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=TmYp6G3hQ30G+ssLcJLWVJXyx/YOWpRKaAGpXEwxhYc=; b=pN0Ux046XhAstr3sUtl/e8eJo3C1YytsbdLxkGq500/AD9h/CLp5oi9xX38oNKfCwP QgwR1mrXcGg+DNFvlk7vTJCOqR8M9yo5r6VC83pruRSyUJTZG4ULQNoWN96sjOhMEzjm hAGgQyMx4dSwlEsEDP+dGYiHhXsOsIDKTXE+fAclbUwJ+bmwHpe63ixnIE85I6uRe0R4 scpg20Gm0aPCIj68UZ4sz0/M4G2x8fByf15v+WJnISiYrhYtU2pLaPLfMK2GHHFH/GpB QwmsdEfG+cyNQNsv7m29c5BPMc5TL/YEfXmm+rkoF8Irn9H563cOP3Z5IfTaliYUn7a+ Op5Q== 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 d17si4145857eda.213.2019.10.10.06.55.00; Thu, 10 Oct 2019 06:55:24 -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 S1726014AbfJJNyr (ORCPT + 99 others); Thu, 10 Oct 2019 09:54:47 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:50842 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbfJJNyr (ORCPT ); Thu, 10 Oct 2019 09:54:47 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R591e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04446;MF=aaron.lu@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0Teee2Gx_1570715676; Received: from aaronlu(mailfrom:aaron.lu@linux.alibaba.com fp:SMTPD_---0Teee2Gx_1570715676) by smtp.aliyun-inc.com(127.0.0.1); Thu, 10 Oct 2019 21:54:42 +0800 Date: Thu, 10 Oct 2019 21:54:36 +0800 From: Aaron Lu To: Vineeth Remanan Pillai Cc: Tim Chen , Julien Desfossez , Dario Faggioli , "Li, Aubrey" , Aubrey Li , 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: <20191010135436.GA67897@aaronlu> References: <20190802153715.GA18075@sinkpad> <69cd9bca-da28-1d35-3913-1efefe0c1c22@linux.intel.com> <20190911140204.GA52872@aaronlu> <7b001860-05b4-4308-df0e-8b60037b8000@linux.intel.com> <20190912123532.GB16200@aaronlu> 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 On Wed, Oct 02, 2019 at 04:48:14PM -0400, Vineeth Remanan Pillai wrote: > On Mon, Sep 30, 2019 at 7:53 AM Vineeth Remanan Pillai > wrote: > > > > > > > Sorry, I misunderstood the fix and I did not initially see the core wide > > min_vruntime that you tried to maintain in the rq->core. This approach > > seems reasonable. I think we can fix the potential starvation that you > > mentioned in the comment by adjusting for the difference in all the children > > cfs_rq when we set the minvruntime in rq->core. Since we take the lock for > > both the queues, it should be doable and I am trying to see how we can best > > do that. > > > Attaching here with, the 2 patches I was working on in preparation of v4. > > Patch 1 is an improvement of patch 2 of Aaron where I am propagating the > vruntime changes to the whole tree. I didn't see why we need do this. We only need to have the root level sched entities' vruntime become core wide since we will compare vruntime for them across hyperthreads. For sched entities on sub cfs_rqs, we never(at least, not now) compare their vruntime outside their cfs_rqs. Thanks, Aaron > Patch 2 is an improvement for patch 3 of Aaron where we do resched_curr > only when the sibling is forced idle.