News for hackers. Stuff that matters.
Re:Debian GNU/Hurd 2013 released by comex on Wednesday May 22, 2013 @01:24AM (#5749061)
"Nothing over the main Linux kernel" is complicated. It offers a microkernel design that was modern and radical 20 or so years ago, and is still pretty unique as a Unix system; Linux being as monolithic as ever, you can still do some pretty cool stuff with it you can't come close to with Linux. However, afaik, these days the designs of Mach and Hurd aren't looked upon very highly, the stability advantages of microkernels aren't as important anymore with rock solid traditional kernels, and instead of figuring out how to empower non-root users on Unix systems we just give everyone their own VM.
Re:Debian GNU/Hurd 2013 released by pjmlp on Wednesday May 22, 2013 @02:44AM (#5749264)
> However, afaik, these days the designs of Mach and Hurd aren't looked upon very highly, the stability advantages of microkernels aren't as important anymore with rock solid traditional kernels, and instead of figuring out how to empower non-root users on Unix systems we just give everyone their own VM.

On the commercial world you have Symbian and QNX as examples of micro-kernels OS.

Microsoft is doing research how to run the full OS as a library on top of a pico-hipervisor (Drawbridge).

And Minix just got a EU grant for their research in micro-kernels and security.

Sometimes I think Linux is happy just copying the UNIX and Mainframe designs, without much OS innovation.

Re:Debian GNU/Hurd 2013 released by pionar on Wednesday May 22, 2013 @10:04AM (#5750875)
> Sometimes I think Linux is happy just copying the UNIX and Mainframe designs, without much OS innovation.

This is difficult to answer, but I'll try. Note that this is from merely an interested person's view, I'm not a kernel dev or anything.

Linux has to strike a balance between compatibility, stability and innovation. The goal of Linux isn't "OS innovation", the kernel people would rather that innovation occur in userspace (at least from my reading of the tea leaves), and that is happening a lot.

However, Linux doesn't have the power to "break out" and try something radically different, as it has actual users with billions of dollars invested in Linux that rely on its stability and its compatibility with the hardware and software they use.

Symbian and QNX are not mainstream kernels, as they really only exist in embedded devices, and really only support ARM and a couple other architectures.

Minix, GNU/Hurd and the Microsoft research are just that - research. No user base to speak of, no commercial uses, etc.

I think the most successful microkernel wasn't actually micro, but a hybrid - Windows NT.

Re:Debian GNU/Hurd 2013 released by philsnow on Thursday May 23, 2013 @01:43AM (#5755523)
> I think the most successful microkernel wasn't actually micro, but a hybrid - Windows NT.

The OS X kernel is (was?) a hybrid, basically Mach with BSD bolted onto the side

http://en.wikipedia.org/wiki/XNU

Re:Debian GNU/Hurd 2013 released by btilly on Wednesday May 22, 2013 @03:39AM (#5749392)
I used to work with Thomas Bushnell, who was deeply involved with the Hurd at the beginning. His claim was that microkernels offered theoretical advantages on paper, but practical complications that Stallman seriously underestimated.

He says that he had originally suggested taking a BSD kernel and rewriting all of the (then) legally risky bits, and he still believes that this would have been straightforward, and if they had followed that route then Linux would not have stolen their thunder. But he let Stallman argue him out of it, and that was a mistake.

Re:Debian GNU/Hurd 2013 released by mercurial on Wednesday May 22, 2013 @01:53AM (#5749143)
> However, afaik, these days the designs of Mach and Hurd aren't looked upon very highly, the stability advantages of microkernels aren't as important anymore with rock solid traditional kernels, and instead of figuring out how to empower non-root users on Unix systems we just give everyone their own VM.

On the other hand QNX, a closed-source Unix-like microkernel OS, has been used commercially for a long time - for instance, it powers Blackberry phones nowadays, and I heard the performance is quite decent.

Re:Debian GNU/Hurd 2013 released by nknighthb on Wednesday May 22, 2013 @02:39AM (#5749255)
It's surreal to me that this conversation still happens in these terms.

People doing real work for which they need an OS don't care that QNX/HURD are microkernels or that Linux/NetBSD aren't. They care that one solves their problem better than the other.

Nobody cares about kernel architecture unless they're writing (or learning about) kernels. Everybody else is looking for an OS that meets practical requirements. QNX's architecture might help it meet some requirements better than Linux's architecture, but the architecture itself is not a determining factor in commercial success.

Re:Debian GNU/Hurd 2013 released by mercurial on Wednesday May 22, 2013 @03:24AM (#5749353)
I don't understand your argument. We are talking about kernel architecture (and specifically, monolithic kernels vs microkernels).

Specifically, I brought up QNX as an example of microkernel-based OS used in the wild, as opposed to Hurd and (presumably) Minix - which gets to show that they can be made to work. However QNX is marketed is no concern of mine.

Re:Debian GNU/Hurd 2013 released by nknighthb on Wednesday May 22, 2013 @03:34AM (#5749379)
First, my comment was not directed solely at you but at the conversation in general.

Second, the original context of that conversation isn't kernel architectures, but what particular kernels "offer".

Discussing kernel architectures as if they're a practical advantage is surreal.

Re:Debian GNU/Hurd 2013 released by mercurial on Wednesday May 22, 2013 @04:11AM (#5749474)
You're splitting hairs. Microkernels do offer practical advantages by virtue of their architecture, while suffering from other drawbacks again caused by their architecture.
Re:Debian GNU/Hurd 2013 released by nknighthb on Wednesday May 22, 2013 @06:21AM (#5749843)
I'm not trying to "split hairs", I'm trying to address a problem that has repeatedly made my life difficult -- people seeking particular technologies instead of solutions.

But since that has obviously made some people upset, I'll trouble you no more about it. I'm sorry to have intruded.

Re:Debian GNU/Hurd 2013 released by yyqux on Wednesday May 22, 2013 @05:23PM (#5753823)
Why do you automobile engineers keep talking to each other about pistons and transmissions, and all that nonsense, it's absurd. I just want a car that gets me from A to B and doesn't use too much gas. I don't see what that has to do with engine seals.
Re:Debian GNU/Hurd 2013 released by eyko on Wednesday May 22, 2013 @06:56AM (#5749948)
Your life must be very difficult...
Re:Debian GNU/Hurd 2013 released by andrewflnr on Wednesday May 22, 2013 @09:55AM (#5750816)
Right here and now, we're doing it because it's fun. At the end of the day, most of us go back to practical solutions, but we have to get this stuff out of our system. :)
Re:Debian GNU/Hurd 2013 released by kybernetikos on Wednesday May 22, 2013 @03:32AM (#5749369)
One of the benefits of microkernels is supposed to be their resilience (since code that would otherwise be in the kernel is now in servers and can be restarted if it goes wrong or upgraded in place without taking down the whole kernel).

That sounds like a pretty good practical benefit to me.

Re:Debian GNU/Hurd 2013 released by rwmj on Wednesday May 22, 2013 @05:26AM (#5749670)
There are two practical problems with microkernels:

(1) Hardware. Some driver locks up your PCI bus. Your whole system grinds to a halt, whether it's a microkernel or not. This could probably be solved by having hardware that doesn't suck, but unfortunately here in the real world we've settled on the cheapest option, PC hardware which does suck.

(2) Division of responsibilities. Some OS structures like the process table are inherently connected to multiple components (memory management, filesystem, etc). Doing process creation or fork in a microkernel results in a flurry of internal messages between the different parts which is hard to reason about and fragile. Minix especially suffered this problem.

Re:Debian GNU/Hurd 2013 released by zurn on Wednesday May 22, 2013 @10:30AM (#5751066)
I don't know what you specifically mean by a driver locking up PCI (and we've moved on to PCIe now), but I suspect the general category of (1) is largely addressed by the io virtualization facilities and RAS features that have recently come to amd64 hardware. That stuff has existed on big iron hardware since times immemorial.
Re:Debian GNU/Hurd 2013 released by nknighthb on Wednesday May 22, 2013 @03:35AM (#5749385)
Resilience is the requirement. "Microkernel" is a possible means to an end, not the end itself.
Re:Debian GNU/Hurd 2013 released by loup-vaillant on Wednesday May 22, 2013 @04:22AM (#5749503)
Do we know of any other mean?
Re:Debian GNU/Hurd 2013 released by gaius on Wednesday May 22, 2013 @07:30AM (#5750055)
Well, if you have X units of effort (dollars, man-years, whatever) you can choose to allocate some of it to creating a mechanism for tolerating buggy drivers, and some to debugging the drivers. Micro- vs monolithic- in the real world is an argument over this exact allocation.
Re:Debian GNU/Hurd 2013 released by EliRivers on Wednesday May 22, 2013 @08:58AM (#5750422)
There's no such thing as real work, in much the same way that there's no such thing as the real world. Everyone creates bubbles and cushions around themselves.
Re:Debian GNU/Hurd 2013 released by edwintorok on Wednesday May 22, 2013 @04:38AM (#5749537)
Xen seems to be moving to an architecture that is similar to microkernels with dom0 disaggregation and driver domains: http://blogs.citrix.com/2012/05/17/introducing-windsor-a-new...

So is virtualization just reinventing microkernels?

Re:Debian GNU/Hurd 2013 released by rwmj on Wednesday May 22, 2013 @05:21AM (#5749647)
.. And containerization is unfortunately going the opposite way. Having a single huge morass of code (the Linux kernel) run multiple operating systems at the same time.
Re:Debian GNU/Hurd 2013 released by 15charusername on Wednesday May 22, 2013 @03:50AM (#5749423)
> Linux being as monolithic as ever

Except for loadable kernel modules which is a pretty big move towards microkernel-like features from the original versions.

Re:Debian GNU/Hurd 2013 released by sepeth on Wednesday May 22, 2013 @03:59AM (#5749442)
AFAIK, loadable kernel modules has nothing to do with microkernels. Those are still running in the kernel space.

Maybe you meant something like FUSE.

Re:Debian GNU/Hurd 2013 released by draven on Wednesday May 22, 2013 @08:32AM (#5750283)
They allow loading code (drivers mostly) at runtime, something that's impossible with a "traditional" monolithic kernel.
Re:Debian GNU/Hurd 2013 released by pjmlp on Wednesday May 22, 2013 @10:26AM (#5751036)
Which has been possible in non UNIX systems since the mid 90's, this has nothing to do with micro-kernel architecture.
Re:Debian GNU/Hurd 2013 released by 15charusername on Wednesday May 22, 2013 @07:26PM (#5754443)
Hurd has been in development since 1990, Tanenbaum–Torvalds was 92. The shipping and loading of drivers separately from the kernel was a micro-kernel advantage and Linux being able to do the same is a move towards micro-kernel features in Linux (fuse and cuse being others).
Re:Debian GNU/Hurd 2013 released by sepeth on Thursday May 23, 2013 @06:38AM (#5756113)
In MINIX, afaik, you ship some drivers with the kernel in the same file. But those drivers runs in user space and separate from each other. The issue is not related with shipping.

IMO, loading the drivers at runtime is the easiest part of microkernels. It is really very very very tiny step. There are a lot more things to do, like doing IPC between operating system components, managing memory, scheduling, protection of the system & driver process running in the user space.

Finally, loadable kernel modules does not give you any security and reliability. Those modules still share the same address space with the kernel and each other.

Re:Debian GNU/Hurd 2013 released by pjmlp on Thursday May 23, 2013 @02:05AM (#5755569)
A very very very tiny step.