Tanenbaum Talks MINIX, Linux

You all know MINIX – a microkernel operating system project led by Andrew Tanenbaum. The French Linux magazine LinuxFr.org has an interview with Andrew Tanenbaum about MINIX’ current state and future. There’s some interesting stuff in there.

A little history lesson might be prudent here, since I’m not sure how many of you understand the significance of MINIX. In and of itself, MINIX is not something you’ll encounter in production environments – let alone on popular electronics where you’ll mostly find Linux. Traditionally, MINIX has been an education tool, in combination with the book ‘Operating Systems: Design and Implementation’.

On top of that, Linus Torvalds used Minix as an inspiration for his own Linux kernel – although he took a completely different approach to kernel design than Tanenbaum had done with MINIX. MINIX is a microkernel-based project, whereas Linux is monolithic (although Linux has adopted some microkernel-like functionality over the years). This difference in approach to kernel design led to one of the most famous internet discussions, back in 1992 – the Tanenbaum-Torvalds Debate.

MINIX stalled for a while, but in 2005, the project, which is hosted at the university I recently got my Master’s Degree from, was fired up again with the release of MINIX 3, a new operating system with its roots in the two versions that came before. Since then, Tanenbaum has had three people working on the project at the VU University, ensuring steady progress.

The team is currently focussing on three things, according to Tanenbaum: NetBSD compatibility, embedded systems, and reliability. NetBSD compatibility means MINIX 3.2.0 will have a lot of headers, libraries, and userland programs from NetBSD. “We think NetBSD is a mature stable system. Linux is not nearly as well written and is changing all the time. NetBSD has something like 8000 packages. That is enough for us,” Tanenbaum explains.

The reliability aspect is one where MINIX really shines and hikes up its skirt to demonstrate the microkernel running inside – MINIX can recover from many problems that would cause other operating systems to crash and burn. A very welcome side effect of all this is that all parts of the system, except the tiny microkernel itself, can be updated without rebooting the system or affecting running processes.

“We also are working on live update. We can now replace – on-the-fly – all of the operating system except the tiny microkernel while the system is running and without a reboot and without affecting running processes. This is not in the release yet, but we have it working,” Tanenbaum states, “There are a lot of applications in the world that would love to run 24/7/365 and never go down, not even to upgrade to a new version of the operating system. Certainly Windows and Linux can’t do this.”

Another area the team is working on is multicore support, and here, too, they are taking a different approach than conventional operating systems. “Multicore is hard. We are doing essentially the same thing as Barrelfish: we regard our 48-core Intel SCC chip as 48 separate computers that happen to be physically chose to one another, but they don’t share memory,” Tanenbaum explains, “We are splitting up the file system, the network stack and maybe other pieces to run on separate cores. The focus is really more on reliability but we are starting to work seriously to look at how multicore can improve reliability (e.g., but having other cores check on what the primary cores are doing, splitting work into smaller pieces to be divided over cores, etc.).”

The interview also focusses on Linux, which I guess is inevitable considering the relationship between Tanenbaum and Torvalds. However, I personally don’t think there is any real animosity between the two – we’re just looking at two scholars with different approaches to the same problems. Adding to that is that both Tanenbaum and Torvalds appear to be very direct, outspoken, and to the point – there’s no diplomatic sugar-coating going on with these two.

For instance, Torvalds was interviewed recently by LinuxFr.org as well, and in that interview, Torvalds gave his opinion on microkernels – an opinion anyone with an interest in this topic is probably aware of. “I’m still convinced that it’s one of those ideas that sounds nice on paper, but ends up being a failure in practice, because in real life the real complexity is in the interactions, not in the individual modules,” torvalds told LinuxFR.org, “And microkernels strive to make the modules more independent, making the interactions more indirect and complicated. The separation essentially ends up also cutting a lot of obvious and direct communication channels.”

Tanenbaum was asked to reply to this statement. “I don’t buy it. He is speculating about something he knows nothing about,” he replied, “Our modules are extremely well defined because they run in separate address spaces. If you want to change the memory manager, only one module is affected. Changing it in Linux is far more complicated because it is all spaghetti down there.”

There’s a lot more interesting stuff in there, so be sure to give it a read. In any case, especially those of you who have been hanging around OSNews for a long time will know that my personal preference definitely lies with clean microkernels. I honestly believe that the microkernel is, in almost every way, better than the monolithic kernel. The single biggest issue with microkernels – slight performance hits – has pretty much been negated with today’s hardware, but you get so much more in return: clean design, rock-solid stability, and incredible recovery.

But as we sadly know, the best doesn’t always win. Ah, it rarely does.

82 Comments

  1. 2011-11-21 11:50 am
    • 2011-11-21 12:16 pm
      • 2011-11-21 4:43 pm
      • 2011-11-21 6:03 pm
        • 2011-11-21 6:29 pm
          • 2011-11-21 10:59 pm
  2. 2011-11-21 12:01 pm
    • 2011-11-21 12:08 pm
      • 2011-11-21 7:00 pm
        • 2011-11-21 9:47 pm
        • 2011-11-21 10:05 pm
    • 2011-11-21 12:21 pm
      • 2011-11-21 2:35 pm
        • 2011-11-21 5:39 pm
          • 2011-11-21 11:56 pm
          • 2011-11-22 1:10 pm
          • 2011-11-22 11:48 pm
          • 2011-11-23 8:17 am
          • 2011-11-23 10:31 am
          • 2011-11-24 12:40 am
          • 2011-11-24 4:16 am
          • 2011-11-24 5:19 pm
          • 2011-11-23 1:06 pm
          • 2011-11-23 7:09 pm
        • 2011-11-21 7:11 pm
          • 2011-11-21 9:06 pm
          • 2011-11-21 9:21 pm
          • 2011-11-21 9:28 pm
          • 2011-11-21 9:37 pm
          • 2011-11-21 9:39 pm
          • 2011-11-21 9:49 pm
          • 2011-11-21 9:45 pm
          • 2011-11-21 9:34 pm
          • 2011-11-21 9:51 pm
    • 2011-11-21 6:44 pm
  3. 2011-11-21 12:32 pm
    • 2011-11-21 12:59 pm
    • 2011-11-21 2:44 pm
    • 2011-11-21 5:53 pm
    • 2011-11-21 7:36 pm
    • 2011-11-24 3:51 am
    • 2011-11-26 1:20 am
  4. 2011-11-21 12:35 pm
    • 2011-11-21 1:20 pm
      • 2011-11-21 5:15 pm
      • 2011-11-21 8:56 pm
        • 2011-11-21 11:35 pm
    • 2011-11-21 5:48 pm
      • 2011-11-21 9:36 pm
  5. 2011-11-21 1:02 pm
  6. 2011-11-21 2:39 pm
    • 2011-11-21 7:31 pm
      • 2011-11-22 11:31 pm
  7. 2011-11-21 3:06 pm
  8. 2011-11-21 4:29 pm
    • 2011-11-21 9:15 pm
      • 2011-11-24 7:32 am
        • 2011-11-24 8:00 am
  9. 2011-11-21 8:08 pm
  10. 2011-11-21 11:29 pm
    • 2011-11-22 6:53 am
  11. 2011-11-22 12:31 am
  12. 2011-11-22 4:24 am
    • 2011-11-22 6:46 am
      • 2011-11-22 5:55 pm
  13. 2011-11-22 5:47 am
    • 2011-11-24 5:48 pm
  14. 2011-11-22 8:50 am
    • 2011-11-22 11:35 am
      • 2011-11-23 2:49 pm
  15. 2011-11-23 1:40 am
  16. 2011-11-23 2:41 am
    • 2011-11-23 6:08 am
      • 2011-11-24 7:50 am
      • 2011-11-24 8:28 am
        • 2011-11-24 6:31 pm
          • 2011-11-26 1:15 am
    • 2011-11-23 8:43 am
      • 2011-11-23 12:14 pm
        • 2011-11-23 5:58 pm
    • 2011-11-24 8:00 am