Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2552692rdb; Wed, 15 Nov 2023 04:20:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IESGUB4EhAeomdsJxlJ/rzV7vUYN92wg+Ui50J+vwrITKnqePtYykNM3kUtjZIBT/vl/wcV X-Received: by 2002:a05:6a00:278f:b0:6be:b7c:f703 with SMTP id bd15-20020a056a00278f00b006be0b7cf703mr10870812pfb.5.1700050857738; Wed, 15 Nov 2023 04:20:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700050857; cv=none; d=google.com; s=arc-20160816; b=nqW2nXvKOjftGBkkS5HfvbeYysLGP2TCU4TlabaKtuDLHFZy77ytvlT2YS0I1hvOXo K4QRNHYVxqVmZQyO/4EOkBf2vrh/owiluRBPPqLB+NJ+W5Sa4eFNGJQwLb1WDe9eQWkT Hdpon5XGnlS0Iuk1wgQJZdkjZPrC7eYUHSD3W5yhb7EgvzpAFc2m/NtkxrcueqxViPNC FlL+ypVd8LgtMp+pSzV9+8IpNw6rv3p8z33Yr9mg/jJU890z7ltvaZc42fZzc5EbhEOW LL07t3ZnnKAz4lg0V5UumYNgG5SU+9REqxNMXlinKDzzV6H4/Vs7Alcg17ZHovQszWN7 BnrA== 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=eCH7m2rNk1CrTPl5u9+ZOynuyIFWUez8QntUwDuu0Dw=; fh=Zk0ELET1Hi0FEujvdGpsKrIgC+IXoWi+z5U+xyZAW18=; b=kOwzL3/2d9O+pHYONTLcs+U4R6uGDLAtLdzZcmcZu89bzlZki4VXDzuZ5k2p6pZDG6 b8irwoWi1SBi239o36iC6PiSIU/sZblwWLouh1qAWETFc11ki6+cSe5wGre2+P57uG12 wF0zwAeHxm9Y5p1Riq09rNOT0fSJ7/lLE+p0sqmEUg1oK6vWq+8ayn/3iM7tLcmTvnj9 xTh9Mny9DYURx6gOORwXrdKhPEb+uNVzkdw46sFlQWBiJb8WaV+Kk6Tx5hJ5PCfuMnZ1 2yJPGIFZmH0gePYov1olPVqSm1u8Qhec/IhQg//he6NfJ3A0xwLj20Tv35JQIw2lonos 3hxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=iwVmSkfv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id i189-20020a6387c6000000b005bd39fc1ebesi10101934pge.223.2023.11.15.04.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 04:20:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=iwVmSkfv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 70BD0802B3E5; Wed, 15 Nov 2023 04:20:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343585AbjKOMUt (ORCPT + 99 others); Wed, 15 Nov 2023 07:20:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234680AbjKOMUs (ORCPT ); Wed, 15 Nov 2023 07:20:48 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF967122 for ; Wed, 15 Nov 2023 04:20:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=eCH7m2rNk1CrTPl5u9+ZOynuyIFWUez8QntUwDuu0Dw=; b=iwVmSkfvYYgKa8Ht4RBuBXjKY8 tbh7ezXj14y3wXt51vjYnLZ0oyprUlD5uPMMLZVXmNb68tx4VR1GsqlRGw0JlpjpRahwFpqRStnWZ m/AIsdtSeX/5ThgBOoir7DOxZYsitY/3b2XVpb3BcGNKLuRnWboJ0iE/nzv/28EL+x2FhA3tduIpp hp9niBDnoXN9hPSodUenEwVJd3G2FXRcUvyEExFkcfs5S9CbPyPW/RLEvCFoYmCQgzxRx9CRYQfdR Jr2Z0vKnEuOfvwFXmUkqu6GVgWCrfzrB85CMpGOXJ/l1K+xbTMyPrIW8wRCHWg2Y+Sk9Pj0dBrTrC 1CaXSeqA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1r3Ese-00E7gI-6o; Wed, 15 Nov 2023 12:20:28 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id D85AD300427; Wed, 15 Nov 2023 13:20:27 +0100 (CET) Date: Wed, 15 Nov 2023 13:20:27 +0100 From: Peter Zijlstra To: Cruz Zhao Cc: mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, joel@joelfernandes.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] sched/fair: introduce core_vruntime and core_min_vruntime Message-ID: <20231115122027.GZ8262@noisy.programming.kicks-ass.net> References: <20231115113341.13261-1-CruzZhao@linux.alibaba.com> <20231115113341.13261-4-CruzZhao@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231115113341.13261-4-CruzZhao@linux.alibaba.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 15 Nov 2023 04:20:55 -0800 (PST) On Wed, Nov 15, 2023 at 07:33:40PM +0800, Cruz Zhao wrote: > To compare the priority of sched_entity from different cpus of a core, > we introduce core_vruntime to struct sched_entity and core_min_vruntime > to struct cfs_rq. > > cfs_rq->core->core_min_vruntime records the min vruntime of the cfs_rqs > of the same task_group among the core, and se->core_vruntime is the > vruntime relative to se->cfs_rq->core->core_min_vruntime. But that makes absolutely no sense. vruntime of different RQs can advance at wildly different rates. Not to mention there's this random offset between them. No, this cannot be.