FreeBSD

共692篇文章。

Bug with sched_lend_prio?

Kernel

I have enabled PREEMPTION, FULL_PREEMPTION with ULE. Now I get strange result here:

  • propagate_priority gets a TD_ON_LOCK(td)
  • It tries to panic(), unfortunatelly, ts->ts_lockobj here is NULL
  • A fatal trap 12 happens.

It seems that ts->ts_lockobj was touched by sched_lend_prio, for unknown reasons. Maybe there is some lock releases?

参与评论:Bug with sched_lend_prio?

Proposed new RELENG_5_3 errata candidate

Kernel

The following change is considered as a new errata candadite from my view:

This can improve stability, however we can not easily prove that it is producable :-) So I have turned that to re@.

参与评论:Proposed new RELENG_5_3 errata candidate

DragonFlyBSD on SATA: Not so success

Kernel

So I finally tried DragonFly on one of our test servers (not my desktop :-). It seems that DragonFly still have some issues with the SATA devices. I am trying to fix it, maybe by porting some good FreeBSD ATAng code.

DragonFly has gave us some good examples that how a user-friendly operating system should, and some different way on designing a MP-capable architecture. Thanks, Matt!

参与评论:DragonFlyBSD on SATA: Not so success

magic to build package on different FreeBSD versions

Development

Sometimes you may need to build some packages for older/newer versions of FreeBSD. That is simple if you use jail and other mechanisms.

In order to be successful, you need a “Full jail” say ordinary jail, installed with binary that is built from the target version of FreeBSD. For instance, build a 6.0 userland by sync’ing code to -HEAD.

Secondly, you need to replace two files in the jail: uname(1) and sysctl(1). What you have to do is to use sed to replace both FreeBSD version and __FreeBSDVersion (say, kern.osreldate), according to porters’ handbook.

阅读全文…:magic to build package on different FreeBSD versions(本文约198字,阅读大致需要1分钟)
搜索文章…(按ESC退出)