From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F580C2B9F4 for ; Mon, 28 Jun 2021 14:13:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3051E61C76 for ; Mon, 28 Jun 2021 14:13:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232447AbhF1OP3 (ORCPT ); Mon, 28 Jun 2021 10:15:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:51002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230033AbhF1OP2 (ORCPT ); Mon, 28 Jun 2021 10:15:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 629B361C75; Mon, 28 Jun 2021 14:13:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624889582; bh=10OGvJ3sV5SvCdwDzuwVsEK0pFrJzuzIqJkU4Gcps6w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fanLLj7weVcWfc7hX6CBz3vT3zNr4JjKaMFYB6fHBl2d1b6yO1kweoa+5bkknFj8Z Bs+evzbqWlyOP2RSMVmCdQeP6yqC0Hc6tDE/LLNNcSxqb69FCnkPrPlumXpY3MlEV0 qx18nmQaDOvwl/f2l5jYFtCIItIAOwzf3VgEm9jtiPZJNcow0PyL+fsd7INsYIvAFb 2xiccBDaL4myquws9eRxZFOCyvuXrki1cU0BXgIISsuVZRjqNyE+j2RevUzacRAGvq Xo7hqJICXsOrAPCfJbv/LAg7cwYxJEbAkKDL9+oOKY2kBWT0XxdkJmnpewKOC7EaCO Dc3bN26Sopnjg== Date: Mon, 28 Jun 2021 16:13:00 +0200 From: Frederic Weisbecker To: "hasegawa-hitomi@fujitsu.com" Cc: Peter Zijlstra , "'mgorman@suse.de'" , "'mingo@kernel.org'" , "'tglx@linutronix.de'" , "'juri.lelli@redhat.com'" , "'vincent.guittot@linaro.org'" , "'fweisbec@gmail.com'" , "'dietmar.eggemann@arm.com'" , "'rostedt@goodmis.org'" , "'bsegall@google.com'" , "'bristot@redhat.com'" , "'linux-kernel@vger.kernel.org'" Subject: Re: Utime and stime are less when getrusage (RUSAGE_THREAD) is executed on a tickless CPU. Message-ID: <20210628141300.GA5710@lothringen> References: <20210616125452.GE801071@lothringen> 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 Mon, Jun 28, 2021 at 02:36:27AM +0000, hasegawa-hitomi@fujitsu.com wrote: > Hi Frederic, Peter, and Mel > > > I tested this and confirmed that it gives accurate values. > > Also, task_sched_runtime () is done only on nohz_full CPU, so I think > > it's a better idea than before. > > I hope you will incorporate this fix into your mainline. > > I have also confirmed that CPUs other than nohz_full have very little overhead. > Please consider merging it into the mainline. Ok, I'm going to submit a proper patch. Thanks!