From: Cyril Hrubis <chrubis@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: ltp@lists.linux.it, Martin Doucha <martin.doucha@suse.com>
Subject: Re: [LTP] [RFC PATCh] lib: redefine the overall timeout logic of test
Date: Thu, 9 Jan 2025 08:50:52 +0100 [thread overview]
Message-ID: <Z39_3BKj3d3nbfau@rei.lan> (raw)
In-Reply-To: <CAEemH2eHfJDLNhMwomZ5VHBSwqpUZsD9GuaMDRnpY_XdfPjEdA@mail.gmail.com>
Hi!
> I have a different view on the readahead02 test, because the runtime
> resetting is based on pieces of each IO test elapsed time, then reset
> runtime for next time. This applies to any kernels, no matter the faster
> or slower, the elapsed time will be enough for the next tcases[].
>
> If we put the worst-case runtime into .timeout and reset for the next
> tcases[], which will be multiplied again on debug kernel, actually we
> don't need that since the dynamic runtime comes from a real test.
I do not get why we need to reset anything. The test library does reset
the timeout after each test iteration:
for (i = 0; i < tst_test->tcnt; i++) {
saved_results = *results;
heartbeat();
^
this resets the timeout timer so each iteration runs
with the whole timeout
tst_test->test(i);
if (tst_getpid() != main_pid)
exit(0);
tst_reap_children();
if (results_equal(&saved_results, results))
tst_brk(TBROK, "Test %i haven't reported results!", i);
}
> Maybe I missed something in the test, but we can treat readahead02
> in a separate work. The new patch 4/4 should be modified using .runtime
> instead of .timeout. Feel free to comment your thoughts there.
Why is readahead02 so special that we need to do more than the usuall?
That is:
- measure how long one tests iteration takes on slower hardware
- multiply that by two and set that as a .timeout
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2025-01-09 7:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-08 7:12 [LTP] [RFC PATCh] lib: redefine the overall timeout logic of test Li Wang
2025-01-08 9:18 ` Cyril Hrubis
2025-01-08 10:49 ` Li Wang
2025-01-08 11:37 ` Li Wang
2025-01-08 12:33 ` Cyril Hrubis
2025-01-09 6:31 ` Li Wang
2025-01-09 7:50 ` Cyril Hrubis [this message]
2025-01-09 8:42 ` Li Wang
2025-01-09 8:51 ` Li Wang
2025-01-09 10:34 ` Cyril Hrubis
2025-01-09 10:45 ` Li Wang
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=Z39_3BKj3d3nbfau@rei.lan \
--to=chrubis@suse.cz \
--cc=liwang@redhat.com \
--cc=ltp@lists.linux.it \
--cc=martin.doucha@suse.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