From: Philippe Gerum <rpm@xenomai.org>
To: Tobias Schaffner <tobias.schaffner@siemens.com>
Cc: xenomai@lists.linux.dev, jan.kiszka@siemens.com
Subject: Re: [libevl][PATCH 4/4] evl-test: Add hectic for real-time stress
Date: Thu, 13 Jun 2024 16:26:13 +0200 [thread overview]
Message-ID: <87bk44rka1.fsf@xenomai.org> (raw)
In-Reply-To: <20240613134557.4013044-5-tobias.schaffner@siemens.com>
Tobias Schaffner <tobias.schaffner@siemens.com> writes:
> The -r option allows to add realtime-stress by running hectic in the
> background while running the tests.
>
> Signed-off-by: Tobias Schaffner <tobias.schaffner@siemens.com>
> ---
> utils/evl-test | 14 +++++++++++++-
> 1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/utils/evl-test b/utils/evl-test
> index fb85f69..9a12d58 100644
> --- a/utils/evl-test
> +++ b/utils/evl-test
> @@ -12,6 +12,7 @@ full_path=false
> unittests_only=false
> load_cmd="dohell 900"
> load_cmd_pgid_file="/tmp/evl_test_load_cmd_$$"
> +rt_load_pid=""
>
> usage() {
> cat >&2 <<EOF
> @@ -19,7 +20,7 @@ evl test -h
>
> This help text.
>
> -evl test [ -l "load command" ] [ -k ] [ -u ] [ --list ] [ --List ]
> +evl test [ -l "load command" ] [ -k ] [ -r ] [ -u ] [ --list ] [ --List ]
>
> Run a basic test/benchmark of evl on your platform, by first starting a
> few unit tests, then running the latency test under the load generated by
> @@ -31,6 +32,10 @@ By default, the load command is "dohell 900", which will generate load during
> This script accepts the -k option to tell the unit test loop to keep
> going upon a failing test. Otherwise evl test stops immediately.
>
> +If the script is passed the -r option, real-time stress is added to the test,
> +with the help of the "hectic" test. But beware: the latency test figures are
> +then no longer meaningful.
> +
> Use -u if you want to skip the latency test and only run the unittests.
>
> Use --list to output all the tests available. --List will print all the tests
> @@ -67,6 +72,8 @@ while :; do
> shift;;
> -l) load_cmd="$2"
> shift 2;;
> + -r) rt_load=true;
> + shift;;
> -u) unittests_only=true
> shift;;
> --list) do_list=true
> @@ -113,6 +120,11 @@ if test ! -z "${load_cmd}"; then
> setsid /bin/sh -c "${load_cmd} & echo \$\$ > ${load_cmd_pgid_file}"
> fi
>
> +if test x$rt_load = xtrue; then
> + hectic > /dev/null 2>&1 &
hectic -s 200 is even more stressful.
--
Philippe.
prev parent reply other threads:[~2024-06-13 14:26 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-13 13:45 [libevl][PATCH 0/4] evl-test: align with xeno-test Tobias Schaffner
2024-06-13 13:45 ` [libevl][PATCH 1/4] Copy dohell from Xenomai 3 Tobias Schaffner
2024-06-13 14:23 ` Philippe Gerum
2024-06-13 15:32 ` Jan Kiszka
2024-06-13 15:55 ` Philippe Gerum
2025-09-02 9:51 ` Jorge Ramirez-Ortiz, Gmail
2024-06-13 13:45 ` [libevl][PATCH 2/4] evl-test: Measure worst case latencies Tobias Schaffner
2024-06-13 14:09 ` Philippe Gerum
2024-06-13 13:45 ` [libevl][PATCH 3/4] evl-test: Start evl-test with load by default Tobias Schaffner
2024-06-13 14:16 ` Philippe Gerum
2024-06-13 15:30 ` Jan Kiszka
2024-06-13 16:09 ` Philippe Gerum
2024-11-01 17:00 ` Jorge Ramirez-Ortiz, Gmail
2024-11-18 7:48 ` Jan Kiszka
2024-11-18 8:26 ` Philippe Gerum
2025-09-01 18:46 ` Tobias Schaffner
2024-06-13 17:27 ` Philippe Gerum
2024-06-14 7:29 ` Jorge Ramirez-Ortiz, Gmail
2024-07-10 7:18 ` Tobias Schaffner
2024-10-24 20:00 ` Schaffner, Tobias
2024-10-27 19:13 ` Jorge Ramirez-Ortiz, Gmail
2024-11-01 16:55 ` Jorge Ramirez-Ortiz, Gmail
2024-11-01 17:15 ` Philippe Gerum
2024-11-01 18:13 ` Jorge Ramirez-Ortiz, Gmail
2025-09-03 5:29 ` Jan Kiszka
2025-09-03 8:12 ` Jorge Ramirez-Ortiz, Gmail
2025-09-03 8:20 ` Florian Bezdeka
2025-09-03 8:45 ` Jorge Ramirez-Ortiz, Gmail
2025-09-03 9:12 ` Florian Bezdeka
2024-06-13 13:45 ` [libevl][PATCH 4/4] evl-test: Add hectic for real-time stress Tobias Schaffner
2024-06-13 14:26 ` Philippe Gerum [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=87bk44rka1.fsf@xenomai.org \
--to=rpm@xenomai.org \
--cc=jan.kiszka@siemens.com \
--cc=tobias.schaffner@siemens.com \
--cc=xenomai@lists.linux.dev \
/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 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.