Repository navigation
Use TASK_IDLE for homa_timer sleeps - #17
Closed
Stuartwastaken wants to merge 1 commit into
Closed
Stuartwastaken wants to merge 1 commit into
Stuartwastaken wants to merge 1 commit into
Conversation
The timer thread slept in TASK_UNINTERRUPTIBLE between ticks, so it counted toward the load average: an idle machine with Homa loaded showed a load average of about 1.0. TASK_IDLE sleeps the same way but isn't counted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
homa_timer_main sleeps between ticks in TASK_UNINTERRUPTIBLE, so the homa_timer thread sits in D state almost all the time and counts toward the load average. On an idle VM with Homa loaded, /proc/loadavg settles at about 1.0 and ps shows homa_timer as D; with this change it shows I and the load average decays toward 0.
TASK_IDLE is TASK_UNINTERRUPTIBLE plus TASK_NOLOAD, so signals and kthread_stop behave as before; only the load accounting changes.