Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3685681pxv; Mon, 28 Jun 2021 10:15:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnhi6N2RUqVLh6pM7XFkahCU7E1qza3fUrdg9UodbGm0vbRZ8GBoacoDpOeRWxW9V4EeZG X-Received: by 2002:a05:6402:50cb:: with SMTP id h11mr34017089edb.97.1624900524120; Mon, 28 Jun 2021 10:15:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624900524; cv=none; d=google.com; s=arc-20160816; b=EbDcPwtUmefoujDNWZA0lnAE/2+G3gACcecv+ZFQRCkMTy5v6Jy3ndpymUnmq5zXzd //quMf7X7R4xK04bdp2upKcJ2xcAe8MV9URw61nFfSLiDXP29RVl2/P8BR+G76oimsz6 w0fjcI2sjLkGCOnN8C5vAdTS5gMhpkr01rUAKMzfYTkwpWRGCEQ3xaDRzN43Np+g6/Ko JNh/g2Bn7r9vaJSBfmu8aSbtK3HpzKb4sso3PAXfb3MVCwn7J0cxW/SK4BdW8W3lEsiH TgmB6Slf6+mdLFGzROMe+46yBS9U3lt0ZS/oSpzrQ1rFDLgV/ygt/cWHdix0nYRd8JWC BdOA== 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=hPE/OOAE1ATq4rv4u3mmnyGJYSm+Pz2nfebYiUlb8TU=; b=F5IrfgkQgSz1pO/no76QmFYOl7fIyIru5jJ3zticJyjrwX7086JsPeF+UZLQ27y3Tz +qYOC0epGNy8zebrHLeYnYrlXRvKwjTIYXcO8irAGR+P9Whgpthk3nQG1t1vaEpLyrGo oHHq51+Lf+9Lt8VAz+3ullxOfyiNv8o01YYmrOVbX3wlH4HkH8BW2ITozNpQtLjCDxuT sytR5eKfG6DnzOivJFcIGABu2Wz3GQnrFcm8AWI1IHbNkSOuq0l7gtWdpe0xFBiqaxqJ dNC03sf3rM1hcatRiqlSvacYruhiOT+UmRFyeuA1eqA0/993gFveGsJNZBhBCKHN1GsI 3P8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fanLLj7w; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q6si13819201edw.285.2021.06.28.10.14.58; Mon, 28 Jun 2021 10:15:24 -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=@kernel.org header.s=k20201202 header.b=fanLLj7w; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232438AbhF1OP3 (ORCPT + 99 others); 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!