TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Rust-Written Linux Scheduler Showing Promising Results for Gaming Performance

98 点作者 electricant超过 1 年前

10 条评论

antirez超过 1 年前
Are we at this level now? The scheduler performance has nothing to do with the used language. Actually making use of the freedom C provides (while being unsafe) you have the ability to implement whatever complex algorithm you can envision in the most direct way. Moreover scheduling is all about tradeoffs: it's not hard to write a scheduler that is better than a genera purpose one for a specific task. If you like Rust write your code in Rust but the community should stop with this kind of attitude.
评论 #39013581 未加载
评论 #39013952 未加载
评论 #39014046 未加载
评论 #39014837 未加载
评论 #39013567 未加载
评论 #39013630 未加载
评论 #39015950 未加载
评论 #39013557 未加载
评论 #39013561 未加载
评论 #39026421 未加载
评论 #39014291 未加载
评论 #39016011 未加载
评论 #39016945 未加载
评论 #39015179 未加载
bluejekyll超过 1 年前
&quot;I ended up writing a Linux scheduler in Rust using sched-ext during Christmas break, just for fun. I&#x27;m pretty shocked to see that it doesn&#x27;t just work, but it can even outperform the default Linux scheduler (EEVDF) with certain workloads (i.e., gaming).&quot; — Andrea Righi<p>I think that pretty clearly summarizes the entire reason for doing this and the excitement that it works and works well.
评论 #39014158 未加载
rumdz超过 1 年前
You can swap out the scheduler dynamically using eBPF!? That&#x27;s incredible.
评论 #39015544 未加载
评论 #39015337 未加载
评论 #39014798 未加载
dijit超过 1 年前
I would like to stem a little bit of sentiment here.<p>I can write a toy program that saves files to disk much faster than notepad.exe, but this is a consequence of making fewer decisions and handling fewer edge cases.<p>It&#x27;s trivial to make fast software, especially toy software, but they tend not to survive practical applications without becoming as slow or slower than the systems they originally mimic.<p>That said: that it works is really cool.
_ZeD_超过 1 年前
I think the important bit here is: a Linux scheduler written &quot;during Christmas break, just for fun&quot;, is better that the current one. it might be the developer sense of &quot;fun&quot;, it might be rust, but it is impressive, notheless
评论 #39014369 未加载
评论 #39014353 未加载
flohofwoe超过 1 年前
That such a simple 2D game isn&#x27;t able to reach 60fps under heavy system load just shows that the vanilla scheduler doesn&#x27;t boost the process associated with the currently active window though?<p>Shouldn&#x27;t this be standard on all &#x27;desktop&#x27; operating systems, e.g. anything associated with the user gets higher priority than anything else happening on the system? Even the Amiga had such a priority-boosting system back in 1985 (otherwise multitasking wouldn&#x27;t be of much use on such a slow computer, because pretty much any background task would make the UI unusable).
评论 #39014378 未加载
评论 #39023822 未加载
DeathArrow超过 1 年前
Had this scheduler not been written in Rust, would it still have ended up on HN?
评论 #39014690 未加载
评论 #39021516 未加载
amluto超过 1 年前
&gt; For production scenarios, other schedulers are likely to exhibit better performance, as offloading all scheduling decisions to user-space comes with a certain cost.<p>Aside from possibly increased scheduler latency, there’s the rather larger potential cost of outright deadlocks: what guarantees that the user scheduler task runs at all when it’s needed?<p>On 60 seconds of skimming the repo, I didn’t spot a specific solution to this problem. I wonder how it was addressed. Or maybe it wasn’t, since this is just an experiment.
评论 #39015437 未加载
评论 #39014821 未加载
johnisgood超过 1 年前
What is the implication here, or what is it trying to say? If it outperforms C, then it obviously has very different implementation details, including algorithms and whatnot. It does not outperform the scheduler because it is written in Rust.
评论 #39013443 未加载
评论 #39013553 未加载
评论 #39013409 未加载
up2isomorphism超过 1 年前
Highly doubt subpar Linux gaming experience is due to its scheduler implementation.