为什么要从 O(1) 调度程序迁移到 O(log N) 的 CFS?

发布于 2024-09-14 13:16:27 字数 467 浏览 12 评论 0原文

我可能有点晚了,但我最近正在研究各种生产调度程序的工作原理,并且遇到了 O(1) 调度程序完全公平调度程序 取代,或 CFS,均由 Ingo Molnár 创作。

顾名思义,O(1) 调度程序需要恒定时间,但 CFS 为 O(log N)。那么为什么会有这样的举动呢?显然,这一定是有充分理由的。如果它与提高应用程序的响应速度有关,那么 CFS 有什么帮助呢? (为什么其他人仍然使用多级反馈队列方法?)

I might be a little late on this but I was going through how various production schedulers work recently and I came across the O(1) scheduler which was replaced by the Completely Fair Scheduler, or CFS, both by Ingo Molnár.

As the name suggests the O(1) scheduler takes constant time but CFS is O(log N). Then why was such a move made? Obviously, there must have been a good reason. If it has to do with making applications more responsive, then how does CFS help? (And why do others still use a multilevel feedback queue approach?)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

烟酒忠诚 2024-09-21 13:16:27

很大一部分原因是内部“竞争”以及与一个名叫 Con Kolivas 的小伙子的对抗。有时你必须像关注技术一样关注参与的人员。

A large part of it was because of internal 'competition' and confrontation with a chap called Con Kolivas. Sometimes you have to look at the people involved as much as the tech.

只是我以为 2024-09-21 13:16:27

出于交互性和响应性,将此 O(1) 移出 stac 的原因

for interactivity and responsiveness as the reason this O(1) was moved out of stac

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文