From: John Ogness <john.ogness@linutronix.de>
To: Daniel Wagner <wagi@monom.org>,
Steven Rostedt <rostedt@goodmis.org>,
Tomas Glozar <tglozar@redhat.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Clark Williams <clrkwllms@kernel.org>
Cc: linux-trace-kernel@vger.kernel.org,
linux-rt-devel@lists.linux.dev, Daniel Wagner <wagi@monom.org>
Subject: Re: [PATCH v2] rtla/timerlat: Lock the memory of the user-space threads
Date: Fri, 13 Nov 2026 16:02:26 +0106 [thread overview]
Message-ID: <87o6bswzj9.fsf@jogness.linutronix.de> (raw)
In-Reply-To: <20261113-rtla-mlock-v2-1-14382f140da0@monom.org>
Hi Daniel,
On 2026-11-13, Daniel Wagner <wagi@monom.org> wrote:
> diff --git a/tools/tracing/rtla/src/timerlat_u.c b/tools/tracing/rtla/src/timerlat_u.c
> index c80edaf07b00..5e7a23fb9fc3 100644
> --- a/tools/tracing/rtla/src/timerlat_u.c
> +++ b/tools/tracing/rtla/src/timerlat_u.c
> @@ -37,6 +38,13 @@ static int timerlat_u_main(int cpu, struct timerlat_u_params *params)
> cpu_set_t set;
> int retval;
>
> + /*
> + * Fault in and lock all memory before switching to a real-time
> + * priority, so that page faults don't show up as latency.
> + */
It isn't because the page faults show up as latencies. It is because
doing non-real-time work with a real-time priority is stealing the CPU
away from other real-time tasks that presumably have actual real-time
work to do.
This program peforms severeal non-real-time activities with the
real-time priority, which is not setting a good example. But I am only
reviewing your patch, not the full source.
John
next prev parent reply other threads:[~2026-11-13 14:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 14:03 [PATCH v2] rtla/timerlat: Lock the memory of the user-space threads Daniel Wagner
2026-11-13 14:56 ` John Ogness [this message]
2026-11-13 15:12 ` Tomas Glozar
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=87o6bswzj9.fsf@jogness.linutronix.de \
--to=john.ogness@linutronix.de \
--cc=bigeasy@linutronix.de \
--cc=clrkwllms@kernel.org \
--cc=linux-rt-devel@lists.linux.dev \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=tglozar@redhat.com \
--cc=wagi@monom.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