-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add option to set the core affinity for the Timer Svc Task on SMP systems #805
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #805 +/- ##
=======================================
Coverage 93.66% 93.66%
=======================================
Files 6 6
Lines 2526 2526
Branches 604 604
=======================================
Hits 2366 2366
Misses 107 107
Partials 53 53
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Hey, thanks for the PR! Could the |
94a135c
to
8e94d8b
Compare
Thanks for the review @archigup. Updated as suggested. |
93e8e03
to
c0ed3bf
Compare
@sudeep-mohanty On the other hand, user can consider to create another task with core affinity to serve application specific requirement instead of changing the affinity of timer task cause it may have effect on software timer service. |
Thanks for the feedback @chinglee-iot. The idea here is to give users the flexibility of either pinning the timer task to a core or letting it run unpinned. Ofcourse, all issues with a lower priority task getting blocked by a higher priority task remain even on an SMP system irrespective of the task's core affinity, so IMO this PR shouldn't cause change to how the timer task runs in practice. A counter argument could be to let the timer task run on a separate core uninterrupted for a potentially more responsive timer service which is not possible today. |
…tems This PR introduces the configTIMER_SERVICE_TASK_CORE_AFFINITY option which allows the system to configure the core affinity of the Timer Service Task on an SMP system. The default affinity of the Timer Service Task is set to tskNO_AFFINITY which is the current behavior on SMP systems. Signed-off-by: Sudeep Mohanty <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
…tems (FreeRTOS#805) This PR introduces the configTIMER_SERVICE_TASK_CORE_AFFINITY option which allows the system to configure the core affinity of the Timer Service Task on an SMP system. The default affinity of the Timer Service Task is set to tskNO_AFFINITY which is the current behavior on SMP systems. Signed-off-by: Sudeep Mohanty <[email protected]> Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>
Title
Make Timer Service Task core affinity configurable
Description
This PR introduces the
configTIMER_SERVICE_TASK_CORE_AFFINITY
config option which allows a user to set the core affinity of the Timer Service Task on SMP systems. The motivation to have this feature comes from requests such as this and this on the ESP-IDF repository. It would be nice if the FreeRTOS-Kernel can support this natively.Test Steps
N.A
Checklist:
Related Issue
None
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.