The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: lm@mcvoy.com (Larry McVoy)
Subject: [TUHS] OT: critical Intel design flaw
Date: Wed, 3 Jan 2018 16:51:03 -0800	[thread overview]
Message-ID: <20180104005103.GF1534@mcvoy.com> (raw)
In-Reply-To: <20180103234025.GA23371@thunk.org>

On Wed, Jan 03, 2018 at 06:40:25PM -0500, Theodore Ts'o wrote:
> On Wed, Jan 03, 2018 at 01:27:19PM -0500, Clem Cole wrote:
> > > This slowdown (which is not much -- L4 shows it is about 5% or so)
> > >
> > ???I agree.   We came to the same conclusion in the early/mid 1990's  with
> > Mach and Chorus.   In fact, the UI 'requirements for modern OS' document
> > (which is part of why AT&T got behind Chorus for the never completed
> > SVR5/R6 stuff - I'll see if I can find a copy) was based on that work.
> > 
> > The OS weenies at the time felt that the cost was low enough and hardware
> > cheap enough that of course kernels would be the way to go.
> 
> It's possible to keep the slowdown at 5%, but how much extra
> engineering work does it take to get the performance gap down to that
> level?  And during that time while the micro kernel team is playing
> catchup, if the OS with the monolithic kernel adds new features to the
> OS, how much additional time does it take to add those features to the
> OS?  (Regardless of whether the features are implemented in userspace,
> or in the kernel, or some combination of the two.)

To add to Ted's points.  I was good friends with one of the core guys
on the QNX team a long time ago (he died early in 1998 of brain cancer.
Yuck).  The QNX micro kernel really was micro, the kernel fit entirely in
a 4K instruction cache on x86 (thanks CISC).  It did very, very little.
It took a lot of thinking and discipline to figure out what the kernel
should do and what should be delegated.  There was constant pressure to
put more stuff in the kernel.

My buddy told me that there were only 4 people who were allowed to touch
the actual kernel code.  And they all both backed each other up and
second guessed each other in code reviews.  They counted instructions
and cache misses each time they changed stuff.

As a result, the QNX kernel of the late 1980's and 1990's was super
super fast.  I ran as much as 10 users logged in to a 80286 running
QNX doing text editing and compiles and it actually worked.  I'd 
argue that it worked better than Unix would have worked on that 
miserable processor.

QNX made it work.  I think they slowed down when they put full posix in
but they made it work.

The problem is that most people / companies are not that disciplined.
Oh, we need this for $CUSTOMER and this for $BENCHMARK and this for
$STANDARD and the easiest way to get it is to shove it into the kernel.

I'd argue that microkernels are indeed the best answer but only if you
have the best programmers.  Which nobody does even though everyone claims
they do.

Monolithic kernels are far more amenable to less than awesome people
messing with them.  Sad but true, I'd love a microkernel world but I
fear we are too stupid to get it.  Something, something, something,
this is why we can't have nice things.

--lm


  reply	other threads:[~2018-01-04  0:51 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-03 13:43 Noel Chiappa
2018-01-03 14:26 ` Clem Cole
2018-01-03 17:28   ` Bakul Shah
2018-01-03 17:46     ` ron minnich
2018-01-03 18:28       ` Bakul Shah
2018-01-03 18:27     ` Clem Cole
2018-01-03 18:39       ` Forrest, Jon
2018-01-03 18:50         ` ron minnich
2018-01-03 19:56       ` Paul Winalski
2018-01-03 20:24       ` Bakul Shah
2018-01-03 23:40       ` Theodore Ts'o
2018-01-04  0:51         ` Larry McVoy [this message]
2018-01-04  2:13           ` Bakul Shah
2018-01-04  2:26             ` Larry McVoy
2018-01-04  3:31               ` Bakul Shah
2018-01-04  2:09         ` Arthur Krewat
2018-01-04  3:21           ` Dan Cross
2018-01-04 17:42             ` Arthur Krewat
2018-01-04 11:53         ` Harald Arnesen
2018-01-04 14:03           ` Clem Cole
2018-01-04 15:54             ` Larry McVoy
2018-01-04 16:45             ` Theodore Ts'o
2018-01-04 17:10               ` Andy Kosela
2018-01-04 17:17               ` Larry McVoy
2018-01-04 18:29                 ` Bakul Shah
2018-01-04 18:50                   ` Larry McVoy
2018-01-04 20:52                     ` Warner Losh
2018-01-04 20:56                       ` Bakul Shah
2018-01-04 20:56                   ` Theodore Ts'o
2018-01-04 21:16                     ` Warner Losh
2018-01-04 22:55                       ` Andy Kosela
2018-01-05 14:27                         ` Clem Cole
2018-01-04 21:17                     ` Bakul Shah
2018-01-04 17:20               ` Tom Ivar Helbekkmo
2018-01-04 17:28                 ` Warner Losh
2018-01-03 17:07 ` Bakul Shah
  -- strict thread matches above, loose matches on Subject: below --
2018-01-03 17:06 Norman Wilson
2018-01-03  7:53 Andy Kosela
2018-01-03 11:57 ` Ron Natalie
2018-01-03 14:22   ` Random832

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180104005103.GF1534@mcvoy.com \
    --to=lm@mcvoy.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).