Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2558574rdf; Mon, 6 Nov 2023 19:40:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IEi019Oe4y36xoAW3F2tzhzjDUeOqWRZkd7+d4LLzIa8yAFPYEUQ6G/XcfK8mEznXU3RUue X-Received: by 2002:a05:620a:2b82:b0:778:9713:9d7 with SMTP id dz2-20020a05620a2b8200b00778971309d7mr29281868qkb.77.1699328402624; Mon, 06 Nov 2023 19:40:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699328402; cv=none; d=google.com; s=arc-20160816; b=ImpALo/gpjrstOrt0bcjXjd13A4sIWMHlPDVSLf7OcB+6EZqpkX2YzwKMfDy6Hv+HF SUhbrBzzazkh4tKTKKgsAKRfBOJeraywzz/p0TKkLesCYDCJFjRrPVFdldnfWHQvpi4p 7FgWvoWlOxgett/oy830x7lWRePZaZMtvu5dmEotfEXTmxWa4JNVyuEk7u/V5aVz6br9 gaA8DSc/iPlg6uYd8Jw6T6TfYJwVqru7OAhl+Fyt7WBxi3ZK4NIbyet25zz/Or3kfgB9 AyGlwJaV4r3a/tc7pVe5kI1mkZ4LvlXfxhntD7xprTGOJTKVdfF9DWgfBlf6o8v+hlq7 1KIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=8PKmstvb0ff22Q1AFku56d76MXLLkElKv6tORUPheNs=; fh=/he3ZEV5UulUEHn+2QRhf917UP9mb5MI8b1A6DTpRHA=; b=NQ9Ek8bOQOcqDz5lmddTXwaoa6mY5CA6c56uweG3iCMFkL4Zz9IXJ996gkkOpWeCJw +H0f3UQpTohKX4Qa6ci2Lmc7aWOMtJxj8AOTom6TcvBPD2uMcfdAC4j5fqIo2W150UJH UveC68dbBX1bDfc/xfW+EWP9MK4+6sQe/O/Df0fwaHiKtGsH1GUs5EYddTCZ6iskXqv0 S704OMMn5vexJ1BuvFlzrbS+SH4qMaFYcwEAZa7tsp8X1Ga+YOqrHFn1OwP/fCsYX3SF UcgYWNVpNc8KKu57XsmvQorazrCI2KNXRpRShGu4vm9EKzpWbZoPXdqIu25AzEme/xih xxvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="lQeu6/T4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id lk5-20020a17090b33c500b0027ce8bab3b4si10798290pjb.113.2023.11.06.19.40.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 19:40:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="lQeu6/T4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id AA529810659A; Mon, 6 Nov 2023 19:40:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233009AbjKGDkA (ORCPT + 99 others); Mon, 6 Nov 2023 22:40:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230208AbjKGDj7 (ORCPT ); Mon, 6 Nov 2023 22:39:59 -0500 Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E78F10A for ; Mon, 6 Nov 2023 19:39:56 -0800 (PST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1699328394; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8PKmstvb0ff22Q1AFku56d76MXLLkElKv6tORUPheNs=; b=lQeu6/T4HgHZ4KpAD6qdP19dd1xmVw8HL9TO0y5Jl6UFRS09xFKnrxnWKugvw7jxhAnzDo jV4XMQ0++B2rJCscZzE6U5mrbZWUy4TdOiPh04dUfFmnZCLPHDZgk7ZWQ1qj0eUNps2c93 RWYvUWI2VkYvUN9mS0SQtIjIyTpuNO4= Date: Tue, 7 Nov 2023 11:39:42 +0800 MIME-Version: 1.0 Subject: Re: [PATCH v3 0/3] Use update_current_exec_runtime simplify code Content-Language: en-US To: Peter Zijlstra 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, linux-kernel@vger.kernel.org References: <20231031125928.235685-1-yajun.deng@linux.dev> <20231106123539.GL8262@noisy.programming.kicks-ass.net> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yajun Deng In-Reply-To: <20231106123539.GL8262@noisy.programming.kicks-ass.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 06 Nov 2023 19:40:01 -0800 (PST) On 2023/11/6 20:35, Peter Zijlstra wrote: > On Tue, Oct 31, 2023 at 08:59:25PM +0800, Yajun Deng wrote: >> update_current_exec_runtime would update execution time for each task, >> we can use update_current_exec_runtime simplify code. >> >> The 1st and 2nd patch update update_current_exec_runtime() applies to all >> callers. >> The 3rd patch use update_current_exec_runtime simplify update_curr. >> >> Yajun Deng (3): >> sched: Don't account execution time for task group >> sched: Don't trace stat runtime for task group >> sched/fair: Simplify update_curr() >> >> kernel/sched/deadline.c | 4 +--- >> kernel/sched/fair.c | 13 +++---------- >> kernel/sched/rt.c | 5 ++--- >> kernel/sched/sched.h | 11 +++++++---- >> kernel/sched/stop_task.c | 2 +- >> 5 files changed, 14 insertions(+), 21 deletions(-) > > Hurmph, so I'm having conflicts against this: > > https://lkml.kernel.org/r/54d148a144f26d9559698c4dd82d8859038a7380.1699095159.git.bristot@kernel.org > > (obviously).. I've resolved the first patch, which also mostly includes > the second patch. > > However, your second patch isn't entirely right, it now unconditionally > traces ->vruntime, which isn't the same. Imagine a regular task getting > a PI boost to RT, in that case ->vruntime will be non-zero and the RT > task will now be logging a vruntime. > > Anyway, that tracepoint doesn't really make sense to me anyway, that is, > it logs a delta_exec and an absolute vruntime, that's inconsistent. > Also, a delta vruntime can be easily computed because the weight should > be known. > > I think I'm going to simply remove the vruntime from that tracepoint and > avoid the whole problem. > > This then also makes resolving patch 3 easier. > > Let me go squish all this and then I'll post a link to whatever came > out. Got it, thanks!