From: Crystal Wood <crwood@redhat.com>
To: Gabriele Monaco <gmonaco@redhat.com>, John Kacur <jkacur@redhat.com>
Cc: Clark Williams <williams@redhat.com>,
Tomas Glozar <tglozar@redhat.com>,
linux-rt-users@vger.kernel.org
Subject: Re: [PATCH] rteval: Allow configuration from stdin
Date: Thu, 16 Jan 2025 14:56:00 -0600 [thread overview]
Message-ID: <775f239d3485831f19499b8defee56e25ddc8d14.camel@redhat.com> (raw)
In-Reply-To: <01904166f9337db39745149e53ef0d410c2cbcef.camel@redhat.com>
On Thu, 2025-01-16 at 07:45 +0100, Gabriele Monaco wrote:
>
> On Wed, 2025-01-15 at 20:14 -0500, Crystal Wood wrote:
> > On Tue, 2025-01-14 at 18:07 -0500, John Kacur wrote:
> > > Now, you wouldn't HAVE to use them, currently timerlat is the
> > > default, so if you don't specify, then it would use the default.
> > >
> > > Like with stress-ng and the load modules, if a person tried to
> > > use a cyclictest and a timerlat option at the sametime, it should
> > > create an error and exit.
> > >
> > > I like the above idea, because other than the optional option of
> > > --cyclictest and --timerlat, nothing else changes, so it wouldn't
> > > break anybody's scripts in any kind of major way.
> >
> > None of these proposals should break existing scripts, assuming we
> > don't
> > change the defaults. Removing config file support, OTOH, would force
> > people still using cyclictest to start specifying it on the command
> > line
> > one way or another.
>
> Strictly speaking, enabling timerlat as the default measurement module
> did break existing scripts, that's what brought me to start this patch
> in the first place.
By "these proposals" I meant the command line stuff in this thread.
>
> I agree that we should try to keep the same behaviour with respect to
> default values, no measurement module specified via command line should
> be the same as no measurement section in the config files, as
> specifying only one should disable the other. Specifying both should be
> allowed.
Why should specifying both be allowed? We go out of our way to prevent
that, because they'll interfere with one another's latencies.
>
> I see the command line as another setup that should override the config
> file, while behaving exactly the same (where the notation --
> measurement-modules would indeed be a bit more familiar, but I still
> like --cyclictest/--timerlat).
>
> The order could be: command-line > explicit config file (-f) > default
> config file (/etc) > default values, this wouldn't affect the behaviour
> much.
It's not the same, since the command line would only override individual
options, while a config file replaces all defaults (at least when it
comes to enabling modules, not sure about other defaults).
> I see the simplest thing for now is to start with command-line options
> for measurement only. After we consolidate that, we can do the same for
> loads (with or without special cases).
What makes loads harder?
-Crystal
prev parent reply other threads:[~2025-01-16 20:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-13 12:18 [PATCH] rteval: Allow configuration from stdin Gabriele Monaco
2025-01-13 12:30 ` Tomas Glozar
2025-01-13 21:34 ` John Kacur
2025-01-14 6:40 ` Gabriele Monaco
2025-01-14 19:50 ` Crystal Wood
2025-01-14 23:07 ` John Kacur
2025-01-16 1:14 ` Crystal Wood
2025-01-16 6:45 ` Gabriele Monaco
2025-01-16 20:56 ` Crystal Wood [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=775f239d3485831f19499b8defee56e25ddc8d14.camel@redhat.com \
--to=crwood@redhat.com \
--cc=gmonaco@redhat.com \
--cc=jkacur@redhat.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=tglozar@redhat.com \
--cc=williams@redhat.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;
as well as URLs for NNTP newsgroup(s).