600 points · by knz42 · 12y ago · 172 comments
Even so, minix has a spot, and that spot is in education, an OS that can function like a digital version of a petri dish, something that you can quickly morph to test out a new idea without having to drag a huge behemoth of a kernel behind you.
I'm quite sad about this, I think that if minix had been open instead of 'published as a book' that minix would have been what Linux is today only better engineered and that we'd all be better off for that.
Not being GPL'd meant that a whole generation of hackers followed Linus Torvalds rather than buying a bunch of books from Prentice Hall. And so now we have 70's era tech instead of 90's.
With distribution through a book, at the time, it wasn't a terrible idea. The internet was in its infancy, and there were a lot of schools that had real poor connectivity. Unfortunately, the internet grew rapidly, and textbook publishers are conservative, and the rest really is history.
To be honest, I feel there is a near-depressing anti-intellectualism in discussing non-Linux kernels with a number of hackers. They know the devil that is Linux, and fail to see how exploring those other devils and daemons out there could possibly improve their perceptions of what an OS can and should be. Network transparency, non-traditional filesystems, etc, have all been hampered by too stubborn of a refusal to question the assumptions as to what a kernel and OS can and should be.
Things are changing in the Linux world. Just not in a particularly positive direction.
Moral of the story: Linguistic relativity (Sapir-Whorf hypothesis) is real. It doesn't apply just to human languages, but technology as well. People with broken mindsets will carry over their baggage with them and poison even already mediocre environments.
More depressing though, is the anti-BSD sentiment present amongst many Linux users. Mostly because of how ironic it is.
Even languages without a heritage, which are invented within two generations have complex features comparable to established languages. There are many good examples in Steven Pinker's "The Language Instinct."
Similar to the Sapir-Whorf hypothesis I think "broken mindsets," and "poison," are exaggerations with little basis.
tl;dr It's really not that depressing. There are different ways of doing the same thing.
UNIX had a few nice ideas, but so did other OS, there is hardly a reason to have it in a pedestal.
The proof you could have an workstation OS written in a GC enabled systems programming language.
I cherish Microsoft for its work in Windows, it is the only mainstream OS that can save us from UNIX monoculture.
Yes, UNIX has a bunch of nice ideas, but that is all.
Note that the Microsoft way tends to lead to another monoculture and to vendor lock-in. I'd say "of course, the same applies to the products of every other corporation", except that in my experience, everyone is using Windows on the PC.
Probably because I'm not a hacker from the 70s, when I discovered Linux (note a BSD variant would also have worked, had I known about them) it was a breath of fresh air in the ubiquitous monoculture that was Windows.
I tend to simplistically reduce this choice between:
- Everything is a file (the unix way); and
- Everything is an object (the windows way)
Both choices have the potential for great results. In practice, however, the documentation and composability in the everything is a file paradigm has shown to produce better results. Unix ecosystems are more alive; it is easier to replace system parts and create operating systems out of your own choice of replaceable layers. The monolithic nature of Windows is a reflection on the failure of the object oriented approach to operating system interfaces.
Mind you, I don't think it is an intrinsic fault. It may be that it's a fault of this implementation of an OO operating system.
This is the main reason I dislike what the Gnome folks are pushing down Linux's throat. The Gnome way is, today, at odds with the Unix way.
As to "a bunch of nice ideas", I'd suggest you take a look at the concepts that Plan 9 from Bell Labs brings to the table. The everything is a file concept there is something I wish would have taken over the more classic approach to devices, networking, etc. Want to open a remote shell on another server? Easy as opening a file handle. Accessing the CPU and running programs? Same story. Now if you call that just a nice idea, I rest my case ;-)
Microsoft even explored some of those concepts in their research OSes like Singularity and Midori. There has to be something about those ideas that they appeal even to MS, that's just my view though.
What is Windows doing differently than UNIX monolithic kernels? Drivers and filesystems run in NT kernel space.
To add on to what a previous commenter said, Plan 9 is proof that Unix's nice ideas are more than a few. In fact, the ultimate irony is that some of the most fascinating OS design has emerged from being more Unix than Unix itself.
Plan 9 has also become pretty much the only breath of fresh air from an architectural standpoint in Linux, what with procfs and all.
lol
This is why I was surprised to see that the Raspberry Pi, which has a focus on education, was not on the list of supported boards. I would have loved to tinker with Minix on a Raspberry Pi (I have several boards lying around) since I have a latent interest in microkernels. I hope RPi will get supported later.
Where I live, you can be happy if people knows what Linux is, maybe you find 1 between each 100 computer users.
Teachers here does not know to program a lot. You can be happy if they are able to copy&paste commands, and blindly follow search engine results.
Of course 100 of each 100 computer users know what android is (not what it means for their freedom, surveillance and privacy). And the market is full of java/android programmers making cry to any UNIX-like sysadmin or security expert with their code.
Education here gets ipad and Microsoft stuff. With agreements hard to break.
At much, you see a "fedora" computers room, on public universities, just to run a few mathematical programs on some careers, and nothing else.
Out of certain universities, it's hard to find people doing things (even in the educational land) with minix.
I really wonder what the overlap between Minix and Mirage are btw. Could Minix be used like Mirage as a minimal application-specific OS?
Mirage OS (also Haskell's HaLVm) are layers on-top of Xen. It would seem to me that the microkernel and exokernel designs wouldn't really be used the way Mirage is on-top of Xen except that Mirage / HaLVm could replace much of the userland on the microkernel or be its own os library on an exokernel.
The overlap I think you're seeing is that Xen acts a bit like a "microkernel" and Mirage is the userland implementing the lower-level interfaces provided by the kernel. Minix in this sense is a more complete picture but I don't see why Mirage or HaLVm couldn't be "userland libraries" for microkernels and exokernels.
I think it's a great idea actually. Build a small kernel with very few responsibilities so it's easier to prove safety, then construct the whole of userland on-top of a known type-safe language (Haskell or OCaml) and you get a potent platform!
That already exists and was just open sourced! See seL4:
http://en.wikipedia.org/wiki/L4_microkernel_family#High_assu...
While I like constructing a userland using a safe language over a small safe microkernel, I am annoyed by the hype this is getting because it's not new. Thinks like QNX, Symbian, GNU Hurd are based on this very concept. The only difference nowadays is the renewed interest in safer languages, which I suppose is only enabled thanks to Moore's Law giving us the headroom. It's also like everyone forgot the flamewars (Torvalds-Tanenbaum anyone?) about how microkernels were inherently slower. I'm sure that demon is going to reemerge soon enough, and we'll be back mucking around in C/C++ for performance. Just like 20 years ago. Those who don't learn from history...
But honestly, I'd rather learn to use the force. Better get that midichlorian shot.
You don't seem afraid of angering people with comments like that.
I think you're right. But you also have to consider the fact that linux is the only reliable open source kernel which developers know how to use. The mere fact that's it's both maintained, open source and used by many is a big feature. It doesn't have to at the bleeding edge.
Even if it's 70's era tech, it's still a good enough tech for many things. Its sole aim is not directly compete with proprietary kernels, it's just because it's just cheaper and more free.
I wish minix would get more attention too, but I think kernel choices boils down to what hardware you have.
In my 'day job' (as far as I have one) I get paid to speak my mind and not to weasel around the issue, compared to that speaking my mind without 'fear of angering people' in an online forum comes pretty easy and I don't think anybody that really knows his stuff would be angered by this.
It is much harder to write a report for a VC detailing a potential investment when every word matters. I can agonize over a report for days in order to make it fair and not to leave ambiguity in.
If I am just grad student/professor wanting to publish interesting paper, Minix/uKernel is interesting.
If I am software engineer looking for tech for career development for next 5-10 years, it is Linux.
If I am a project manager/Founder/VC looking for the tech foundation/stack for next cool gadgets, server stack and abilities to find season developer, it will be Linux.
Yet they're pushing for reliable embedded hardware. Not all that bad of an idea. Given the nightmare of android security updates (or complete lack there of) this would make a nice embedded controller.
Need RTOS features. For .edu or .com embedded use.
The microkernel idea is pretty much dead outside the ivory tower, as in practice it didn't work, so I wouldn't be so pessimistic about how things turned out.
The L4 microkernel
> http://en.wikipedia.org/wiki/L4_microkernel_family
is really fast and used quite often. See
> http://en.wikipedia.org/wiki/L4_microkernel_family#Commercia...
for details about its usages.
QNX says, "Hi." Nearly every router with >1GB/s ports run a microkernel.
Blackberry's phones run microkernels.
Yeah its closed source locked down, but its a functioning high performance micro-kernel.
Do you mean home wireless routers, or higher-end routers? I thought most home wireless routers these days, including gigabite-capable ones, were running Linux. Can you give specific examples?
A huge swath of the real time world (process and industrial control, all kinds of embedded gear) runs on microkernels. They're enormously successful, just not very visible.
For example, look at the recent minix release notes listing the well known theoretical advantages of a micro when a driver fails. Then look at the actual release notes where ARM USB is broken and crashes the entire kernel, in practice.
So with a theoretically superior microkernel design, you could restart a crashed driver in theory, although in practice when drivers crash they take the kernel with them. So you could recover from an error although in practice it doesn't work.
With a theoretically inferior monolithic design, you can't (easily) restart a crashed driver. Monoliths work around that problem by not crashing. See linux USB support on ARM. So you can't recover from errors, that don't happen anyway, so in practice it doesn't matter.
In actual deployment it doesn't matter anyway because software of a low enough quality to suffer severe driver problems most likely won't live long in the marketplace, and most driver software issues are a symptom of the device hardware being damaged, destroyed, or removed. So if your mass spectrometer A/D converter was vaporized by literal lightning, it doesn't really matter if the kernel crashes; besides the lightning probably vaporized the CPU at the same time.
One event like this is an anecdote. A couple is a trend. A couple decades of this in the marketplace, well thats something else.
That would certainly explain the billions of microkernels running in production as we speak. Better tell amazon to shut down their whole webhosting business since microkernels don't work. I'm sure they'll be dissapointed to learn about this.
Talk about being dead.
And it isn't like most of us do not like some of the ideas behind microkernels and the like. The empiricist in me has grown to doubt that it is as much of a win as the hopefuls keep talking about. That is, even if someday microkernels make a pretty big comeback, I doubt it will be as dramatic of a change as is always heralded.
And as a joke of destiny, most of the open source projects with company funding stay away from GPL or offer dual licensing.
> And so now we have 70's era tech instead of 90's.
It worse than that, it is actually late 60's.
If it were 70's at least we could aspire to have the Xerox PARC environments.
They use GPL or something more liberal (BSD), not less. There's no contradiction.
Just that the GPL dream that spread into the mainstream thanks to Linux becoming GNU's kernel, now is less so thanks to more liberal licenses.
Seems to me, it found its window of opportunity in the form of €2.5 million and took it. I would call Minix a success.
The only niche where I see an OS being relevant is in single-computer safety-critical applications and consumer devices. Minix3 aims for the former and I really hope it carves out its own little niche, but I think Linux is here to stay.
I could not bring myself to appreciate Linux as it was, as it could be, back then. But I realized the trend, because I could understand the economics, both financial and cultural.
What I think happened to me, was a kind of disillusionment. I saw the progression as a long reimplementation of then already ageing concepts, because there was a genuine need to prevent too much being stalled by myopic business and pseudo or real monopoly. Once Microsoft had their hands on the VMS code, or at least David Cutler (it's a strange story and a car crash that ended his counteract architect, and look where senior DEC management got their sinecures)i felt that all Microsoft had to do for twenty years, was expose functions form the NT kernel, to stay ahead in terms of features. With the only viable chase being a reconstruction of what was by definition much earlier thinking, that had to become the spirited, almost religious, movement behind Linux, or fail. I think that era is over.
I don't think anyone won. Not exactly, but I am biased because I will happily consider windows a development platform, with exceptions, and vice versa. I hope that era of chasing against a monopoly is closed, but the massive expansion of installed systems has not helped anyone. Minis or Plan 9 are far better ways to explore computing in a fundamental way, and remain in some ways, more advanced, and if there's a toss up, that can be argued by accessibility. You can't play with the Linux kernel, or with NT, without enormous system knowledge, compared with even ten or fifteen years ago. As a result, we have stagnated the progress of the art.
Sometimes I am even more hopeful, for the windows platform, since the win32 system has survived so much, and lived in emulation on its primary system now fifteen years at least. The compartmentalized driver model for NT offers a certain hope, e.g. for storage driver development, because it was well separated by design. POSIX holds everything closer to the system descriptions that were drawn thirty and more years ago. Obviously that is powerful, but it reduces potentially useful abstraction.
What hope now, is the research in distributed systems, that first interested me, thirty years ago, and I was not reading up to date papers, then, finds a home, in the mix of virtual machines, virtual datacenter even, we can put into a box. Things like on the fly code recompilation and all that's been done to accommodate usually legacy systems and VMs, did progress a lot of art, and instruction sets developed to accommodate that. Yet, with some instructions that matter to me, they are norm and likely will not be virtualized.
Forgive me my hand waving approach, please, but what interests me is when user applications are so many layers away from the kernel, especially in windows systems, I think there is room for approaching again what underlies everything. When ZFS was announced, I immediately craved for a PCI card subsystem for every windows workstation we had. This is now more of a economic quandary, nothing serious stops you building the card and exposing higher level APIs that way. We've performance we can deliberately waste. So much so in consumer space, enthusiast home users, there needs to be a application that takes advantage.
My thoughts are that we need better content addressing, than the web has an ability to offer. Content addressing is what the web has enabled, on a massive scale. The network design behind it has caused all manner of diversions for design, just take a look at how a CDN is built, or buffer bloat, or the economic constraints of "real" internet access, which is available in the UK through only maybe two consumer DSL ISPs...
To change from the "white coat", "glass room" datacenter model, which has prevailed so well that the company who so accurately proclaimed "The Network Is The Computer" (to mem memorably, in a billboard right outside my office, no place anyone save me and colleagues would ever see much) is part of a classical "mainframe" model company.
The next applications that matter, will challenge the infrastructure of computing we use. This is why things like Minis and Plan 9 still matter. Both are great educational tools, but in my shop, I try to get everyone who joins us, to spend some time with Plan 9, to rethink how we appreciate data and content at a low level, and I believe that is really important to my company, the way we think, and will become important much more widely.
I got some hints of that feeling while poking around http://undocumented.ntinternals.net/ ... They seem to have still forgotten about ZwCreateProcess (copy-on-write forking).
Copy-on-write fork existed in POSIX subsystem of Windows NT (MS Services for UNIX aka Interix), hence no global mutexes in that subsystem.
There are global mutexes in Win32 subsystem of Windows NT, hence no fork.
And on "true" POSIX systems with pthreads there are mutexes and fork, but mutexes are process-local (kind of Win32 critical sections).
I've seen statements to this effect around, and it's kept me puzzled. Why ditch a VM that runs on your main dev computer, and instead opt for a BeageBone, rPI, etc.? With a separate computer (like a BeagleBone), you have to copy over the OS ri it each time after building it, and this takes up a small amount of additional effort and time (that could add up). Aren't VMs are faster for someone who wants to do a lot of tinkering and iterative OS development?
OTOH VMs are of course faster, more practical and even sometomes more reliable. For anything serious I'd be using one (and even am, for work, etc.)
That being said, I would really like to know if Minix tech is better than Linux.
I have heard the whole microkernel/monolithic kernel debate. But to this day, Linus admits that monolithic is a better design choice. And on the other hand, HURD is a microkernel which suffers from development and I have heard RMS saying somewhere that choosing microkernel was a bad decision.
No, it isn't.
> But to this day, Linus admits that monolithic is a better design choice.
Well, that depends. Linus is somewhat invested in the monolithic side of things. If you see the world through a real-time lens and you think of computers as things that simply never get switched off until they are physically end-of-lifed, if reliability and latency are more important than raw throughput, if you want to be able to upgrade your OS without a reboot and so on then microkernels start to make a lot more sense.
In the traditional sense, minix is more of a 'small unix' than a micro kernel, the kernel supports all kinds of primitives that you'd not see in other micro kernels.
See:
http://wiki.minix3.org/en/DevelopersGuide/KernelApi
(For instance, the 'device io' calls are not what I'd expect in a true micro kernel, messaging primitives are not present).
HURD is committeeware. L4, QnX and a bunch of closed source industrial systems are real, battle tested microkernels that I would put opposite UNIX/Linux/BSD for comparison, not minix, to me that always was a 'toy' operating system, which just like plan9 never really outgrew the lab.
L4 is not a kernel, it is a family of kernels. You can't run L4 any more than you can run BSD. You have to pick an actual specific implementation. Some L4 kernels are "battle tested" and some are learning projects made by single individuals and never used for anything else.
I've built enormous systems using microkernels and there was absolutely no way we'd have gotten the same reliability and performance out of the macro-kernels of the day.
Why? Even then, nobody thought that. Including ast. Minix was a toy OS, it was designed specifically for teaching, not for actual use. Minix3 is not minix. It just shares the name and the designer. It is a completely different kernel that shares no code. It was designed to be used. That's why minix3 is being used and minix was not.
http://herpolhode.com/rob/utah2000.pdf
On one hand you had Windows NT taking over commercial space, on the other you had the Linux juggernaut gathering speed. There was not much left for the niche players.
Glad to see Minix survives still.
But, it seems to me that it's not really usable for most people, since driver support is very poor.
I would really like to know, if anyone knows the answer, how much effort it would take to create some sort of tool that converts a Linux driver to a Minix-compatible driver, or -- if that's not possible -- how many man hours it would take to rewrite ALL Linux drivers to be Minix-compatible. Anyone know?
Discovered it here on Hacker News some time ago [0]. But it did not get much attention. I would love to hear more opinions from HN on this topic.
The current system I use takes about 220MB of RAM and about 15min on an underpowered netbook. (It is not Linux but still has decent hardware support.)
Of course I'm also curious what other folks who compile their own Linux kernels see as their "minimum" requirements.
Yet I'm reading the conversation in full due to the great, knowledgable, and foremost polite discussions. Not having seen this in Hacker News in a long time...
Thank you all
Gonna try it out tonight!
http://wiki.minix3.org/FAQ#What_is_the_performance_of_MINIX_...
They run the backend of much of the airline industry (former delta employee).
Edit:
Links with more information for those not aware of these behemoths:
http://en.wikipedia.org/wiki/NonStop
http://h17007.www1.hp.com/us/en/enterprise/servers/integrity...