Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: shess@one.net (Scott Hess)
Subject: Re: Apple Mach IS NOT a microkernel!!!!!
Date: 1997/02/18	[thread overview]
Message-ID: <SHESS.97Feb18074753@howard.one.net> (raw)
In-Reply-To: 5ebg1m$1en@news3.digex.net


In article <5ebg1m$1en@news3.digex.net>,
	John Kheit <jkheit@cnj.digex.net> 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 <shess@one.net> (606) 578-0412 http://w3.one.net/~shess/
<Favorite unused computer book title: The Idiots Guide to the Zen
                 of Dummies in a Nutshell in Seven Days, Unleashed>



  parent reply	other threads:[~1997-02-18  5:00 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-18  5:00 Apple Mach IS NOT a microkernel!!!!! Joaquin Menchaca
1997-02-17  5:00 ` Pohl Longsine
1997-02-18  5:00 ` Ray Offiah
1997-02-18  5:00 ` stephen farrell
1997-02-18  5:00   ` Nathan M. Urban
1997-02-18  5:00   ` sschaper
1997-02-18  5:00 ` John Kheit
1997-02-18  5:00   ` Dan Hildebrand
1997-02-18  5:00   ` Charles William Swiger
1997-02-18  5:00   ` Scott Hess [this message]
1997-02-18  5:00     ` Christian Kuhtz
1997-02-19  5:00     ` Dan Hildebrand
1997-02-19  5:00     ` Michael Hunter
1997-02-19  5:00       ` Lawson English
1997-02-19  5:00         ` JC Vollmer
1997-02-18  5:00   ` John
1997-02-18  5:00   ` Ken Lui
1997-02-19  5:00   ` Terje A. Bergesen
1997-02-19  5:00   ` John C. Randolph
1997-02-20  5:00     ` John Kheit
1997-02-20  5:00       ` Pohl Longsine
1997-02-20  5:00       ` Lawson English
1997-02-20  5:00         ` John C. Randolph
1997-02-20  5:00           ` Lawson English
1997-02-21  5:00             ` John C. Randolph
1997-02-21  5:00         ` John Kheit
1997-02-21  5:00           ` Lawson English
1997-02-24  5:00             ` John Kheit
1997-02-19  5:00   ` Robert Cassidy
1997-02-19  5:00     ` Pohl Longsine
1997-02-20  5:00       ` John Kheit
1997-02-20  5:00   ` Scott Hess
1997-02-21  5:00     ` Joaquin Menchaca
1997-02-22  5:00       ` Pohl Longsine
1997-02-21  5:00   ` Ryan Tokarek
1997-02-23  5:00     ` Gary W. Longsine
1997-02-22  5:00   ` Ryan Tokarek
     [not found]     ` <5eodgh$ors@lynx.dac.neu.edu>
1997-02-22  5:00       ` Ryan Tokarek
1997-02-24  5:00         ` Doug Santry
1997-02-22  5:00   ` Scott Hess
1997-02-22  5:00   ` Gary W. Longsine
1997-02-22  5:00   ` Gary W. Longsine
1997-02-21  5:00     ` Lawson English
1997-02-22  5:00       ` Gary W. Longsine
1997-02-21  5:00     ` Mark Eaton
1997-02-21  5:00     ` John Norstad
1997-02-22  5:00   ` Gary W. Longsine
1997-02-23  5:00     ` Alex Kac
1997-02-25  5:00     ` Garance A Drosehn
1997-02-23  5:00   ` Gary W. Longsine
1997-02-23  5:00   ` Jonathan Hendry
1997-02-23  5:00   ` Gary W. Longsine
1997-02-23  5:00     ` John Norstad
1997-02-23  5:00     ` Boshon Sprague
1997-02-23  5:00     ` Mark Eaton
1997-02-24  5:00   ` Gary W. Longsine
1997-02-24  5:00     ` Maury Markowitz
1997-02-19  5:00 ` Fred Trottelhauer
1997-02-19  5:00   ` Jeffrey M. Vickery
1997-02-22  5:00 ` Shimpei Yamashita
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox