赞一个minidump
Peter Wemm大长辈实现了在i386和amd64平台上
共216篇文章。
Peter Wemm大长辈实现了在i386和amd64平台上
有人在有人问是不是要实现类似FreeBSD的ZERO的时候怒啦,说啦:
I claim that Mach people (and apparently FreeBSD) are incompetent idiots. Playing games with VM is bad. memory copies are also bad, but quite frankly, memory copies often have less downside than VM games, and bigger caches will only continue to drive that point home.
可是:
ZERO_COPY_SOCKET 并非默认启用的功能。您也老大不小的人了,怎么老改不了这小孩的毛病呢?
UFS的目录项中的文件名字段是定长的(参见sys/ufs/dir.h),这样也许我们可以把symlink的内容(如果够短的话)保存到目录项,而不是inode所指定的fragment上,从而访问symlink可以节省最多两次I/O操作。
昨天活动的时候说FreeBSD有三千万行代码,回来仔细查了一下这个数字偏差很大,在6-STABLE上应该是一千二百七十八多万行,因此应该说是一千多万行,在此向听众们道歉。
我们即将发布6.1-RC1。虽然消息有些突然,但总体来说,现在6.1-RC1的情况还算不错,最后的那些问题希望能在一周内搞定。
So I finally got to figure out that Charlie’s kernel was built on Dec 20 last year, I will upgrade it to latest FreeBSD/amd64 7.0-CURRENT.
Charlie is the desktop box which has many of my hacks on it :-)
📜 历史文件已不具备现实意义
这次提交引入的正是后来大名鼎鼎
的jemalloc,它取代了FreeBSD原有 的 phkmalloc,自FreeBSD 7.0起成为系统默认的malloc(3)实现(参 见jemalloc(3)及Jason Evans在BSDCan 2006发表的设计论文),后来也被Firefox、Redis、Android等众多项目采用。
Jason Evans同学返回FreeBSD的第一件事就是malloc(3)的实现换掉了。这个完全重写malloc(3)实现带来了以下功能:
在FreeBSD开发手册中,有一部分内容介绍了关于系统调用。里面有这样一段话:
Linux is a UNIX like system. However, its kernel uses the same system-call convention of passing parameters in registers MS-DOS does. As with the UNIX convention, the function number is placed in EAX. The parameters, however, are not passed on the stack but in EBX, ECX, EDX, ESI, EDI, EBP:
open:
mov eax, 5
mov ebx, path
mov ecx, flags
mov edx, mode
int 80h
This convention has a great disadvantage over the UNIX way, at least as far as assembly language programming is concerned: Every time you make a kernel call you must push the registers, then pop them later. This makes your code bulkier and slower. Nevertheless, FreeBSD gives you a choice.
可能有人会问了,为什么说UNIX way (将参数压栈) 更好呢?
After it has runned 4.x series for a too long time, finally kensmith@ has stepped up to upgrade it.
Needless to say what this means, just upgrade all your boxes to FreeBSD 6.x. FreeBSD 6.0-RELEASE is the best release we have released in the recent years, and the best .0 release ever, as proven by many installations and developers’ code review.
在这里。ZFS提出了很多很有意思的概念,值得一看。
比较感兴趣的几个地方:(1)Solaris的byteswap实现;(2)DSL;(3)ZIL。暂时还没有仔细看ZIL,但这里有一个很有意思的设计: