From: "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com>
To: Paul Mackerras <paulus@ozlabs.org>
Cc: linuxppc-dev@lists.ozlabs.org, Jeremy Kerr <jk@ozlabs.org>,
Steven Rostedt <rostedt@goodmis.org>,
Nathan Fontenot <nfont@linux.vnet.ibm.com>
Subject: Re: [PATCH v1 3/5] powerpc/pseries: Fix stolen time accounting when dtl debugfs is used
Date: Fri, 26 Oct 2018 13:10:42 +0530 [thread overview]
Message-ID: <1540537881.qtnejr69k7.naveen@linux.ibm.com> (raw)
In-Reply-To: <20181025210807.GA23232@blackberry>
Paul Mackerras wrote:
> On Fri, Oct 26, 2018 at 01:55:44AM +0530, Naveen N. Rao wrote:
>> When the dtl debugfs interface is used, we usually set the
>> dtl_enable_mask to 0x7 (DTL_LOG_ALL). When this happens, we start seeing
>> DTL entries for all preempt reasons, including CEDE. In
>> scan_dispatch_log(), we add up the times from all entries and account
>> those towards stolen time. However, we should only be accounting stolen
>> time when the preemption was due to HDEC at the end of our time slice.
>
> It's always been the case that stolen time when idle has been
> accounted as idle time, not stolen time. That's why we didn't check
> for this in the past.
>
> Do you have a test that shows different results (as in reported idle
> and stolen times) with this patch compared to without?
Ah ok, that makes sense now and explains why I couldn't observe much of
a difference in practice. However, I also went by the fact that there
are 7 other preemption reasons, which could impact our calculation.
Looking at the list again, it looks like H_CONFER/H_PROD and some faults
can also have an impact here, though they may be rare?
Thanks,
Naveen
next prev parent reply other threads:[~2018-10-26 7:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-25 20:25 [PATCH v1 0/5] Add dtl_entry tracepoint Naveen N. Rao
2018-10-25 20:25 ` [PATCH v1 1/5] powerpc/pseries: Use macros for referring to the DTL enable mask Naveen N. Rao
2018-10-25 20:25 ` [PATCH v1 2/5] powerpc/pseries: Do not save the previous DTL mask value Naveen N. Rao
2018-10-25 20:25 ` [PATCH v1 3/5] powerpc/pseries: Fix stolen time accounting when dtl debugfs is used Naveen N. Rao
2018-10-25 21:08 ` Paul Mackerras
2018-10-26 7:40 ` Naveen N. Rao [this message]
2018-10-25 20:25 ` [PATCH v1 4/5] powerpc/pseries: Factor out DTL buffer allocation and registration routines Naveen N. Rao
2018-10-25 20:25 ` [PATCH v1 5/5] powerpc/pseries: Introduce dtl_entry tracepoint Naveen N. Rao
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=1540537881.qtnejr69k7.naveen@linux.ibm.com \
--to=naveen.n.rao@linux.vnet.ibm.com \
--cc=jk@ozlabs.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=nfont@linux.vnet.ibm.com \
--cc=paulus@ozlabs.org \
--cc=rostedt@goodmis.org \
/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;
as well as URLs for NNTP newsgroup(s).