Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1096010pxx; Fri, 30 Oct 2020 01:44:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxailSAOrCObnKNmYMbIDgS6jVemqK9P6z4ftoeflgOHdHcFaJ5s8ptDupA/HNigJbtbmQk X-Received: by 2002:a17:906:3399:: with SMTP id v25mr1318826eja.51.1604047481259; Fri, 30 Oct 2020 01:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604047481; cv=none; d=google.com; s=arc-20160816; b=Pe2PHalGT5voZzoVESereohauGwBvOJYdubLyLIEhXkXgqKfi8V+APcVxv5B6ylWUP BfkP093Fn8isulfVaW3VI9ISNG6fSugS+fyXTZFnIYu3GfybYkcEBfUkJI5NaPEE6C10 OaL/2m9A4Vmc/2pDiBvhMrytyne3uQD80hjSDTJfgXo08bQVDQYXx8/rsmK2bMt+2K7z RHdD7nFbEezMzTpOLHjPzMxa9mB/dxmi+aY2WR3KUPFAJpKuZhhTHTvyasppqQmmg7V/ 6jQuhknKpj6ZmSpKaSxPC2w1h506qZUB8CcYX8xeCA9n1+TJmYtaAVNxwWVUMi8F8e8W b5Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mK1sKeQRc51Ss+CdNz/7onPx5BwriPwjLZ9pRTEesu0=; b=SFW8CCq+fzTMIniPJDuRSM+BUmYEGrAOn5M2bpr9qJcWjPDLFh+mFbtQu9eLKlE8Lm eZE94Rfa9c2PrfVnxg9v/KOTnf0ES9la3BrMvMhyvqlmp43ym25pCNWw3Ls4QOrE0rmO 30uNuahJ2/1j88tmCo1eYOJA9LjGQzMvujpIy4ebiu7e+3kxidVNCFGCfvAKSUr2QGsx D+9GMC1jQc+P/01eXjB1c1CvVJRiYOm1NL2sdt6ZZUfbQZIHeO24FjPsNLd+YWxQaYQe 5JmHv5npvMEGAc6glsrw51arOifXFBMP50PqJacWAbX5L0L2jTaDOnrcduQDPXXwsRJN RC2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=2V6UYgLB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a4si3509364ejc.628.2020.10.30.01.44.17; Fri, 30 Oct 2020 01:44:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=2V6UYgLB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725888AbgJ3ImU (ORCPT + 99 others); Fri, 30 Oct 2020 04:42:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgJ3ImU (ORCPT ); Fri, 30 Oct 2020 04:42:20 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01CA1C0613CF for ; Fri, 30 Oct 2020 01:42:19 -0700 (PDT) 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; bh=mK1sKeQRc51Ss+CdNz/7onPx5BwriPwjLZ9pRTEesu0=; b=2V6UYgLBWG3/PqKfitYx5/qc/p PamQxEOIq1AGoq8oXkYPRWYUw2rezgQT83YfdLrwI9hUPi3EK3CX+q/4KF7QC6AzQpOjarjf7pQsK YkzmO5Aat2U8JdhJ95VjbydruuaRRrElnL3wWacOXce3ObJuoBJ89V6ANj51zMx6Cxhsjcbc5g81N JX90N/P3WN0fWwFIVo6hUQ+s+KiQXj2Ofb0V1l9BILwSMK7Cnm7pP5cL3rdZ3+2LNovFNX35U5+5E Ms08WVMInt0xh4J3+fQ8pPVo5sgbhYoT2kFA/NNFWDHXlwmgD6tygu2CrRFmLzsSXHGwi+/2LHBwZ iprh8QXQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kYPyK-0007L0-S2; Fri, 30 Oct 2020 08:41:21 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 266C93012C3; Fri, 30 Oct 2020 09:41:13 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id EDF4820DCC48D; Fri, 30 Oct 2020 09:41:12 +0100 (CET) Date: Fri, 30 Oct 2020 09:41:12 +0100 From: Peter Zijlstra To: Joel Fernandes Cc: Nishanth Aravamudan , Julien Desfossez , Tim Chen , Vineeth Pillai , Aaron Lu , Aubrey Li , Thomas Glexiner , LKML , Ingo Molnar , Kees Cook , Greg Kerr , Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini , vineeth@bitbyteword.org, Chen Yu , Christian Brauner , Agata Gruza , Antonio Gomez Iglesias , graf@amazon.com, konrad.wilk@oracle.com, Dario Faggioli , Paul Turner , Steven Rostedt , Patrick Bellasi , =?utf-8?B?YmVuYmppYW5nKOiSi+W9qik=?= , Alexandre Chartre , James.Bottomley@hansenpartnership.com, OWeisse@umich.edu, Dhaval Giani , Junaid Shahid , Jesse Barnes , "Hyser,Chris" , Aubrey Li , Tim Chen Subject: Re: [PATCH v8 -tip 08/26] sched/fair: Snapshot the min_vruntime of CPUs on force idle Message-ID: <20201030084112.GX2628@hirez.programming.kicks-ass.net> References: <20201020014336.2076526-1-joel@joelfernandes.org> <20201020014336.2076526-9-joel@joelfernandes.org> <20201026124724.GT2611@hirez.programming.kicks-ass.net> <20201029182429.GA1844482@google.com> <20201029185933.GG2611@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 29, 2020 at 10:42:29PM -0400, Joel Fernandes wrote: > Forgot to ask, do you also need to do the task_vruntime_update() for > the unconstrained pick? Humm.. interesting case. Yes, however... since in that case the picks aren't synchronized it's a wee bit dodgy. I'll throw it on the pile together with SMT4. Also, I'm still hoping you can make this form work: https://lkml.kernel.org/r/20201026093131.GF2628@hirez.programming.kicks-ass.net (note that the put_prev_task() needs an additional rq argument) That's both simpler code and faster.