From: Aaron Conole <aconole@redhat.com>
To: David Marchand <david.marchand@redhat.com>
Cc: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>,
Van Haaren Harry <harry.van.haaren@intel.com>,
Igor Romanov <igor.romanov@oktetlabs.ru>,
Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>,
Phil Yang <phil.yang@arm.com>, dev <dev@dpdk.org>
Subject: Re: [dpdk-dev] Random failure in service_autotest
Date: Wed, 15 Jul 2020 09:39:49 -0400 [thread overview]
Message-ID: <f7ttuy8sxqy.fsf@dhcp-25.97.bos.redhat.com> (raw)
In-Reply-To: <CAJFAV8wUaue4ZppLEZjdaEDho4sMUDk0phXFgp6+3QAc5nUPww@mail.gmail.com> (David Marchand's message of "Wed, 15 Jul 2020 15:28:15 +0200")
David Marchand <david.marchand@redhat.com> writes:
> On Wed, Jul 15, 2020 at 3:09 PM Lukasz Wojciechowski
> <l.wojciechow@partner.samsung.com> wrote:
>>
>>
>> W dniu 15.07.2020 o 15:02, David Marchand pisze:
>> > On Wed, Jul 15, 2020 at 2:56 PM Aaron Conole <aconole@redhat.com> wrote:
>> >> I guess the service_lcore_attr_get failed, but with no useful
>> Why do you suspect service_lcore_attr_get() ?
>
> https://travis-ci.com/github/ovsrobot/dpdk/jobs/361097992#L18697
>
> RTE>>service_autotest
> + ------------------------------------------------------- +
> + Test Suite : service core test suite
> + ------------------------------------------------------- +
> + TestCase [ 0] : unregister_all succeeded
> + TestCase [ 1] : service_name succeeded
> + TestCase [ 2] : service_get_by_name succeeded
> Service dummy_service Summary
> dummy_service: stats 1 calls 0 cycles 0 avg: 0
> Service dummy_service Summary
> dummy_service: stats 0 calls 0 cycles 0 avg: 0
> + TestCase [ 3] : service_dump succeeded
> + TestCase [ 4] : service_attr_get succeeded
>
> ***
> + TestCase [ 5] : service_lcore_attr_get failed
> ***
>
> + TestCase [ 6] : service_probe_capability succeeded
> + TestCase [ 7] : service_start_stop succeeded
> + TestCase [ 8] : service_lcore_add_del skipped
> + TestCase [ 9] : service_lcore_start_stop succeeded
> + TestCase [10] : service_lcore_en_dis_able succeeded
> + TestCase [11] : service_mt_unsafe_poll skipped
> + TestCase [12] : service_mt_safe_poll skipped
> perf test for MT Safe: 56.9 cycles per call
> + TestCase [13] : service_app_lcore_mt_safe succeeded
> perf test for MT Unsafe: 83.4 cycles per call
> + TestCase [14] : service_app_lcore_mt_unsafe succeeded
> + TestCase [15] : service_may_be_active succeeded
> + TestCase [16] : service_active_two_cores skipped
> + ------------------------------------------------------- +
>
>
>> >> information. We should have the test suite app turn the log level all
>> >> the way up. I realize it will increase the log data even higher, but
>> >> without it, we have no idea why this test failed.
>> >>
>> >> Something like the following
>> >> ---
>> >>
>> >> diff --git a/app/test/test.c b/app/test/test.c
>> >> index 94d26ab1f6..c47cb075f9 100644
>> >> --- a/app/test/test.c
>> >> +++ b/app/test/test.c
>> >> @@ -150,6 +150,9 @@ main(int argc, char **argv)
>> >>
>> >> prgname = argv[0];
>> >>
>> >> + rte_log_set_global_level(RTE_LOG_DEBUG);
>> >> + rte_log_set_level(RTE_LOGTYPE_EAL, RTE_LOG_DEBUG);
>> >> +
>> >> recursive_call = getenv(RECURSIVE_ENV_VAR);
>> >> if (recursive_call != NULL) {
>> >> ret = do_recursive_call();
>> >> ---
>> >>
>> >> That way we can at least debug when it happens.
>> > Debugging is one thing.
>> > But here service_lcore_attr_get() has a lot of asserts that should
>> > trigger a straight error.
>> >
>> Yes, but without debugs enabled, the assert message won't be printed out.
>
> Changing the whole debug levels could have side effects on the
> libraries being tested: maybe hide races (too bad) or reveal races
> (that would be interesting ;-)).
6 of one, 1/2 dozen of the other.
Maybe there are bugs where people run code inside log level tests that
get omitted otherwise.
> On the other hand, what I am saying is that using debug level logs for
> test asserts might not be the best solution.
Yeah, that's also a good idea :)
next prev parent reply other threads:[~2020-07-15 13:40 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-15 10:14 David Marchand
2020-07-15 10:41 ` Ferruh Yigit
2020-07-17 8:56 ` David Marchand
2020-07-17 15:19 ` David Marchand
2020-07-17 20:31 ` Lukasz Wojciechowski
2020-07-17 22:38 ` Aaron Conole
2020-07-17 22:43 ` Honnappa Nagarahalli
2020-07-18 8:34 ` Phil Yang
2020-07-20 12:09 ` Van Haaren, Harry
2020-07-20 12:47 ` Lukasz Wojciechowski
2020-07-21 5:39 ` Honnappa Nagarahalli
2020-07-21 8:01 ` Van Haaren, Harry
2020-07-21 8:07 ` David Marchand
2020-07-21 8:16 ` Lukasz Wojciechowski
2020-07-21 15:09 ` Honnappa Nagarahalli
2020-07-21 15:38 ` Van Haaren, Harry
2020-07-21 16:21 ` Honnappa Nagarahalli
2020-07-15 12:56 ` Aaron Conole
2020-07-15 13:02 ` David Marchand
2020-07-15 13:09 ` Lukasz Wojciechowski
2020-07-15 13:28 ` David Marchand
2020-07-15 13:39 ` Aaron Conole [this message]
2020-07-15 20:26 ` Honnappa Nagarahalli
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=f7ttuy8sxqy.fsf@dhcp-25.97.bos.redhat.com \
--to=aconole@redhat.com \
--cc=Honnappa.Nagarahalli@arm.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=harry.van.haaren@intel.com \
--cc=igor.romanov@oktetlabs.ru \
--cc=l.wojciechow@partner.samsung.com \
--cc=phil.yang@arm.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).