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: fed41,affa3c18af33ae87 X-Google-Attributes: gidfed41,public X-Google-Thread: f678f,affa3c18af33ae87 X-Google-Attributes: gidf678f,public X-Google-Thread: f9256,affa3c18af33ae87 X-Google-Attributes: gidf9256,public X-Google-Thread: f7d63,affa3c18af33ae87 X-Google-Attributes: gidf7d63,public X-Google-Thread: 1035b6,affa3c18af33ae87 X-Google-Attributes: gid1035b6,public X-Google-Thread: 10f7da,affa3c18af33ae87 X-Google-Attributes: gid10f7da,public From: John Hornkvist Subject: Re: Apple Mach IS NOT a microkernel!!!!! Date: 1997/02/18 Message-ID: <5ed74c$k4c@nyheter.chalmers.se>#1/1 X-Deja-AN: 219697322 References: <5ebg1m$1en@news3.digex.net> Cc: jkheit@cnj.digex.net Organization: Chalmers Tekniska H�gskola Reply-To: sorry@no.more.spams 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 <5ebg1m$1en@news3.digex.net> John Kheit wrote: >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. 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... Well... Micro kernels do have some nice chracteristics. But, as with most things, it has become more of something that "we have, too" than a tool used to provide better operating systems. >Why, b/c putting things outside the kernel, in general, results in >some serious performance penalties for no real functional benefit. Putting things outside the kernel results in performance problems if you don't move enough out of the kernel. The primary cost is switching between user and supervisor moder, and if you have too much functionality in the kernel, you'll be doing a lot of switching. You can make a micro kernel run fast, just as you can make an objective C program run fast. You just have to remember where the problems are. I'm not sure that Mach is the best place to start if you really want a good micro kernel, though. The monolithic but message passing Mach 2.5 is an excellent foundation for an OS, though. >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. It is reduced, but not in a way that will matter on a personal computer. More modular approaches make sense if you run on MPP systems, for example. So, I hope Apple redesigns the kernel before they come out with an OS for systems with more than, say, 64 processors. :) >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. Micro kernel design is similar to RISC chip design; you try to find the most commonly used functions, and then speed those up. Less common things are done by combining simpler operations. If you use static binding and inlining, C++ would be good for the lowest level of an OS, I think. Remember that with C++ object orientation seems to end as soon as you compile... By the way, I would think that NEXTSTEP/OPENSTEP stresses the OS in ways that a normal operating system may not do, and therefore the kernel has to be optimized differently. That may affect the choice of kernel; Mach 3 or "the Copland micro kernel" are unlikely to be optimized for running OPENSTEP. NeXT's Mach is likely to be highly optimized for that purpose. In addition to that it is stable, has been ported to many architectures, and is the foundation for OPENSTEP today. All in all, there is nothing wrong with cool technology, as long as it doesn't get away of important matters. --- John Hornkvist --- nhoj at cd dot chalmers dot se Working on MSc in Computer Engineering, and MSc in Industrial Engineering and Management of Technology Does anyone need a NEXTSTEP/OPENSTEP savvy programmer for the summer of '97? Sorry for not leaving my address in the header, but I get too many spam mails already... If you want to reach me, try nhoj at cd dot chalmers dot se