News for hackers. Stuff that matters.
Re:A Journey into the Linux Scheduler by PaulDavisThe1st on Monday July 04, 2022 @11:56AM (#31978471)
Good overview, but missing any discussion (that I could see) of how non-SCHED_OTHER scheduling classes (such as SCHED_FIFO and SCHED_RR) interact with "normal" scheduling. The rules described here (e.g. "the task that has run least runs next") do not apply to tasks in these scheduling classes.
Re:A Journey into the Linux Scheduler by nsm on Monday July 04, 2022 @01:37PM (#31979752)
I've found "Challenges Using Linux as a Real-Time Operating System" by Michael M. Madden from NASA a really big help - https://ntrs.nasa.gov/api/citations/20200002390/downloads/20....
Re:A Journey into the Linux Scheduler by maxgio92 on Monday July 04, 2022 @02:22PM (#31980262)
Thank you for this material!
Re:A Journey into the Linux Scheduler by gpderetta on Monday July 04, 2022 @01:04PM (#31979301)
My understanding is that they don't. Realtime tasks have strict priority over non realtime tasks. As long as there are runnable rt task the kernel won't schedule any other task.

At least that's the theory. I think these days the kernel reserves (optionally?) 5% cpu to non rt tasks, enough to run a shell and kill a runaway rt process.

Re:A Journey into the Linux Scheduler by chupasaurus on Monday July 04, 2022 @03:17PM (#31980723)
> I think these days the kernel reserves (optionally?) 5% cpu to non rt tasks

That is the default setting (documentation [0]).

[0] https://docs.kernel.org/scheduler/sched-rt-group.html

Re:A Journey into the Linux Scheduler by PaulDavisThe1st on Monday July 04, 2022 @01:20PM (#31979529)
Correct on all counts. But there is also the difference between SCHED_FIFO and SCHED_RR to be covered.
Re:A Journey into the Linux Scheduler by maxgio92 on Monday July 04, 2022 @02:25PM (#31980293)
Yes, you're right. I preferred to not cover too much topics on the same blog, but that's a good idea as other people said here. Thank you.
Re:A Journey into the Linux Scheduler by maxgio92 on Monday July 04, 2022 @02:19PM (#31980224)
You're right. The journey is introductory on basic scheduling concepts and focuses on the SCHED_NORMAL. That rule as I written is valid for the CFS.