Minix 3 简介

上传人:无*** 文档编号:134702220 上传时间:2022-08-13 格式:DOCX 页数:11 大小:196.36KB
收藏 版权申诉 举报 下载
Minix 3 简介_第1页
第1页 / 共11页
Minix 3 简介_第2页
第2页 / 共11页
Minix 3 简介_第3页
第3页 / 共11页
资源描述:

《Minix 3 简介》由会员分享,可在线阅读,更多相关《Minix 3 简介(11页珍藏版)》请在装配图网上搜索。

1、Minix3简介网址:编辑:余峰作者:余峰来源:时间:2011-10-29 07:05:08Introduction to MINIX3MINIX3简介Andrew S. TanenbaumGuhnoo Yang译How often have you rebooted your TV set in the past year? Probably a lot less than you have rebooted your computer. Of course there are many reasons for this, but increasingly, nontechnical use

2、rs dont want to hear them. They just want their computer to work perfectly all the time and never crash. MINIX 3 is a project to develop an operating system as reliable as a TV set, for embedded systems and mission critical applications, but also for future $50 single-chip laptops and general deskto

3、p use. The focus is being small, simple, and reliable. Note: This is the last entry for the Alternative OS Contest.过去你重启电视机有多频繁?可能远比重启你的计算机少吧.当然,虽然这是由多方面”原因”所致,但非技术用户从不希望听这些解释.他们只希望自己计算机能很好地工作永不崩溃. MINIX3是这样一项工程:不仅为嵌入式系统,重要任务应用,而且还包括未来售价仅$50的单芯片手提电脑和普通桌面等用途开发像电视机一样可靠的OS.它关注的是小巧,简单,可靠等.注意:这是可选OS内容的最后

4、一项.History历史MINIX 3 has a bright future but somewhat checkered past. The first version, MINIX 1, was released in 1987 and was the first UNIX clone with all the source code available. It developed rapidly and soon had its own USENET newsgroup (comp.os.minix), with 40,000 subscribers within 3 months,

5、a large number at a time when the Internet was only available to university researchers and students. One of the early MINIX adopters was a Finnish student named Linus Torvalds, who went out and bought a PC just to run MINIX, studied it very carefully, and then decided to write his own operating sys

6、tem, inspired by MINIX. Although Linus knew MINIX very well, he didnt steal any code from it, as some people have alleged. Linus system grew into the modern Linux system. MINIX author, Andrew Tanenbaum and Torvalds have had some fairly public discussions on operating system design, originally in1992

7、and most recently in2006.MINIX3未来一片光明,但它也有坎坷的过去.第一版, MINIX1,发布于1987年,它是第一个完全自主代码的UNIX克隆.它发展迅速,很快就拥有属于自己的新闻组(comp.os.minix), 3个月内订阅用户数达到4W,这个数目在当时互联网仅在大学中研究人员和学生间使用的时代已经是非常巨大的数字了.早期使用MINIX的那批用户之一就有芬兰的学生Linus Torvalds,他为运行MINIX特意买了台计算机,在仔细研究MINIX后,突获灵感,决定开发一个属于他自己的OS.虽然Linus对MINIX了如指掌,但他并不像有些人指责的那样剽窃M

8、INIX的代码.他的OS逐渐成长为现在的Linux系统. Andrew Tanenbaum与Torvalds就OS设计理念有些公开的讨论,最早一次在1992年,最近一次在2006年. 注: I.E., Tanenbaum-Torvalds Debate与Tanenbaum-Torvalds Debate: Part IIRebirth重生Although MINIX was (and still is) widely used used for teaching operating systems courses at universities, it got a new impetus in

9、 2005 when Tanenbaum assembled a new team of people to completely redo it as a highly reliable system. MINIX 3 has some history with MINIX 1 and MINIX 2 (released in 1997 as a POSIX-conformant OS), but it is really a new system (analogous to the relationship between Windows XP and Windows 3.1).尽管MIN

10、IX曾经(现在也是)广泛被用于大学教授OS课程,但Tanenbaum于2005年组建了一个新团队为实现高可靠系统完全重写了MINIX.虽然MINIX3与MINIX1和MINIX2(符合POSIX规范的OS,发布于1997年)有着千丝万缕的历史关系,但它是一个全新的系统(类似于WinXP与Win3.1的关系).Various studies have shown that software broadly contains something like 6-16 bugs per 1000 lines of code and that device drivers have 3-7 times

11、as many bugs as the rest of the operating system. When combined with the fact that 70% of a typical operating system consists of device drivers, it is clear that device drivers are a big source of trouble. For Windows XP, 85% of the crashes are do to bugs in device drivers. Obviously, to make OSes r

12、eliable, something has to be done to deal with buggy device drivers. Building a reliable system despite the inevitable bugs in device drivers was the original driving force behind MINIX 3.各种研究表明软件普遍存在如下规律:每1K行代码包含6至16个Bug,设备驱动程序中的Bug数是OS其余部分的3至7倍.再思考如下事实:典型OS的70%是设备驱动程序.这就很容易得出如下结论:设备驱动程序是主要的出错源.显然,

13、要让OS可靠,需要对Bug丛生的设备驱动程序做点什么.创建可靠系统需要”隐藏”设备驱动程序中无法回避的Bug,这就是MINIX3背后的指导方针.Design设计The approach that MINIX 3 uses to achieve high reliability is fault isolation. In particular, unlike traditional OSes, where all the code is linked into a single huge binary running in kernel mode, in MINIX 3, only a tin

14、y bit of code runs in kernel mode-about 4000 lines in all. This code handles interrupts, process scheduling, and interprocess communication. The rest of the operating system runs as a collection of user-mode processes, each one encapsulated by the MMU hardware and none of them running as superuser.

15、One of these processes, dubbed thereincarnation server 注:译为轮回服务,这是一个后台服务进程.当某个服务出错时,在轮回服务的帮助下出错的服务能自动重新运行, keeps tabs on all the others and when one of them begins acting sick or crashes, it automatically replaces it by a fresh version. Since many bugs are transient, triggered by unusual timing, in

16、most cases, restarting the faulty component solves the problem and allows the system to repair itself without a reboot and without the user even noticing it. This property is called self healing, and traditional systems do not have it.MINIX3为了构架出高可靠性的OS采用了故障隔离的方式.传统的OS把所有的代码链接到一个巨大的运行在内核模式的二进制文件中,事实

17、上, MINIX3与之截然不同,它只有很小部分代码运行在内核模式 总共约4K行左右.这些代码处理中断,进程调度,进程间通信等.余下的OS代码为用户模式下的进程代码,各个进程都由MMU(Memory Management Unit)硬件所独立开且无需超级用户权限就能正常运行.任何设备驱动进程出错时,在轮回服务的帮助下,出错的进程都能自动重新运行注:服务层位于设备驱动层上,为什么驱动出错,还可以通过轮回服务来恢复呢?.由于进程的Bug只在该进程所分得的时间片内才会表现出来,因此,在绝大多数情况下,重运行出错的组件是可以解决问题,甚至用户都不会察觉到有出错,这让系统无需重启就能自我修复.这就是所谓的

18、自康复,传统系统不具备该特性.The structure of MINIX 3 is shown in Fig. 1. It is constructed as a series of layers. At the bottom, running in kernel mode, is a microkernel, consisting of about 3000 lines of C and 800 lines of assembler. Above that comes a layer of device drivers, with each driver in a separate use

19、r-mode process to ease in replacing it should it fail. Then come the servers, which form the core of the operating system. These include the reincarnation server mentioned above, the file server, the process manager, and others, including the X server, the data store, and various others. Finally, on

20、 top of that come the user processes. Although internally, MINIX 3 is completely different from other UNIX systems, it supports the standard POSIX interface to applications, so normal UNIX software can be ported fairly easily.MINIX3的结构如图1所示.它由多层构成.最底层运行在内核模式下,这是由3K行C代码和800行汇编代码所组成的微内核.往上是设备驱动层,各个驱动运

21、行在用户模式下独自的进程地址空间内,方便当其出错时被清除替换.再往上是服务层,该层为OS的核心层,它包括了:前面提过的轮回服务,文件服务,进程管理, X服务,数据存储等.最上层为用户进程.虽然MINIX3内部与UNIX截然不同,但它支持应用程序的POSIX接口规范,所以很容易把常见的UNIX软件移植到MINIX3上.Fig. 1. The MINIX 3 architecture图1. MINIX3的构架The components communicate by passing fixed-length messages. For example, a user process request

22、s file I/O send sending a message to the file server, which then checks its cache and if the needed block is not present, sends a message to the disk driver process to go get the block. While sending a message adds a little bit of overhead (about 500 nsec on a 3-GHz Pentium 4), the system is still q

23、uite responsive. For example, a complete system build, which requires over 120 compilations, takes well under 10 sec.组件间通过发送定长消息进行通讯.例如,一个用户进程发送一条消息给文件服务来请求文件I/O,文件服务查看高速缓冲中是否有所需块,若无则向磁盘驱动进程发送获取该块的请求.当然,发送消息是有开销的(奔四3GHz的芯片约需500纳秒),但系统还是能很快响应.例如,建立一个完整的系统需要120次编译,这在10秒内就可以完成.User View用户预览From the use

24、rs point of view, MINIX 3 looks like UNIX, except less bloated. It comes with the X Window System and over 400 standard UNIX programs, including: Shells: ash, bash, pdksh, rsh Editors: emacs, nvi, vim, elvis, elle, mined, sed, ed, ex Language tools: cc, gcc, g+, bison, flex, perl, python, yacc Progr

25、amming tools: cdiff, make, patch, tar, touch Networking: ssh, telnet, ftp, lynx, mail, rlogin, wget, pine File utilities: cat, cp, bzip2, compress, mv, dd, uue, GNU utilities Text utilities: grep, head, paste, prep, sort, spell, tail Administration: adduser, cron, fdisk, mknod, mount, cvs, rcs Games

26、: dungeon, nethack从用户角度来看, MINIX3很像UNIX,除了不那么臃肿. MINIX3有X窗口系统和超过400注:现已超过650个标准UNIX程序: Shell: ash, bash, pdksh, rsh 编辑器: emacs, nvi, vim, elvis, elle, mined, sed, ed, ex 语言工具: cc, gcc, g+, bison, flex, perl, python, yacc 编程工具: cdiff, make, patch, tar, touch 网络: ssh, telnet, ftp, lynx, mail, rlogin,

27、wget, pine 文件实用工具: cat, cp, bzip2, compress, mv, dd, uue, GNU utilities 文本实用工具: grep, head, paste, prep, sort, spell, tail 系统管理: adduser, cron, fdisk, mknod, mount, cvs, rcs 游戏: dungeon, nethackCurrently the user interface is just X, but someday a GUI may be added if a suitable lightweight GUI can b

28、e found. Here are somescreen shots.当前的用户界面仅有X,但以后如果有适合的轻量级的GUI那么MINIX3也是会采用的.这有些截图.Availability有效性MINIX 3 is open source software, under the BSD license. It has its own Website from which the a bootable CD-ROM image containing all the sources and binaries can be downloaded. To install it, just boot

29、the CD-ROM, login as root, and type: setup. Installation takes about 10 minutes. After installation, a large number of packages can be installed from the CD-ROM or the Website by just typing: packman to select the choices. Currently MINIX 3 runs on x86 hardware, but ports to the PowerPC and Xscale a

30、re underway. It also runs fine on virtual machines such as VMware and Xen.MINIX3是一款采用BSD授权协议的开源软件.它有自己的网站,从引导光盘镜像到所有源码和二进制文件都可下载.安装时,只需光盘引导,以root身份登陆,键入setup即可.安装约需10分钟,之后,键入packman从光盘或网站上选择安装各类软件包.当前MINIX3只能运行在X86平台上,但我们已经开始将其移植到PowerPC和Xscale平台上. MINIX3也可以在像是VMware和Xen这样的虚拟机上正常运行.Since MINIX 3 wen

31、t public in late 2005, the Website has had over 300,000 unique visitors and the CD-ROM image has been downloaded some 75,000 times. Currently, the site is getting over 1000 visitors a day. There is an active Google USENET newsgroup, comp.os.minix, where people ask and answer questions, post new soft

32、ware, and discuss MINIX 3. MINIX 3 is a community effort and your help is most welcome. Go get the system, try it out, and join the future.MINIX3从2005年底向公众发布以来,官网独立访问人数已达30W,光盘镜像下载量已达7.5W次.当前的日访量为1K.comp.os.minix是一个活跃的Google新闻组,大家可以在此提出问题和解答问题,发布新软件,讨论MINIX3等. MINIX3关注社区的意见,非常欢迎您的加入.去下载安装试试吧,请加入我们.L

33、inux的“前辈”-Minix,目前它已经升级到第三版了,从Minix的官方主页上可以找到,从Minix 3.0版开始其就支持图形用户界面了,最新版本为Minix 3.1.2,我们先来看看它的界面,效果不错吧?Minix 3.1.2截图/1Minix 3.1.2截图/2Minix的背景知识图 Minix LogoMinix是Linux操作系统开发的基础,其作者是Linux之父-Linus的大学老师,而且后来他俩还爆发了关于操作系统巨内核和微内核之争。虽然Linux采用的是巨内核,而且获得了成功,但微内核具有更先进的操作系统设计思想。从Minix官方网站上可以下载其发行的CD版,该版本包含了Mi

34、nix操作系统的源码,对于只是想尝尝鲜的朋友可以从http:/www.minix3.org/download/minix3_1_1_small_vmware_256MB_1GB.zip下载VMware版本来体验。根据官方的说法,Minix 3和Minix 1,Minix2有较大差异,前两者主要用于教学,而第三版目标还用于资源有限的嵌入式系统的应用,真是不得了哦。Minix3 具有稳定,可扩展和安全的特点。其核心代码只有4000行。支持POSIX,TCP/IP, X-Window,C/C+等Unix典型特性。驱动程序开源,并且运行于用户空间,支持多用户和多进程。Minix相关资源Minix下载:http:/www.minix3.org/download/;源码下载地址:http:/www.minix3.org/download/minix-src-current.tar.gz;Minix官方文档网址:http:/www.minix3.org/doc/。

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!