FreeBSD
共692篇文章。
升级了FreeBSDChina.org的论坛
没完没了的phpBB漏洞!!再也不能忍下去了!
今天终于找到alu跟他要了www的root,然后开始升级。
首先import新版本。
然后开始合并冲突,phpBB这群家伙居然到了这么多的patchlevel还在改表结构,真不知道他们的大脑是用来想什么的,预想www必然会出问题,果然,不过一切在掌控之中。
FreeBSD 6.0 July snapshot will be released soon
Looking forward to it. Only 1 week left to RELENG_6!
My 24th Birthday
Thanks goes to my parents, and yes, today I’m 23 yrs old.
(Believe it or not, FreeBSDChina.org is 3 years old today, too)
The ULE issue
Now I got (partially) the point:
- A newly fork’ed thread grabs Giant
- Subsequently, the mutex procedure will call
turnstile_wait - However, the
tdis->td _sched ->ke _runq NULL(means that some part of the new thread is not initialized completely) - So boom! panic.
Interestingly this does not happen in !PREEMPTION case.
Now my question are:
- who forks?
- is it the child? the parent?
- why the initialization is not completed with a wrong result?
Still ULE+PREEMPTION
I have done several experiments/asserts to ensure that the panic is related to ULE+PREEMPTION case only.
- ULE: no panic
- 4BSD: no panic
- 4BSD+PREEMPTION: no panic
My latest progress is that I found that sched_switch in ULE for the threaded case, can decide whether subsequent call would panic. Investigating.
Working on ULE
My company has offered me some test equipment (namely, a HP 360 with ILO, which is *great* for debugging at home!), and I has started to trip over the ULE code and find for bugs.
keys of (j),(z), etc. in FreeBSD scheduler related stuff's comments
You can obtain latest list from sys/sys/proc.h:
|
cvs skill to minimize lock period
Today Giorgos Keramidas (keramida@) has noted that the following skill that can minimize lock period:
- save the commit message to a file (say ~/commitlog)
- cvs ci -F ~/commitlog file[…]
ULE: kseq_nice_rem is called too much!
It seems that I have hit a bug, where kseq_nice_rem is being called too much. Have read the code and added some KASSERT/MPASS‘es.