From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Tomas Glozar <tglozar@redhat.com>
Cc: Crystal Wood <crwood@redhat.com>, John Kacur <jkacur@redhat.com>,
linux-rt-users@vger.kernel.org, williams@redhat.com
Subject: Re: [PATCH v2 2/3] rt-tests: cyclictest: Support idle state disabling via libcpupower
Date: Fri, 6 Dec 2024 15:41:24 +0100 [thread overview]
Message-ID: <20241206144124.dd-I-U47@linutronix.de> (raw)
In-Reply-To: <CAP4=nvSjcZ14e_bpGaab-Epu_FupXzCi0ovG5hbih1fjhwOTOg@mail.gmail.com>
On 2024-12-06 13:14:02 [+0100], Tomas Glozar wrote:
> pá 6. 12. 2024 v 12:52 odesílatel Sebastian Andrzej Siewior
> <bigeasy@linutronix.de> napsal:
> > What is the default behaviour and what is the intended behaviour?
> > Couldn't we somehow avoid adding yet another option?
>
> The default behavior is to hold /dev/cpu_dma_latency at zero, which
> disables all idle states on all CPUs, not only those on which
> cyclictest measurements are running. This has the disadvantage of a
> higher power consumption than needed in most cases. With
> --deepest-idle-state, idle states are limited only on CPUs cyclictest
> is running on.
This is a real use case? /dev/cpu_dma_latency is a big hammer to disable
everything that might cause latency.
So you have 4 CPUs, CPU0 is getting idle from time to time and CPU1-3 is
doing RT work so it can't take sleep?
> There are two reasons why we can't just use the latter and have to
> have options for both. Firstly, some hardware does not support
> disabling idle states on individual CPUs via the cpuidle sysfs
> interface, which is used by --deepest-idle-state. Secondly, latencies
> measured with --deepest-idle-state might still be higher in some cases
> compared to holding /dev/cpu_dma_latency.
Yes. Especially if you find power management thingy that is covered by
cpu_dma_latency but not by this new switch.
> Tomas
Sebastian
next prev parent reply other threads:[~2024-12-06 14:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-13 11:45 [PATCH v2 0/3] rt-tests: cyclictest: Support idle state disabling via libcpupower tglozar
2024-11-13 11:45 ` [PATCH v2 1/3] rt-tests: Detect libcpupower presence tglozar
2024-11-13 11:45 ` [PATCH v2 2/3] rt-tests: cyclictest: Support idle state disabling via libcpupower tglozar
2024-11-26 22:29 ` John Kacur
2024-11-27 0:08 ` Crystal Wood
2024-11-27 9:45 ` Tomas Glozar
2024-11-27 15:51 ` John Kacur
2024-12-06 11:52 ` Sebastian Andrzej Siewior
2024-12-06 12:14 ` Tomas Glozar
2024-12-06 14:41 ` Sebastian Andrzej Siewior [this message]
2024-12-06 15:29 ` John Kacur
2024-11-27 15:47 ` John Kacur
2024-12-02 19:30 ` Crystal Wood
2024-11-13 11:45 ` [PATCH v2 3/3] rt-tests: cyclictest: Add --deepest-idle-state to manpage tglozar
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=20241206144124.dd-I-U47@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=crwood@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