There aren't enough words...

By: Rob Thorpe (robert.thorpe.delete@this.antenova.com), May 15, 2006 12:25 am
Room: Moderated Discussions
Tzvetan Mikov (tmikov@gmail.com) on 5/9/06 wrote:
---------------------------
>Rob Thorpe () on 5/9/06 wrote:
>---------------------------
>>
>>The problem with this issue is that there aren't enough terms of description.
>>It is most realistic to speak about OS kernel by their complexity and their level
>>of coupling. Even speaking of "micro", "hybrid" and "monolithic" doesn't go far enough.
>>
>>Taking an OS to look like this:
>>
>>Hardware
>>|
>>Hardware interfaces (ie drivers) (layer D)
>>|
>>Allocation of hardware to software (layer K)
>>|
>>Interfaces to user software (layer I)
>>|
>>User software (layer S)
>>
>>In a classic microkernel hardware interfaces, drivers, layer D, live outside the
>>kernel. Only what I have labelled layer K truely lives in kernel. And then only
>>part of that, since layer K includes filesystems which live can live in userspace.
>>
>>This kind of perspective allows you to write down clearly how many systems work.
>(Using F to represent the filesystem)
>>
>>F.e.g.
>>

>>In kernel User
>>Linux D, K, F, some of I S, some of I
>>NT4< D, K, F S, I
>>NT4> D, K, F, some of I S, some of I
>>QNX K D, S, I, F
>>Hurd D, K, some of I S, F, some of I
>>OSX D, K, F, some of I S, some of I
>>

>>
>>I'm not too sure I've described the more obscure system accurately. My ranking
>>of OSX is probably controversial. But since the microkernel can't live without
>>the BSD service there is no real sense (speaking of reliability) in saying that the BSD parts live outside the kernel.
>>
>>Even this ignores loads of other things, SysV Unix for example had a monolithic
>>kernel like Linux. But it was only ~6000 lines long, Linux is nearly a thousand times longer.
>>
>>Anyway, it certainly isn't clear from the table above which deserve to be called hybrid.
>
>I'd say that Hurd looks like a hybrid from your diagram.

Yes, Hurd is hybrid from the filesystem end.
But does this weaken the definition of hybrid? Hurd has millions of lines of linux device drivers compiled directly into it's kernel.

This is what I mean about the definition being problematic.

You could also write a kernel the other way about, ie all of D in userspace, but F in kernel space. Is that also a hybrid?

>About the "I" (Interfaces to user software) - I don't think the distrinction is
>clearcut in any OS. It doesn't matter whether the kernel's "native" semantics map
>better to POSIX or Win32. If I run Java or Wine, the entire "I" is in user mode,
>isn't it ? If not, what exactly do you mean by "I" ?

By "I" I mean things the interface to user software. To Java or Wine apps all of "I" is in userspace. But from the point of view of the system the JVM and Wine are apps themselves, and as such they have a certain (sometimes small) level of untrustworthiness.

The difference between "I" in the kernel column and "I" in the user column is what it available to the user program. A linux program can directly syscall the kernel, although most calls pass through libc. A Windows NT program cannot, every user program access must be through a service.

This offers some small extra scope for protection.

>(I guess this may turn into a philosophical discussion, but so what ?)

Yes. There are a few systems that are very difficult to place in the above categories.
< Previous Post in ThreadNext Post in Thread >
TopicPosted ByDate
Hybrid (micro)kernelsTzvetan Mikov05/08/06 04:41 PM
  Hybrid (micro)kernelsS. Rao05/08/06 06:14 PM
  Hybrid (micro)kernelsBill Todd05/08/06 06:16 PM
    Hybrid (micro)kernelsTzvetan Mikov05/08/06 07:21 PM
      Hybrid (micro)kernelsnick05/08/06 07:50 PM
      Hybrid (micro)kernelsBill Todd05/09/06 01:26 AM
        There aren't enough words...Rob Thorpe05/09/06 02:39 AM
          There aren't enough words...Tzvetan Mikov05/09/06 03:10 PM
            There aren't enough words...Rob Thorpe05/15/06 12:25 AM
        Hybrid (micro)kernelsTzvetan Mikov05/09/06 11:17 AM
          Hybrid (micro)kernelsBill Todd05/09/06 04:05 PM
  Hybrid (micro)kernelsrwessel05/08/06 11:23 PM
    Hybrid kernel, not NTRichard Urich05/09/06 06:03 AM
      Hybrid kernel, not NT_Arthur05/09/06 07:06 AM
        Hybrid kernel, not NTRob Thorpe05/09/06 07:40 AM
          Hybrid kernel, not NT_Arthur05/09/06 08:30 AM
            Hybrid kernel, not NTRob Thorpe05/09/06 09:07 AM
              Hybrid kernel, not NT_Arthur05/09/06 09:36 AM
                Linux vs MacOSX peformance, debunked_Arthur05/18/06 07:30 AM
                  Linux vs MacOSX peformance, debunkedRob Thorpe05/18/06 08:19 AM
                    Linux vs MacOSX peformance, debunkedAnonymous05/18/06 12:31 PM
        Hybrid kernel, not NTLinus Torvalds05/09/06 08:16 AM
          Hybrid kernel, not NTAndi Kleen05/09/06 02:32 PM
            Hybrid kernel, not NTmyself05/09/06 03:24 PM
              Hybrid kernel, not NTmyself05/09/06 03:41 PM
              Hybrid kernel, not NTBrendan05/09/06 05:26 PM
                Hybrid kernel, not NTLinus Torvalds05/09/06 08:06 PM
                  Hybrid kernel, not NTBrendan05/13/06 01:35 AM
                    Hybrid kernel, not NTnick05/13/06 04:40 AM
                      Hybrid kernel, not NTBrendan05/13/06 09:48 AM
                        Hybrid kernel, not NTnick05/13/06 07:41 PM
                          Hybrid kernel, not NTBrendan05/13/06 09:51 PM
                            Hybrid kernel, not NTnick05/14/06 05:57 PM
                              Hybrid kernel, not NTBrendan05/14/06 10:40 PM
                                Hybrid kernel, not NTnick05/14/06 11:46 PM
                                  Hybrid kernel, not NTBrendan05/15/06 04:00 AM
                                    Hybrid kernel, not NTrwessel05/15/06 07:21 AM
                                      Hybrid kernel, not NTBrendan05/15/06 08:55 AM
                                        Hybrid kernel, not NTLinus Torvalds05/15/06 09:49 AM
                                          Hybrid kernel, not NTnick05/15/06 04:41 PM
                                          Hybrid kernel, not NTtony roth01/31/08 02:20 PM
                                    Hybrid kernel, not NTnick05/15/06 06:33 PM
                                      Hybrid kernel, not NTBrendan05/16/06 01:39 AM
                                        Hybrid kernel, not NTnick05/16/06 02:53 AM
                                          Hybrid kernel, not NTBrendan05/16/06 05:37 AM
                  Hybrid kernel, not NTAnonymous05/01/08 10:31 PM
                    Following the structure of the treeMichael S05/02/08 04:19 AM
                      Following the structure of the treeDean Kent05/02/08 05:31 AM
                        Following the structure of the treeMichael S05/02/08 06:02 AM
                        Following the structure of the treeDavid W. Hess05/02/08 06:48 AM
                          Following the structure of the treeDean Kent05/02/08 09:14 AM
                            Following the structure of the treeDavid W. Hess05/02/08 10:05 AM
                              LOL!Dean Kent05/02/08 10:33 AM
                              Following the structure of the treeanonymous05/02/08 03:04 PM
                                Following the structure of the treeDean Kent05/02/08 07:52 PM
                                Following the structure of the treeFoo_05/03/08 02:01 AM
                                  Following the structure of the treeDavid W. Hess05/03/08 06:54 AM
                                    Following the structure of the treeDean Kent05/03/08 10:06 AM
                                      Following the structure of the treeFoo_05/04/08 01:06 AM
                                        Following the structure of the treeMichael S05/04/08 01:22 AM
            Hybrid kernel, not NTLinus Torvalds05/09/06 05:19 PM
              Microkernel Vs Monolithic KernelKernel_Protector05/09/06 09:41 PM
                Microkernel Vs Monolithic KernelDavid Kanter05/09/06 10:30 PM
                  Sigh, Stand back, its slashdotting time. (NT)Anonymous05/09/06 10:44 PM
                  Microkernel Vs Monolithic Kernelblah05/12/06 08:58 PM
                  Microkernel Vs Monolithic KernelRob Thorpe05/15/06 01:41 AM
          Hybrid kernel, not NTAnalGuy05/16/06 03:10 AM
            Theory versus practiceDavid Kanter05/16/06 12:55 PM
              Distributed algorithmsRob Thorpe05/17/06 12:53 AM
              Theory versus practiceHoward Chu05/17/06 02:54 AM
                Theory versus practiceJS05/17/06 04:29 AM
          Play online poker, blackjack !!! Gamezonex08/16/07 01:49 PM
  Hybrid (micro)kernelsphilt05/14/06 09:15 PM
    Hybrid (micro)kernelsLinus Torvalds05/15/06 08:20 AM
      Hybrid (micro)kernelsLinus Torvalds05/15/06 11:56 AM
        Hybrid (micro)kernelsRob Thorpe05/16/06 01:22 AM
          Hybrid (micro)kernelsrwessel05/16/06 11:23 AM
            Hybrid (micro)kernelsRob Thorpe05/17/06 12:43 AM
              Hybrid (micro)kernelsrwessel05/17/06 01:33 AM
                Hybrid (micro)kernelsRob Thorpe05/19/06 07:51 AM
                  Hybrid (micro)kernelsrwessel05/19/06 12:27 PM
      Hybrid (micro)kernelstechIperson05/15/06 01:25 PM
      Hybrid (micro)kernelsmas05/15/06 05:17 PM
        Hybrid (micro)kernelsLinus Torvalds05/15/06 05:39 PM
          Hybrid (micro)kernelsColonel Kernel05/15/06 09:17 PM
            Hybrid (micro)kernelsWink Saville05/15/06 10:31 PM
              Hybrid (micro)kernelsLinus Torvalds05/16/06 10:08 AM
                Hybrid (micro)kernelsWink Saville05/16/06 09:55 PM
          Hybrid (micro)kernelsrwessel05/16/06 11:31 AM
            Hybrid (micro)kernelsLinus Torvalds05/16/06 12:00 PM
        Hybrid (micro)kernelsBrendan05/16/06 01:36 AM
        Hybrid (micro)kernelsPaul Elliott09/03/06 08:44 AM
          Hybrid (micro)kernelsRob Thorpe09/04/06 09:25 AM
      Hybrid (micro)kernelsphilt05/16/06 12:55 AM
        Hybrid (micro)kernelspgerassi08/16/07 07:41 PM
  Another questionable entry on Wikipedia?Chung Leong05/18/06 10:33 AM
  Hybrid (micro)kernelsisrael05/20/06 04:25 AM
    Hybrid (micro)kernelsRob Thorpe05/22/06 08:35 AM
Reply to this Topic
Name:
Email:
Topic:
Body: No Text
How do you spell blue?