Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: rt-tests: set default priority of rt-migrate test #2667

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

musamaanjum
Copy link
Contributor

The priority of 96 if passed to rt-migrate causes failure. The test isn't designed well to handle high priority of 96. The test takes this priority and adds the count of number of tasks which becomes greater than 99. The 99 is the highest priority level for SCHED_FIFO. Hence, the priority setting of the main thread fails, we get warning and later test failure:

Warning, can't set priority of main thread!

Instead of fixing the test at this time, let's use priority of 90 instead of 96 such that the total priority of main thread remains below highest priority level. We can set any other lower priority than 90 here as well such as 51 which is set in the rt-migrate-test.sh by default.

Relates kernelci/kernelci-project#439
Signed-off-by: Muhammad Usama Anjum [email protected]

The priority of 96 if passed to rt-migrate causes failure. The test
isn't designed well to handle high priority of 96. The test takes this
priority and adds the count of number of tasks which becomes greater
than 99. The 99 is the highest priority level for SCHED_FIFO. Hence,
the priority setting of the main thread fails, we get warning and later
test failure:

  Warning, can't set priority of main thread!

Instead of fixing the test at this time, let's use priority of 90
instead of 96 such that the total priority of main thread remains below
highest priority level. We can set any other lower priority than 90 here
as well such as 51 which is set in the rt-migrate-test.sh by default.

Relates kernelci/kernelci-project#439
Signed-off-by: Muhammad Usama Anjum <[email protected]>
@musamaanjum
Copy link
Contributor Author

I'm not sure from where priority 96 was coming for rt-migrate test. Let's wait for a test run to verify if this patch is correct before merging this.

@musamaanjum
Copy link
Contributor Author

Confirmed: https://lava.collabora.dev/scheduler/job/15747113

@nuclearcat let's merge it

@nuclearcat nuclearcat added this pull request to the merge queue Sep 20, 2024
Merged via the queue into kernelci:main with commit ade1554 Sep 20, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants