<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Rachel Sibley <<a href="mailto:rasibley@redhat.com">rasibley@redhat.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail_default" style="font-size:small">...</span><br>
>><br>
>> Pipeline: <a href="https://xci32.lab.eng.rdu2.redhat.com/cki-project/cki-pipeline/pipelines/308034" rel="noreferrer" target="_blank">https://xci32.lab.eng.rdu2.redhat.com/cki-project/cki-pipeline/pipelines/308034</a><br>
>><br>
>> One or more kernel tests failed:<br>
>><br>
>> s390x:<br>
>> ❌ LTP lite<br>
> <br>
> This MUST be a failure due to some other reason. This patch only affects<br>
> HPET timers on Intel x86_64 Coffee Lake platforms.<br>
<br>
I'm seeing it fail on other patches as well, MM-QE can you take a look ?<br>
Is this a known issue ?<br>
<br>
Thanks,<br>
Rachel<br>
<br>
<<<test_start>>><br>
tag=mtest01w stime=1574715697<br>
cmdline="mtest01 -p80 -w"<br>
contacts=""<br>
analysis=exit<br>
<<<test_output>>><br>
tst_test.c:1118: INFO: Timeout per run is 0h 05m 00s<br>
mtest01.c:134: INFO: Filling up 80% of free ram which is 5868864 kbytes<br>
mtest01.c:149: INFO: ... child 38289 starting<br>
mtest01.c:149: INFO: ... child 38288 starting<br>
mtest01.c:208: WARN: the remaininig time is not enough for testing<br>
mtest01.c:218: FAIL: kbytes allocated (and written to) less than <br>
expected 5868864<br>
Test timeouted, sending SIGKILL!<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">The root cause is that children's memory allocating is still ongoing, but the remaining time is in an emergency, so parent break from the while loop and try to stop children, obviously, it doesn't have enough time to wait for the process status change to 'T'. </div><div class="gmail_default" style="font-size:small"><br></div> <span class="gmail_default" style="font-size:small"> </span>TST_PROCESS_STATE_WAIT(pid_list[i], 'T');<br> <span class="gmail_default" style="font-size:small"> </span>kill(pid_list[i], SIGCONT);<br></div><div><br></div><div><div class="gmail_default" style="font-size:small">My proposal patch to fix this problem as:</div><div class="gmail_default" style="font-size:small"><br></div>--- a/testcases/kernel/mem/mtest01/mtest01.c<br>+++ b/testcases/kernel/mem/mtest01/mtest01.c<br>@@ -216,11 +216,17 @@ static void mem_test(void)<br> if (children_done < pid_cntr) {<br> tst_res(TFAIL, "kbytes allocated %sless than expected %llu",<br> write_msg, alloc_maxbytes / 1024);<br>- } else {<br>- tst_res(TPASS, "%llu kbytes allocated %s",<br>- alloc_maxbytes / 1024, write_msg);<br>+<br>+ for (i = 0; i < pid_cntr; i++) {<br>+ kill(pid_list[i], SIGKILL);<br>+ }<br>+<br>+ return;<br> }<br> <br>+ tst_res(TPASS, "%llu kbytes allocated %s",<br>+ alloc_maxbytes / 1024, write_msg);<br>+<br> for (i = 0; i < pid_cntr; i++) {<br> TST_PROCESS_STATE_WAIT(pid_list[i], 'T');<br> kill(pid_list[i], SIGCONT);<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
tst_test.c:1158: INFO: If you are running on slow machine, try exporting <br>
LTP_TIMEOUT_MUL > 1<br>
tst_test.c:1159: BROK: Test killed! (timeout?)<br>
<br>
Summary:<br>
passed 0<br>
failed 1<br>
skipped 0<br>
warnings 1<br>
<<<execution_status>>><br>
initiation_status="ok"<br>
duration=314 termination_type=exited termination_id=7 corefile=no<br>
cutime=1 cstime=3<br>
<<<test_end>>><br>
<br>
> <br>
> P.<br>
> <br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Regards,<br>Li Wang<br></div></div></div></div></div>