Skip to content

Conversation

@arighi
Copy link
Contributor

@arighi arighi commented Jul 1, 2025

Rework and re-enable prioritization based on the average rate of voluntary context switches. This allows to boost interactive tasks with a higher sleep frequency over tasks with lower sleep frequency (which might have less pressing latency requirements).

arighi added 2 commits July 1, 2025 23:08
Use a simplified method to evaluate the rate of voluntary context
switches, re-evaluating the rate every time ops.quiescent() is invoked,
instead of refreshing the value every @slice_max nanoseconds.

Tested-by: Piotr Gorski <piotrgorski@cachyos.org>
Signed-off-by: Andrea Righi <arighi@nvidia.com>
With the updated logic to evaluate the average rate of voluntary context
switches, re-enable task prioritization based on this metric to give
interactive tasks an extra priority boost.

Tested-by: Piotr Gorski <piotrgorski@cachyos.org>
Signed-off-by: Andrea Righi <arighi@nvidia.com>
@arighi arighi requested review from hodgesds, htejun and multics69 July 1, 2025 21:14
@arighi arighi added this pull request to the merge queue Jul 2, 2025
Merged via the queue into main with commit 1137eec Jul 2, 2025
34 checks passed
@arighi arighi deleted the flash-nvcsw branch July 2, 2025 05:51
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.

3 participants