From: Cyril Hrubis <chrubis@suse.cz>
To: "徐飞飞(Steve)" <xufeifei1@oppo.com>
Cc: "ltp@lists.linux.it" <ltp@lists.linux.it>
Subject: Re: [LTP] 答复: [PATCH] Reduce loop count to meet need of low performance terminals
Date: Wed, 12 Jun 2024 10:43:44 +0200 [thread overview]
Message-ID: <ZmlfwIKXQsuBvfjq@yuki> (raw)
In-Reply-To: <SEZPR02MB70372C81C17D62159C21742D89C02@SEZPR02MB7037.apcprd02.prod.outlook.com>
Hi!
> Are you sure that your kernel isn't affected by the bug the test checks for? The test timeouts on a buggy kernel.
> -- Is there any place where I can see more relevant information? which kind of bug you have found?
It's right in the top level comment in the testcase source where the
test description is.
> the test timeout on myside where there still 640000 loop,
> ZZL pid = 29466 this is while 646533 times loop = 646533 -------
> ZZL pid = 29466 this is while 646532 times loop = 646532 -------
> ZZL pid = 29466 this is while 646531 times loop = 646531 -------
> ZZL pid = 29466 this is while 646530 times loop = 646530 -------
> ZZL pid = 29466 this is while 646529 times loop = 646529 -------
> ZZL pid = 29466 this is while 646528 times loop = 646528 -------
> ZZL pid = 29466 this is while 646527 times loop = 646527 -------
> ZZL pid = 29466 this is while 646526 times loop = 646526 -------
> ZZL pid = 29466 this is while 646525 times loop = 646525 -------
> ZZL pid = 29466 this is while 646524 times loop = 646524 -------
> ZZL pid = 29466 this is while 646523 times loop = 646523 -------
> ZZL pid = 29466 this is while 646522 times loop = 646522 -------
> ZZL pid = 29466 this is while 646521 times loop = 646521 -------
> Test timeouted, sending SIGKILL!
> external/ltp/lib/tst_test.c:1641: TINFO: Killed the leftover descendant processes
> external/ltp/lib/tst_test.c:1648: TINFO: If you are running on slow machine, try exporting LTP_TIMEOUT_MUL > 1
> external/ltp/lib/tst_test.c:1649: TBROK: Test killed! (timeout?)
>
> Summary:
> passed 1
> failed 0
> broken 1
> skipped 0
> warnings 0
>
>
> How long does the test run if you disable timeouts (by setting static int timeout = -1 in the source)?
> -- about 370 seconds
Looking at this it seems that your CPU is just a bit slower, if the test
fails it's supposed to be at least one order of magnitude slower.
> Also what kind of system it is? How fast is the CPU?
> --android 14 , kenrel 6.1.43-android14-11-o-g9bbfe9009b86 ,
>
> cat /proc/cpuinfo
> processor : 0
> BogoMIPS : 38.40
> Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
> CPU implementer : 0x41
> CPU architecture: 8
> CPU variant : 0x2
> CPU part : 0xd05 (ARM_CPU_PART_CORTEX_A55)
> CPU revision : 0
So this is single core ARM cortex A55, it really seems to be just a case
of slower procesor, so it does make sense to lower the number of
iterations or increase the test timeout.
However the problem is that if we divide the default number of
iterations by two and keep the timeout the test would stil pass even on
broken kernel on an x86_64 desktop. So we probably need a callibration
loop that would be able to estimate the CPU speed to set the
expectations right.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2024-06-12 8:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-11 3:40 [LTP] Reduce loop count to meet need of low performance platform xufeifei via ltp
2024-06-11 3:40 ` [LTP] [PATCH] Reduce loop count to meet need of low performance terminals xufeifei via ltp
2024-06-11 11:40 ` Cyril Hrubis
2024-06-12 7:27 ` [LTP] 答复: " 徐飞飞(Steve) via ltp
2024-06-12 8:43 ` Cyril Hrubis [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=ZmlfwIKXQsuBvfjq@yuki \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
--cc=xufeifei1@oppo.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