From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cbb9,affa3c18af33ae87 X-Google-Attributes: gid10cbb9,public X-Google-Thread: 106bff,affa3c18af33ae87 X-Google-Attributes: gid106bff,public X-Google-Thread: 1035b6,affa3c18af33ae87 X-Google-Attributes: gid1035b6,public X-Google-Thread: f678f,affa3c18af33ae87 X-Google-Attributes: gidf678f,public X-Google-Thread: fed41,affa3c18af33ae87 X-Google-Attributes: gidfed41,public X-Google-Thread: f7d63,affa3c18af33ae87 X-Google-Attributes: gidf7d63,public X-Google-Thread: 10f7da,affa3c18af33ae87 X-Google-Attributes: gid10f7da,public X-Google-Thread: f9256,affa3c18af33ae87 X-Google-Attributes: gidf9256,public From: shess@one.net (Scott Hess) Subject: Re: Apple Mach IS NOT a microkernel!!!!! Date: 1997/02/18 Message-ID: X-Deja-AN: 219652953 References: <5ebg1m$1en@news3.digex.net> Organization: Is a sign of weakness Newsgroups: comp.sys.mac.advocacy,comp.sys.mac.programmer.misc,comp.sys.powerpc.advocacy,comp.sys.next.advocacy,comp.sys.next.programmer,comp.sys.next.misc,comp.unix.machten,comp.unix.osf.misc,comp.os.mach,comp.os.ms-windows.nt.advocacy In article <5ebg1m$1en@news3.digex.net>, John Kheit writes: jm041536@fhda.edu (Joaquin Menchaca) wrote: > OK, > > Let's get it straight guys, for those of you still confused. > The current specified Mach kernel under development (if you > want to call it that) is NOT a microkernel. To further clarify, the current Mach kernel under development is _not_ "under development" in the same sense as replacing it with some other kernel would be "under development". In fact, insofar as that comparison goes, the current Mach kernel is pretty much finished. > OSF Mach 3.0, used in mkLinux, is an actual microkernel. > Apple's Mach kernel will have features from Mach 3.0, but will > not be the true Mach 3.0. Some are jokingly calling this 'Mach > 2.5++'. Yes, this has been rehashed several times, at least in the NeXT groups. If I remember correctly, some of the issues, and at least some consensus came to this concluse (If I got it wrong, please set me straight folks :) That micro kernels tend to be more buzz word hype than valuable... Why, b/c putting things outside the kernel, in general, results in some serious performance penalties for no real functional benefit. Thus, Avie, and the folks at NeXT (now apple), who really know a thing or two about this stuff, to say the least, opted to keep things monolithic for perfromance reasons. Yet the functionality of a monolithic kernel is not reduced by its monolithicness. Umm, well, hmm. This is a rapidly evolving area, not only because there are people working on the problem of making microkernels more efficient, but because CPU speeds are outrunning I/O speeds, and main memory sizes are growing quickly (though not really getting faster). On a system like a NeXTstation, where the CPU, memory, and I/O are relatively balanced, a monolithic kernel can be easily more efficient. On a machine like a Pentium Pro 200 with 64M or 128M of RAM, a microkernel's inefficiencies start to lessen when compared to a monolithic kernel. The problem is that the system is becoming I/O bound. A monolithic kernel waiting for something to happen is no more efficient than a microkernel waiting for something to happen. On the other hand, a microkernel allows for things like filesystems to be more easily worked on and replaced, thus potentially improving the _net_ performance. Beyond that, on personal computers you tend to have a few processes using significant resources, but not necessarily doing very many kernel calls per unit of CPU time used. [Excepting web browsers, I supposed :-).] In fact, perhaps the single biggest amount of kernel activity on many systems, after virtual memory activity, is probably the context switching between apps and their windowserver. Microkernels must by nature be very focussed on context switch time as it applies to messaging, so if a microkernel were somewhat quicker there, it would probably cancel out the increase in context switches for many users. Also, I would rephrase things as "the functionality of a monolithic kernel 'as delivered by the vendor' is not reduced". But with a monolithic kernel, replacing things like filesystem drivers is much harder. [I'm not talking about CD-ROM-as-NFS-filesystem like what NeXTSTEP has. I'm talking replacing FFS with, say, an LFS, which is used from boot time onward.] Furthermore, similiar arguments about object oriented kernel design were wrung out... Namely that Mach 4.0 was done in C++, thereby making it OOP... It too might be a situation of more buzzword-checklist hype than reasoned implementation. The kernel being a low level layer of the OS, really needs to be tuned as possible, and OO'ness doesn't necessarily make much sense or add much functionality to that layer/level, and results in more of a performance hit than functionality gain. The message-passing _kernel_ needs to be insanely efficient hand-tuned C with assembly. It's in the critical path of almost every operation the system does, for all that it should only be 50k-100k. The stuff you hang off the kernel can be whatever makes the most sense. With today's larger memories, you can afford a certain amount of slop if your filesystem access patterns can be made more efficient. Obviously, if your filesystem code is 2x the size of hand-tuned C, and doesn't implement anything to improve performance, you'll have a net loss. In any case, why are we even discussing a point made by someone who compares distributed computing to "The Borg"? I _very_ much doubt that OS designers watch Star Trek in order to get wonderful new ideas about the future. [Or is the implication that the Borg run a microkernel operating system? Perhaps Amoeba.] Later, -- scott hess (606) 578-0412 http://w3.one.net/~shess/