←back to thread

218 points chmaynard | 1 comments | | HN request time: 0.204s | source
Show context
hamilyon2 ◴[] No.41887445[source]
How tight is scheduler coupled to the rest of kernel code?

If one wanted to drastically simplify scheduler, for example for some scientific application which doesn't care about preemption at all, can it be done in clean, modular way? And will be any benefit?

replies(4): >>41887725 #>>41887861 #>>41888151 #>>41888319 #
1. toast0 ◴[] No.41888151[source]
You can get 95% of the way there by running a clean system with nearly no daemons, and your application setup to run with one os thread per cpu thread, with cpu pinning so they don't move.

Whatever the scheduler does should be pretty low impact, because the runlist will be very short. If your application doesn't do much I/O, you won't get many interrupts either. If you can run a tickless kernel (is that still a thing, or is it normal now?), you might not get any interrupts for large periods.