MAXUSERS=0意味着什么?
自从01年dillon commit之后一直就用着MAXUSERS 0。今天alu提到说MAXUSERS不合适的时候有可能会造成系统负荷能力下降,于是看了代码,发现MAXUSERS是根据内存大小算出来的,32-512之间。另外,实践证明MAXUSERS看来不能设置为2048(起不来)……
共 257 篇文章。
自从01年dillon commit之后一直就用着MAXUSERS 0。今天alu提到说MAXUSERS不合适的时候有可能会造成系统负荷能力下降,于是看了代码,发现MAXUSERS是根据内存大小算出来的,32-512之间。另外,实践证明MAXUSERS看来不能设置为2048(起不来)……
To quote Matthew Dillon:
| |
Yes, it is long awaited and Kirk recently announced that his new book (written with George Neville-Neil) about the design and implementation of the FreeBSD 5.2 Operating System has been finished, and will be ready for sale in early August 2004 (ISBN 0-201-70245-2, Addison-Wesley).
Olivier Houchard (cognet) has just committed several files to support the ARM architecture. I have already slipped tags for this change.
From the commit log:
Close an interrupt race between vm_page_lookup() and (typically) a vm_page_sleep_busy() check by using the correct spl protection. An interrupt can occur inbetween the two operations and unbusy/free the page in question, causing the busy check to fail and for the code to fall through and then operate on a page that may have been freed and possibly even reused. Also note that vm_page_grab() had the same issue between the lookup, busy check, and vm_page_busy() call.
I am thinking of the possiblity of backporting / porting several DragonFly and NetBSD, even OpenBSD’s features, to FreeBSD, to increase its performance, stablity, and the code readablity.
Shortly after OpenBSD’s 3.5 splash web, Matthew Dillon has released a thrid “known stable” iso for DragonFlyBSD. It can be obtained from ftp://ftp.dragonflybsd.org/iso-images/dfly-20040502.iso.gz.
This snapshot included many new features, yet stable:
What’are LORs? To quote Robert Watson:
“These warnings are generated by Witness, a run-time lock diagnostic system found in FreeBSD 5-CURRENT kernels (but removed in releases). You can read more about Witness in the WITNESS(4) man page, which talks about its capabilities. Among other things, Witness performs run-time lock order verification using a combination of hard coded lock orders, and run-time detected lock orders, and generates console warnings when lock orders are violated. The intent of this is to detect the potential for deadlocks due to lock order violations; it’s worth observing that Witness is actually slightly conservative, and so it’s possible to get false positives. In the event that Witness is accurately reporting a lock order problem, it’s basically saying “If you were unlucky, a deadlock would have happened here”. There are a couple of “well known” false positives, which we need to do a better job of documenting to prevent spurious reports. The non-well-known ones typically correspond to bugs in newly added locking, as lock order reversals usually get fixed pretty quickly because Witness is busy generating warnings :-).”
刚刚揭露的那个TCP漏洞OpenBSD在1999年就修正了……和FreeBSD现在用的方法类似,只是更严厉一些。折服了……
·毕业设计翻译
·周一、四游泳
·完整的调度队列实现(本地)、远程调度队列的接口部分
·调度器设计文档
·本地调度的实现细节设计(参考ULE的一些思想)、队列的threadsafe处理
·软件学院的事情
·开始撰写毕业论文