From: Tejun Heo <tj@kernel.org>
To: Dan Schatzberg <schatzberg.dan@gmail.com>
Cc: Zefan Li <lizefan.x@bytedance.com>,
Johannes Weiner <hannes@cmpxchg.org>, Boris Burkov <boris@bur.io>,
"open list:CONTROL GROUP (CGROUP)" <cgroups@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] cgroup: Fix rootcg cpu.stat guest double counting
Date: Mon, 1 Nov 2021 06:48:25 -1000 [thread overview]
Message-ID: <YYAaWaYzyqloDRQY@slm.duckdns.org> (raw)
In-Reply-To: <20211028221528.2174284-1-schatzberg.dan@gmail.com>
On Thu, Oct 28, 2021 at 03:15:27PM -0700, Dan Schatzberg wrote:
> In account_guest_time in kernel/sched/cputime.c guest time is
> attributed to both CPUTIME_NICE and CPUTIME_USER in addition to
> CPUTIME_GUEST_NICE and CPUTIME_GUEST respectively. Therefore, adding
> both to calculate usage results in double counting any guest time at
> the rootcg.
>
> Fixes: 936f2a70f207 ("cgroup: add cpu.stat file to root cgroup")
> Signed-off-by: Dan Schatzberg <schatzberg.dan@gmail.com>
Applying to cgroup/for-5.16.
Thanks.
--
tejun
prev parent reply other threads:[~2021-11-01 16:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-28 22:15 Dan Schatzberg
2021-10-29 17:21 ` Daniel Jordan
2021-11-15 16:41 ` Andrey Ryabinin
2021-11-01 16:48 ` Tejun Heo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YYAaWaYzyqloDRQY@slm.duckdns.org \
--to=tj@kernel.org \
--cc=boris@bur.io \
--cc=cgroups@vger.kernel.org \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan.x@bytedance.com \
--cc=schatzberg.dan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®