FreeBSD

共691篇文章。

挑战了一把权威,不知道结果会如何

• Security

关于 FreeBSD 的某处默认安全设置的问题,给security team发信,得到security-officer的一封关于对这个问题进行更深入阐释的质询,以及一封来自另一个committer的反驳意见。写信挑战了一把,看看结果吧。总体来讲我觉得权威错了,不过即使他对了,我想这次也能学到不少东西。

参与评论

Winsock ConnectEx function

• Kernel

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

• Kernel

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.

参与评论

bsddiy语录

• Shared Chaos

摘录一些。bsddiy是国内非常著名的BSD Hacker,你可能听说过他的另外一个名字(此处不便透露)。

有很多人问我「BSD是独立的一蹴,我们有自己的圈子,我们不以商业驱动,追求完美是我们的源动力,任何不好的代码都不能在这里存活」这一句的出处——当然是bsddiy老大,他的原话是:

阅读全文… ( 本文约1677字,阅读大致需要4分钟 )

How to make FreeBSD to permit several programs to play sound simutiously?

• Development

You may have noticed that FreeBSD by default does not allow many programs to play sound at same time. For instance, you generally can not hear GAIM sound when you are hearing MP3.

Fortunately, this can be resolved if you have read the documentations. Now I write here so you can also Google it :-)

Add a single line into /etc/sysctl.conf:

hw.snd.pcm0.vchans=16

Then, reboot (or if you are careful enough, shut down all programs that is using sound subsystem, then run /etc/rc.d/sysctl restart)

阅读全文… ( 本文约95字,阅读大致需要1分钟 )

gjournal alpha released

• Kernel

gjournal is one of the Google Summer of Code projects that is FreeBSD related. It provides data journalling service that will be useful for frequent randomized area writing, just like write clustering.

Today, the first public alpha version has been released.

Please note that this is not intentional to replace SoftUpdates nor a real journalling file system, as the metadata consistency protection is different than just do data writing journalling. However, this indicates a good way of providing better performance for file systems.

阅读全文… ( 本文约87字,阅读大致需要1分钟 )