KSE

共 8 篇文章。

PRS_NEW: Check it or not?

Kernel

It seems that I have caught a race condition which can be triggered by renice(1), and we need to take PRS_NEW into account when we need to access several attributes of a process object.

Robert has pointed out that we may want to just initialize the attribute early to avoid the race condition. After reading some old 4.4BSD code it seems that the process object is linked into allproc list *before* everything is initialized.

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

KSE成为内核选项

Kernel

今天,John Birrell同学commit了一个不大不小的patchset—-将KSE变为内核选项。具体说来,在-CURRENT上,KSE不再是一个必选项了。

KSE是FreeBSD 5.0-CURRENT时的一个非常重要的技术探索,它是对由华盛顿大学THOMAS E. ANDERSON等人提出的调度器激活概念的一个实现。

对于M:N线程来说,调度器激活是一项十分先进的概念。在这个模型中,内核并不需要了解用户态线程的细节,而用户态线程也并不是由内核直接调度,相反,这些线程被绑定到一系列"调度实体"上,内核能够看到这些调度实体,并在上下文切换时激活用户态的线程调度器。由于减少了内核-用户态的上下文切换操作,因此理论上这一模型能够获得更好的性能。

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

FreeBSD 4.10-RC released

Kernel

Now we have RELENG_4_10 branch :-) There are a lot of -CURRENT improvements has been MFC’ed, however, the most important part of -CURRENT, say, KSE and SMPng, will never be MFC’ed because of the architecture change introduced by this.

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

FreeBSD 5.2.1-RELEASE and -HEAD news

Kernel

Scott Long today announced the release. This is a point release over 5.2-RELEASE which addresses many critical bugs.

The -CURRENT have already differentiated from the RELENG_5_2 branch, say, 5.2.1-RELEASE by this time. The most significant differences are:

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

FreeBSD committer 徐逸锋先生访谈

Kernel

FreeBSDChina社区最近采访了徐逸锋(David XU),一位来自中国大陆的FreeBSD src committer。徐逸锋先生在FreeBSD KSE项目中做出了相当多的贡献,在这次访谈中,他谈到了关于自己参加FreeBSD开发的一些经历、KSE、SMPng以及关于FreeBSD的一些其他事情。我们非常感谢徐先生接受我们的采访,也希望这次访谈能够帮助大家进一步了解FreeBSD。

李鑫(以下简称「李」):可否请简要介绍一下关于您的一些基本情况?
徐逸锋(以下简称「徐」):我是浙江绍兴人,现年35岁,大学毕业后工作过好几个地方,现住在杭州,已婚。

李:是什么促使您参与到FreeBSD的开发中的呢?
徐:我在成为FreeBSD src committer以前,一直在使用FreeBSD, 并且对FreeBSD的POSIX thread(PThread)支持不满意,一直希望有一个性能更好的PThread支持,在2002年,我有幸与Julian Elischer在将FreeBSD内核线程化上做了大量的交流工作,Julian Elischer非常友好地帮助我成为src committer.

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

Preparing for an interview with David Xu

Kernel

Today folks at FreeBSDChina suggested me to have an interview with FreeBSD’s David XU (Yifeng XU), who is an active committer, and possibly the only src committer living in the mainland China.

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