FreeBSD

共692篇文章。

*BSD queue.h

Kernel

Derived from the ancient BSD Unix, *BSD has a set of queue related macros which are described in queue(3), and implemented in src/sys/sys/queue.h. These are primarily used in the kernel, but also useful for userland applications.

阅读全文…:*BSD queue.h(本文约100字,阅读大致需要1分钟)

Jun Kuriyama:拥抱FreeBSD

Shared Chaos

这是一篇几年前的文章,发表地我已经记不清楚了。除了这篇文章对FreeBSD开发模式和如何成为committer的介绍之外,我还希望看到这篇文章的人,能够成为国人在FreeBSD中的中坚分子,让我们(华人)成为整个项目最重要的一部分。


📓 出处说明

本文作者Jun Kuriyama(栗山淳,kuriyama@FreeBSD.org)于1998年4月成为FreeBSD ports committer,并于2002年6月当选FreeBSD Core Team成员(连任至2006年)。文中「大约330名committer」「今年6月份选出9名core team」及CVS代码树等描述均对应2002年时的FreeBSD项目状况。中文译者与最初发表媒体已不可考,现修正原文中若干「committer」拼写误植并略作排版整理。

拥抱FreeBSD

FreeBSD项目的结构

和FreeBSD项目关联的人大体分为三类,即被称为committer的开发者,由其中9名组成的core team,以及其他的贡献于FreeBSD的人们。

committer是FreeBSD项目的正式开发者,他们拥有对原始码的直接修改权限。现在大约有330名committer,其中47名在日本。

committer并不只是自己写代码的人,为别人写的ports做登录,或者写文档等等,还有负责各种分野的committer存在。core team是从这些committer中选出来的,共有9人。所有的committer都有投票权,从候选人中投票选举9人组成core team。在今年6月份进行的选举中,包括笔者在内的9人当选进入了core team,任期为2年。

阅读全文…:Jun Kuriyama:拥抱FreeBSD(本文约3107字,阅读大致需要7分钟)

我靠!!不带这么玩的……改一个sysctl能让mysql性能提高6倍?!

Kernel

最近current邮件列表讨论的很凶的一个问题是,MySQL很不理性地在每一个I/O操作时都调一次time()。这一操作在FreeBSD上面相当的昂贵(为了保证精度),而Linux采取了许多优化(有些是牺牲精度的)措施,因而性能差距越来越大。

于是有一个人在FreeBSD上做了试验,说改一下默认的时钟能够将性能提高6倍……不带这么玩的,ft……

BTW. clive也测了一下,在他机器上结果是:

阅读全文…:我靠!!不带这么玩的……改一个sysctl能让mysql性能提高6倍?!(本文约257字,阅读大致需要1分钟)

Linux threading bug

Kernel

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 from main(), the effectshall be as if there was an implicit call to exit() usingthe return value of main() as the exit status."

阅读全文…:Linux threading bug(本文约161字,阅读大致需要1分钟)

Signal in init(8)?!

Kernel

Strange thing happen.

  1. Start your FreeBSD single-user.
  2. Run /etc/netstart so your network is up.
  3. Run /etc/rc.d/sshd start so you have sshd
  4. Use ssh to login localhost, then su(1) to root
  5. Type “init q”

Then init(8) would crash with signal 11. Yes, it was killed. As soon as kernel found this, it would panic with “Going nowhere without my init!”.

参与评论:Signal in init(8)?!

Preparing for 6.0-RC1

Development

Well, this Saturday and Sunday is not for rest, because we have a 7-days’ vacation from October 1.

I think FreeBSD 6.0-STABLE (RELENG_6) is in a quite nice shape and it’s a good time to cut 6.0-RC1 (also RELENG_6_0) and be more careful committing code against RELENG_6. However, according to my diff service there are still a lot of unmerged changes.

I have submitted a plenty (about 4 or 5 or even 6 dozens) of MFC requests last week. I wish that the diff reduction part of these changes, in conjunction with important bugfixes, would got approved soon so we will have a healthy RC1 for test.

参与评论:Preparing for 6.0-RC1
搜索文章…(按ESC退出)