Kernel
inetd(8) kqueue patchset
The patchset would teach inetd(8) about kqueue, which is originally authored by John-Mark and I have integerated it into the “delphijfork”. Now it was updated to fit 7.0-CURRENT.
参与评论FreeBSD 6.0-RELEASE named
Now this server is running:
[delphij@tarsier] ~> uname -a
FreeBSD tarsier.delphij.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Wed Nov 2 14:39:40 CST 2005 delphij@tarsier.delphij.net:/usr/obj/usr/src/sys/TARSIER i386
我靠!!不带这么玩的……改一个sysctl能让mysql性能提高6倍?!
最近 current 邮件列表讨论的很凶的一个问题是,MySQL很不理性地在每一个I/O操作时都调一次time()。这一操作在FreeBSD上面相当的昂贵(为了保证精度),而Linux采取了许多优化(有些是牺牲精度的)措施,因而性能差距越来越大。
于是有一个人在FreeBSD上做了试验,说改一下默认的时钟能够将性能提高6倍……不带这么玩的,ft……
BTW. clive也测了一下,在他机器上结果是:
阅读全文…Linux threading bug
A collegue of mine has reported a FreeBSD “bug” that, when the main thread exits, the whole process is terminated. He complained that pthread_detach() would not cause the thread to run without the main thread, while Linux did.
With some experiments we have figured out that this is actually a Linux bug, which violates POSIX. Interestingly, Solaris has the same behavior that FreeBSD have.
The POSIX pthread_create() said:
Note that the thread in which
阅读全文…main()was originally invokeddiffers from this. When it returns frommain(), the effectshall be as if there was an implicit call toexit()usingthe return value ofmain()as the exit status."ZERO_COPY_SOCKET discouraged for now
It seems that we still have some race conditions that can lead to strange issues and we may want to discourage this for 6.0-RELEASE.
Alan Cox has committed some fixes for the issue, hope these can be merged back.
参与评论C++ for Kernel Mode Drivers: Pros and Cons
http://www.microsoft.com/whdc/driver/kernel/KMcode.mspx
参与评论6-STABLE越来越有RELEASE的样子了
庆祝一下。
我另外架了一个简陋的RELENG_6和7-CURRENT代码对比的网站。希望这次RELEASE我们不要再遗漏什么重要的东西了。
参与评论Winsock ConnectEx function
Today jianghong has pointed out that ConnectEx found in Windows Socket API has combined the connection and sending of the first block of data together within one system call. I think this is desirable for us too, as this can reduce unnecessary context switches.
FreeBSD has accept_filter(9) mechanism that does similiar thing for accept(2).
参与评论6.0-BETA5
Today the 6-STABLE branch has been named “6.0-BETA5”. A lot of known issues has been addressed and fixed. This beta has disabled the debugging options found in -CURRENT as well.
参与评论The 6.0-BETA nullfs bug vanished!
Recent commits apparantly fixed the livelock issue. This saves my own server (this one) finally. Thanks Suleiman and Alexendar! You heros!!
参与评论