News for hackers. Stuff that matters.
Re:Linus Torvalds on userspace filesystems by michael_dorfman on Wednesday June 29, 2011 @04:55PM (#2711265)
It's a bit amusing to see Linus, all these years after his famous dispute with Tanenbaum, still fighting microkernels. Personally, I think that the Minix source code shows that microkernels are quite viable, and that Linus's disdain is misguided.
Re:Linus Torvalds on userspace filesystems by j_baker on Wednesday June 29, 2011 @04:59PM (#2711290)
I'm not an OS expert, so perhaps I'm just being an idiot, but doesn't that argument go both ways (and probably more to Linux)? I mean, couldn't one say that the Linux source code proves that microkernels aren't really necessary?
Re:Linus Torvalds on userspace filesystems by anant on Wednesday June 29, 2011 @05:19PM (#2711405)
Microkernels and Linux style kernels solve different problems. If reliability is your concern, then Microkernels are the way to go because a buggy driver (which will exist no matter how careful you are) can't take down your entire system. For desktop operating systems, where the user really is fine with pushing the reset button when something goes wrong, it is not worth the development effort to write a microkernel.

In the end, the answer is always to pick the right tool for the job. Comparing Minix and Linux is about as meaningful as comparing a phillips screwdriver with a flathead. They're used for different purposes.

Re:Linus Torvalds on userspace filesystems by bronson on Wednesday June 29, 2011 @05:39PM (#2711489)
On real-world hardware, a buggy driver can take down your entire system regardless of whether you're using a microkernel or not. Program a bad DMA, blit, or scatter/gather and Minix won't save you.

I agree with your last sentence though.

Re:Linus Torvalds on userspace filesystems by tbrownaw on Wednesday June 29, 2011 @05:41PM (#2711511)
If reliability is your concern, then Microkernels are the way to go because a buggy driver (which will exist no matter how careful you are) can't take down your entire system.

If reliability is that much of a concern, why isn't the system being designed in a way that makes the distinction irrelevant?

about as meaningful as comparing a phillips screwdriver with a flathead. They're used for different purposes.

Is this just that they work with different kinds of screws, or are there cases where it's actually preferable to use a flathead screw+screwdriver instead of Phillips (or Robertson, which for some reason we don't have around here)?

Re:Linus Torvalds on userspace filesystems by bellaire on Thursday June 30, 2011 @08:33AM (#2713728)
I agree with your post, but this:

...as meaningful as comparing a phillips screwdriver with a flathead. They're used for different purposes.

is perhaps not the best analogy. They are both for turning screws, and some people do, in fact, have strong opinions on which is better.

Unless you meant to say that a phillips is for turning screws and a flathead is for prying stuff open. :-D

Re:Linus Torvalds on userspace filesystems by BananaRepublic on Thursday June 30, 2011 @07:17AM (#2713516)
It's not really about the 'development effort', it's about the performance. Message passing will always be alot slower than communicating through shared memory. Just like user-space filesystems will always be slower than kernel-space filesystems.

This means that in areas where performance is paramount, the system stability benefits of a microkernel design just isn't worth the loss in speed. In other areas it might be, but as the current OS landscape shows it's not in huge demand. Part of this is obviously that monolithic/hybrid kernels really aren't that prone to crashing (bugs get fixed), which means that in practice these kernel designs offers BOTH performance and stability.

Re:Linus Torvalds on userspace filesystems by __rkaup__ on Wednesday June 29, 2011 @05:05PM (#2711323)
I hear Hurd is making some progress...
Re:Linus Torvalds on userspace filesystems by shadowfox on Wednesday June 29, 2011 @06:08PM (#2711599)
I guess no thread on Microkernels is complete without bringing up Hurd :P

There are at least a few microkernel implementations beside Minix that are in use/more or less stable/shows some viability. (E.g. QNX, L4 family and to some extent EROS family)

They have received nowhere as much attention as something like Linux. So the usability is not really up there.

Re:Linus Torvalds on userspace filesystems by william42 on Wednesday June 29, 2011 @06:30PM (#2711668)
Is that because of usability or network effects, though?
Re:Linus Torvalds on userspace filesystems by wmf on Wednesday June 29, 2011 @06:49PM (#2711710)
QNX is proprietary and is very expensive (with occasional free demos).

The only useful thing you can run on L4 is Linux, but that's pointless.

EROS/CapROS/Coyotos never had any useful userspace.

Re:Linus Torvalds on userspace filesystems by hristov on Wednesday June 29, 2011 @05:08PM (#2711342)
How does the Minix source code prove this? Minix has existed long before Linux and yet Linux made enormous gains in popularity while Minix is still minor and very rarely used.

Has the Minix kernel shown significant performance results? (I am not being sarcastic btw, I am honestly asking.)

I know OSX uses something like a micro-kernel and it is a perfectly fine desktop OS, but performance suffers once you get to thousands of threads.

Re:Linus Torvalds on userspace filesystems by msbarnett on Wednesday June 29, 2011 @05:14PM (#2711376)
I don't think XNU is a microkernel in any real sense. Certainly not in the sense that the Minix kernel is or was.

The filesystem, device drivers, IPC, network stack, etc is all in kernel space. It's true that it's built around the Mach microkernel, but like most systems that built around it, Mach is just a core layer in the kernel onion, rather than a microkernel in and of itself with the other major components implemented as user-space servers.

Re:Linus Torvalds on userspace filesystems by demallien on Thursday June 30, 2011 @06:18AM (#2713338)
Ummm, IPC pretty much has to be in the kernel, by definition...
Re:Linus Torvalds on userspace filesystems by msbarnett on Thursday June 30, 2011 @02:43PM (#2715228)
A low-level IPC mechanism needs to exist in the microkernel. Higher-level IPC mechanisms that applications will actually care about and use certainly don't need to; see, for example, pipes in Minix.
Re:Linus Torvalds on userspace filesystems by tedunangst on Wednesday June 29, 2011 @05:11PM (#2711359)
minix was not free for many years. that may also have affected its popularity.
Re:Linus Torvalds on userspace filesystems by perfunctory on Thursday June 30, 2011 @04:32AM (#2713129)
> Has the Minix kernel shown significant performance results?

"If the automobile had followed the same development as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year killing everyone inside."

Re:Linus Torvalds on userspace filesystems by uriel on Wednesday June 29, 2011 @06:12PM (#2711623)
> I know OSX uses something like a micro-kernel and it is a perfectly fine desktop OS,

OSX doesn't use anything like a micro-kernel, it runs Mach (which even microkernel fans ridicule, it is bigger than many monolithic kernels like the Plan 9 kernel), with a monolithic BSD-style kernel directly on top, when your microkernel has (being generous) two components, both huge, I don't think it is like what most people consider a microkernel at all.

It is also fun to remember that people also claimed Windows NT was a microkernel, and then they added the graphics system right into the kernel.

Re:Linus Torvalds on userspace filesystems by grandinj on Wednesday June 29, 2011 @05:37PM (#2711485)
Minix is still just a toy. It doesn't implement virtual memory, which is one of the hardest things modern operating systems do.