* [Fuego] [PATCH v2] Benchmark.cyclictest: add a warning for rt
@ 2018-11-02 3:34 Li Xiaoming
2018-11-03 0:15 ` Tim.Bird
0 siblings, 1 reply; 4+ messages in thread
From: Li Xiaoming @ 2018-11-02 3:34 UTC (permalink / raw)
To: fuego
details: add a warning if CONFIG_RT_GROUP_SCHED enabled in kernel.
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
---
engine/tests/Benchmark.cyclictest/fuego_test.sh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/engine/tests/Benchmark.cyclictest/fuego_test.sh b/engine/tests/Benchmark.cyclictest/fuego_test.sh
index 319f361..d233b87 100755
--- a/engine/tests/Benchmark.cyclictest/fuego_test.sh
+++ b/engine/tests/Benchmark.cyclictest/fuego_test.sh
@@ -4,6 +4,14 @@ NEED_ROOT=1
function test_pre_check {
assert_define BENCHMARK_CYCLICTEST_PARAMS
+
+ if check_kconfig "CONFIG_RT_GROUP_SCHED=y"; then
+ echo "WARNING: CONFIG_RT_GROUP_SCHED enabled in your kernel. Please check the RT"
+ echo "settings as following if this test failed with 'Unable to change scheduling policy'."
+ echo "- If the user does not need the RT groups functionality, disable CONFIG_RT_GROUP_SCHED and compile the kernel again, or 'sysctl -w kernel.sched_rt_runtime_us=-1'"
+ echo "- If the user does want to use RT groups functionality, put the sshd daemon into a cgroup with assigned runtime"
+ fi
+
}
function test_build {
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Fuego] [PATCH v2] Benchmark.cyclictest: add a warning for rt
2018-11-02 3:34 [Fuego] [PATCH v2] Benchmark.cyclictest: add a warning for rt Li Xiaoming
@ 2018-11-03 0:15 ` Tim.Bird
2018-11-05 5:26 ` Daniel Sangorrin
0 siblings, 1 reply; 4+ messages in thread
From: Tim.Bird @ 2018-11-03 0:15 UTC (permalink / raw)
To: lixm.fnst, fuego
> -----Original Message-----
> From: Li Xiaoming on Thursday, November 01, 2018 8:35 PM
>
> details: add a warning if CONFIG_RT_GROUP_SCHED enabled in kernel.
>
> Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
> ---
> engine/tests/Benchmark.cyclictest/fuego_test.sh | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/engine/tests/Benchmark.cyclictest/fuego_test.sh
> b/engine/tests/Benchmark.cyclictest/fuego_test.sh
> index 319f361..d233b87 100755
> --- a/engine/tests/Benchmark.cyclictest/fuego_test.sh
> +++ b/engine/tests/Benchmark.cyclictest/fuego_test.sh
> @@ -4,6 +4,14 @@ NEED_ROOT=1
>
> function test_pre_check {
> assert_define BENCHMARK_CYCLICTEST_PARAMS
> +
> + if check_kconfig "CONFIG_RT_GROUP_SCHED=y"; then
> + echo "WARNING: CONFIG_RT_GROUP_SCHED enabled in your kernel.
> Please check the RT"
> + echo "settings as following if this test failed with 'Unable to change
> scheduling policy'."
> + echo "- If the user does not need the RT groups functionality, disable
> CONFIG_RT_GROUP_SCHED and compile the kernel again, or 'sysctl -w
> kernel.sched_rt_runtime_us=-1'"
> + echo "- If the user does want to use RT groups functionality, put the
> sshd daemon into a cgroup with assigned runtime"
This last bullet point seems to be missing a word. I don't understand it.
Can you please describe more what it means to "put the ssh daemon into a cgroup with
assigned runtime"?
> + fi
> +
> }
>
> function test_build {
> --
> 2.7.4
I applied this patch, but some more clarity in the wording might be nice.
-- Tim
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Fuego] [PATCH v2] Benchmark.cyclictest: add a warning for rt
2018-11-03 0:15 ` Tim.Bird
@ 2018-11-05 5:26 ` Daniel Sangorrin
2018-11-09 1:25 ` Tim.Bird
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Sangorrin @ 2018-11-05 5:26 UTC (permalink / raw)
To: Tim.Bird, lixm.fnst, fuego
Hi Tim,
> -----Original Message-----
> From: fuego-bounces@lists.linuxfoundation.org
> <fuego-bounces@lists.linuxfoundation.org> On Behalf Of Tim.Bird@sony.com
> Sent: Saturday, November 3, 2018 9:15 AM
> To: lixm.fnst@cn.fujitsu.com; fuego@lists.linuxfoundation.org
> Subject: Re: [Fuego] [PATCH v2] Benchmark.cyclictest: add a warning for rt
>
>
>
> > -----Original Message-----
> > From: Li Xiaoming on Thursday, November 01, 2018 8:35 PM
> >
> > details: add a warning if CONFIG_RT_GROUP_SCHED enabled in kernel.
> >
> > Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
> > ---
> > engine/tests/Benchmark.cyclictest/fuego_test.sh | 8 ++++++++
> > 1 file changed, 8 insertions(+)
> >
> > diff --git a/engine/tests/Benchmark.cyclictest/fuego_test.sh
> > b/engine/tests/Benchmark.cyclictest/fuego_test.sh
> > index 319f361..d233b87 100755
> > --- a/engine/tests/Benchmark.cyclictest/fuego_test.sh
> > +++ b/engine/tests/Benchmark.cyclictest/fuego_test.sh
> > @@ -4,6 +4,14 @@ NEED_ROOT=1
> >
> > function test_pre_check {
> > assert_define BENCHMARK_CYCLICTEST_PARAMS
> > +
> > + if check_kconfig "CONFIG_RT_GROUP_SCHED=y"; then
> > + echo "WARNING: CONFIG_RT_GROUP_SCHED enabled in your kernel.
> > Please check the RT"
> > + echo "settings as following if this test failed with 'Unable to change
> > scheduling policy'."
> > + echo "- If the user does not need the RT groups functionality, disable
> > CONFIG_RT_GROUP_SCHED and compile the kernel again, or 'sysctl -w
> > kernel.sched_rt_runtime_us=-1'"
> > + echo "- If the user does want to use RT groups functionality, put the
> > sshd daemon into a cgroup with assigned runtime"
>
> This last bullet point seems to be missing a word. I don't understand it.
>
> Can you please describe more what it means to "put the ssh daemon into a cgroup
> with
> assigned runtime"?
Sorry about that. How about using this wording?
"Assign the ssh daemon service a realtime budget by specifying the cpu.rt_runtime_us attribute."
For a longer desciption check here:
https://www.freedesktop.org/wiki/Software/systemd/MyServiceCantGetRealtime/
A third option is to simply assign your service a realtime budget. For that use ControlGroupAttribute=cpu.rt_runtime_us 500000 in its [Service] or suchlike. See the kernel documentation for details. The latter two options are not available for System V services. A possible solution is to write a small wrapper service file that simply calls the SysV script's start verb in ExecStart= and the stop verb in ExecStop=. (It also needs to set RemainAfterExit=1 and Type=forking!)
Thanks,
Daniel
>
> > + fi
> > +
> > }
> >
> > function test_build {
> > --
> > 2.7.4
>
>
> I applied this patch, but some more clarity in the wording might be nice.
> -- Tim
>
> _______________________________________________
> Fuego mailing list
> Fuego@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/fuego
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Fuego] [PATCH v2] Benchmark.cyclictest: add a warning for rt
2018-11-05 5:26 ` Daniel Sangorrin
@ 2018-11-09 1:25 ` Tim.Bird
0 siblings, 0 replies; 4+ messages in thread
From: Tim.Bird @ 2018-11-09 1:25 UTC (permalink / raw)
To: daniel.sangorrin, lixm.fnst, fuego
> -----Original Message-----
> From: Daniel Sangorrin
> Hi Tim,
>
> > -----Original Message-----
> > From: Tim Bird
> >
> > > -----Original Message-----
> > > From: Li Xiaoming on Thursday, November 01, 2018 8:35 PM
> > >
> > > details: add a warning if CONFIG_RT_GROUP_SCHED enabled in kernel.
> > >
> > > Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
> > > ---
> > > engine/tests/Benchmark.cyclictest/fuego_test.sh | 8 ++++++++
> > > 1 file changed, 8 insertions(+)
> > >
> > > diff --git a/engine/tests/Benchmark.cyclictest/fuego_test.sh
> > > b/engine/tests/Benchmark.cyclictest/fuego_test.sh
> > > index 319f361..d233b87 100755
> > > --- a/engine/tests/Benchmark.cyclictest/fuego_test.sh
> > > +++ b/engine/tests/Benchmark.cyclictest/fuego_test.sh
> > > @@ -4,6 +4,14 @@ NEED_ROOT=1
> > >
> > > function test_pre_check {
> > > assert_define BENCHMARK_CYCLICTEST_PARAMS
> > > +
> > > + if check_kconfig "CONFIG_RT_GROUP_SCHED=y"; then
> > > + echo "WARNING: CONFIG_RT_GROUP_SCHED enabled in your
> kernel.
> > > Please check the RT"
> > > + echo "settings as following if this test failed with 'Unable to change
> > > scheduling policy'."
> > > + echo "- If the user does not need the RT groups functionality,
> disable
> > > CONFIG_RT_GROUP_SCHED and compile the kernel again, or 'sysctl -w
> > > kernel.sched_rt_runtime_us=-1'"
> > > + echo "- If the user does want to use RT groups functionality, put the
> > > sshd daemon into a cgroup with assigned runtime"
> >
> > This last bullet point seems to be missing a word. I don't understand it.
> >
> > Can you please describe more what it means to "put the ssh daemon into a
> cgroup
> > with
> > assigned runtime"?
>
> Sorry about that. How about using this wording?
>
> "Assign the ssh daemon service a realtime budget by specifying the
> cpu.rt_runtime_us attribute."
I changed the wording to something close to this.
Thanks,
-- Tim
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-11-09 1:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-02 3:34 [Fuego] [PATCH v2] Benchmark.cyclictest: add a warning for rt Li Xiaoming
2018-11-03 0:15 ` Tim.Bird
2018-11-05 5:26 ` Daniel Sangorrin
2018-11-09 1:25 ` Tim.Bird
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.