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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

posix-spawn: a faster fork+exec for ruby

56 点作者 tmm1大约 14 年前

4 条评论

andrewvc大约 14 年前
This is awesome, Aman's one of my favorite rubyists, I can't say I'm surprised to find out he's behind this.<p>If anyone's curious how processes/threads are represented internally on modern linux kernels, I wrote an article on that here: <a href="http://blog.andrewvc.com/fork2-is-dead-long-live-fork-i-mean-clone2" rel="nofollow">http://blog.andrewvc.com/fork2-is-dead-long-live-fork-i-mean...</a>
评论 #2286723 未加载
Groxx大约 14 年前
Wow, check out the Linux vs OSX graphs. Anyone care to enlighten me as to why they are <i>that</i> different? The worst OSX fork + exec call is more than 2x faster than the fastest fork + exec on Linux, and over 10x faster when the memory increases past ~300MB.<p>Given that OSX's isn't dependent on page table size, I'm guessing it just always does copy-on-write... but that's a pretty un-knowledgeable guess.
评论 #2286719 未加载
kscaldef大约 14 年前
I'm curious what the applications are where this is an important optimization. Even for the very large Linux processes, it looks like 1/10sec per fork. On OSX, we're talking milliseconds. What sort of application is forking so often that this matters?
评论 #2287340 未加载
评论 #2290851 未加载
tmm1大约 14 年前
Here's the full announcement: <a href="https://gist.github.com/e0d36c881e6efc57514b" rel="nofollow">https://gist.github.com/e0d36c881e6efc57514b</a>