I have basically zero traditional teaching, so you should really take whatever I say about someone else's code with a grain of salt
The thing is: There are global companies like Intel, Samsung, nvidia, Google, etc. working on the linux kernel and many heavily rely on the linux kernel. If the scheduler was such a problem, they would have already rewritten it and would use a better one by default. E.g. on Android, literally billions of customers would be affected by it, yet android apparently only uses a slightly tweaked version of CFS instead of its own scheduler.. It's much more likely that the scheduler is the way it is because there's a reason for it - that it performs well for the workloads people use it for and over the years it has gone through through a lot of improvements that these companies can't beat with their own home-grown schedulers - or they would do it already.
View all comments
Show parent comment
7
u/haagch Mar 07 '16
The thing is: There are global companies like Intel, Samsung, nvidia, Google, etc. working on the linux kernel and many heavily rely on the linux kernel. If the scheduler was such a problem, they would have already rewritten it and would use a better one by default. E.g. on Android, literally billions of customers would be affected by it, yet android apparently only uses a slightly tweaked version of CFS instead of its own scheduler.. It's much more likely that the scheduler is the way it is because there's a reason for it - that it performs well for the workloads people use it for and over the years it has gone through through a lot of improvements that these companies can't beat with their own home-grown schedulers - or they would do it already.