-
Notifications
You must be signed in to change notification settings - Fork 31
configurable cpumask for kthreads #14
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
base: master
Are you sure you want to change the base?
Conversation
4371b33 to
d7f0b2a
Compare
| * The kernel thread should not inherit these properties. | ||
| */ | ||
| sched_setscheduler_nocheck(task, SCHED_NORMAL, ¶m); | ||
| set_cpus_allowed_ptr(task, cpu_all_mask); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are both of these lines still here? Isn't there one line where they can be scheduled anywhere?
| /* Setup a clean context for our children to inherit. */ | ||
| set_task_comm(tsk, "kthreadd"); | ||
| ignore_signals(tsk); | ||
| set_cpus_allowed_ptr(tsk, cpu_all_mask); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment here
| init start on certain processors and also to | ||
| control where kmod and other user space threads | ||
| are being spawned. Allows to keep kernel threads | ||
| away from certain cores unless absoluteluy necessary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in absoluteluy
https://lwn.net/Articles/565932/