sched_rr_get_interval01 from ubuntu_ltp_syscalls failed on 4.4

Bug #1886890 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Unassigned
linux (Ubuntu)
Invalid
Undecided
Unassigned
Xenial
Fix Released
Undecided
Unassigned

Bug Description

== SRU Justification ==
A new regression test case "sched_rr_get_interval01" for commit 975e155ed873 ("sched/rt: Show the 'sched_rr_timeslice' SCHED_RR timeslice tuning knob in milliseconds"). Has been added to the LTP syscalls test suite.

On Xenial 4.4.0-186.216, this test is failing with:

 startup='Wed Jul 8 10:36:58 2020'
 tst_test.c:1247: INFO: Timeout per run is 0h 05m 00s
 sched_rr_get_interval01.c:43: INFO: Testing variant: vDSO or syscall with libc spec
 sched_rr_get_interval01.c:60: PASS: sched_rr_get_interval() passed
 sched_rr_get_interval01.c:68: PASS: Time quantum 0s 100000000ns
 sched_rr_get_interval01.c:75: FAIL: /proc/sys/kernel/sched_rr_timeslice_ms != 100 got 25
 tst_test.c:1247: INFO: Timeout per run is 0h 05m 00s
 sched_rr_get_interval01.c:43: INFO: Testing variant: syscall with old kernel spec
 sched_rr_get_interval01.c:60: PASS: sched_rr_get_interval() passed
 sched_rr_get_interval01.c:68: PASS: Time quantum 0s 100000000ns
 sched_rr_get_interval01.c:75: FAIL: /proc/sys/kernel/sched_rr_timeslice_ms != 100 got 25

 HINT: You _MAY_ be missing kernel fixes, see:

 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=975e155ed873

 Summary:
 passed 4
 failed 2
 skipped 0
 warnings 0
 tag=sched_rr_get_interval01 stime=1594204618 dur=0 exit=exited stat=1 core=no cu=0 cs=0

== Fixes ==
975e155ed873 ("sched/rt: Show the 'sched_rr_timeslice' SCHED_RR timeslice tuning knob in milliseconds")

This patch can be cherry-picked in to the affected Xenial kernel. It's already been applied in newer kernels.

== Test ==
Test kernel can be found here:
https://people.canonical.com/~phlin/kernel/lp-1886890-sched_rr_get_interval01/

With the patch applied, this test will pass without any issue.

And it can be simply tested with:
# echo 100 > /proc/sys/kernel/sched_rr_timeslice_ms
# cat /proc/sys/kernel/sched_rr_timeslice_ms
100
(was 25 before the patch)

Po-Hsu Lin (cypressyew)
tags: added: 4.4 aws kqa-blocker sru-20200629 ubuntu-ltp-syscalls xenial
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1886890

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu Xenial):
status: New → Incomplete
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Can be found on X-4.4 as well.

Po-Hsu Lin (cypressyew)
description: updated
Po-Hsu Lin (cypressyew)
description: updated
Po-Hsu Lin (cypressyew)
tags: added: amd64
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

I didn't see this failure in T-4.4

4.4.0-186-lowlatency #216~14.04.1-Ubuntu

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

More info for T-4.4

This issue cannot be found on lowlatency kernel.
Still failing on T-4.4 amd64 generic and i386 generic.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Same thing on X-4.4, passed on lowlatency amd64 / i386

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This issue can be found on X-4.4 P8 / s390x as well (skipped on arm64).

tags: added: ppc64el s390x
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Patch applied via stable update:
https://bugs.launchpad.net/bugs/1887011

Changed in linux (Ubuntu):
status: Incomplete → Invalid
Changed in linux (Ubuntu Xenial):
status: Incomplete → In Progress
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This can be closed after tested with the kernel in the proposed pocket.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Passed on Xenial 4.4.0-187.217 and X-aws 4.4.0-1112.124

Changed in linux (Ubuntu Xenial):
status: In Progress → Fix Released
Changed in ubuntu-kernel-tests:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.