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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Userfaultfd – Create a file descriptor for handling page faults in user space

62 点作者 phab超过 3 年前

4 条评论

annonacct38超过 3 年前
One of my favorite examples of userfaultfd: transparently mapping databases on cloud storage into RAM.<p><a href="https:&#x2F;&#x2F;tech.nextroll.com&#x2F;blog&#x2F;data&#x2F;2016&#x2F;11&#x2F;29&#x2F;traildb-mmap-s3.html" rel="nofollow">https:&#x2F;&#x2F;tech.nextroll.com&#x2F;blog&#x2F;data&#x2F;2016&#x2F;11&#x2F;29&#x2F;traildb-mmap-...</a>
评论 #30289954 未加载
评论 #30289056 未加载
Retr0id超过 3 年前
A fun application of userfaultfd:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;whitequark&#x2F;unfork" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;whitequark&#x2F;unfork</a><p>Past discussions of unfork:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21394678" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21394678</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27287930" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27287930</a>
rwmj超过 3 年前
It&#x27;s a great feature, but it had a few unintended side-effects:<p><a href="https:&#x2F;&#x2F;lwn.net&#x2F;Articles&#x2F;819834&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lwn.net&#x2F;Articles&#x2F;819834&#x2F;</a> &quot;Blocking userfaultfd() kernel-fault handling&quot; (patches to fix a security issue, more detail in <a href="https:&#x2F;&#x2F;duasynt.com&#x2F;blog&#x2F;linux-kernel-heap-spray" rel="nofollow">https:&#x2F;&#x2F;duasynt.com&#x2F;blog&#x2F;linux-kernel-heap-spray</a>)<p><a href="https:&#x2F;&#x2F;lwn.net&#x2F;Articles&#x2F;849876&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lwn.net&#x2F;Articles&#x2F;849876&#x2F;</a> &quot;Patching until the COWs come home&quot; (complicated interaction with copy-on-write)
mattgreenrocks超过 3 年前
Possibly dumb question, but if I have some code that tries to blindly jump to, say, address 0x4000, would userfaultfd let me redirect accesses to 0x4000 to an address I&#x27;ve allocated elsewhere?
评论 #30288881 未加载
评论 #30288813 未加载
评论 #30288826 未加载