10 ms·
He's right. Many of the driver problems come from the fact that Linux finally worked on the desktop about the time desktop machines were replaced by laptops.
by Animats 11y ago
He's right.
Many of the driver problems come from the fact that Linux finally worked on the desktop about the time desktop machines were replaced by laptops. Desktops with slots tended to have relatively well-defined hardware, and plugging in third party hardware was normal. This is much less true for laptops. OS development for laptops requires that laptop. It needs a Q/A organization which has one of everything you support. Linux lacks that.
Microsoft got drivers under control with the Static Driver Verifier, which uses automatic formal proofs of correctness to determine whether a driver can crash the kernel. (The driver may not control the device correctly, but at least it won't blither over kernel memory or make a kernel API call with bogus parameters. So driver bugs just mean a device doesn't work, and you know which device and driver.) All signed Windows drivers since Windows 7 have passed that. This has eliminated most system crashes caused by drivers. Before that, more than half of Windows crashes were driver related. Linux has no comparable technology.
The monolithic Linux kernel is just too big. What is it now, 20,000,000 lines? There's no hope of debugging that. It shows.
- dman 11y agoIs Tanenbaum going to have the last laugh?
- vezzy-fnord 11y agoTanenbaum was vindicated two decades ago, but most people have yet to get the memo. A lot are under the impression that basic software design principles apply to everything besides operating system kernels, for some reason. And the myth is highly persistent.
- ris 11y agoIt's quite telling though that most microkernel proponents tend not to be kernel developers.
- vezzy-fnord 11y agoRight, because most Linux proponents are kernel hackers. It's quite telling that you have no leg to stand on but to resort to hapless diversions. Or I suppose the flood of researchers who have built viable and innovative microkernel-based architectures throughout the decades are all a bunch of phonies?
- ris 11y ago"Right, because most Linux proponents are kernel hackers." They don't have to be. All they have to do is not go around smugly suggesting they know better than kernel developers and they're ok in my books. Incidentally, precisely how many of those research kernels have become widely used, mainstream kernels capable of high-throughput? And do you really think it has turned out that way because the whole industry is full of blind dumbasses? I think it's a far more likely proposition that they understand something you don't.
- mystikal 11y agoThere are zillions of academic solutions that if implemented properly would be better than the industrial version. Academics are just notoriously bad at building real-world systems. I think this is mostly because it's a waste of time and money as far as publications are concerned.
- ris 11y agoThis is basically the "everyone's a dumbass" argument.
- mystikal 11y agoI didn't say people in industry weren't smart. There's plenty of stuff that gets published at conferences where the industry guys are like, we did that 15 years ago. My argument is that there's lots of great-in-theory but untested-in-practice stuff in academia, and that you can't discount something altogether just because it's untested. It's hardly fair to compare the output of a few grad students over a few years with all of the effort that goes into a major industrial product. And anyway, the architecture of Linux originated in academia too.
- PeCaN 11y agoMarginally off-topic, but Minix 3.3 runs the (almost) complete NetBSD userland now. To use X11 you have to compile the development branch, however. It's a real, POSIX-compliant, reliable microkernel that can run useful things now.
- tormeh 11y agoWhich is cool and all, but the isolation is reportedly (USB driver crash) a very leaky abstraction and the entire thing is written in C. I'm cheering on Redox OS, which looks better from my very limited level of understanding.
- carussell 11y agoIt's also got almost no one actively developing it and and very little project or organizational infrastructure to speak of.
- zurn 11y agoOnly a minority of the problems in the list are laptop-specific. The hybrid graphics mess is an unfortunate one, though most people are well served by laptops with integrated-only video. People who want to play 3D games on laptops get the short stick.
- gkop 11y ago> though most people are well served by laptops with integrated-only video You're right and it's amazing. I use Linux exclusively on my laptops and had stuck with dedicated GPUs running Nvidia binary drivers since 2009. But this summer I bit the bullet and got a new Broadwell laptop, and I honestly do not miss a single thing about the Nvidia graphics. My Intel 5500 can push well over 10 million pixels across three displays, 3D-accelerated, drawing minimal power.
- zobzu 11y agointel drivers are awesome (and made by intel, mind you)
- brightball 11y agoSeems like a good way to cope with this, from a market standpoint, would be for Linux development to focus on specific laptop. If say, Dell, were to pay Ubuntu to test and verify for some of their specific laptops and then Ubuntu subsequently was able to list "100% Certified" laptops for purchase it could create an opening. Same thing with developing to put it on Apple laptops with that very specific hardware set, etc.
- jkbyc 11y agoIsn't this already happening? http://www.ubuntu.com/certification/desktop/ http://www.ubuntu.com/certification/desktop/
- brightball 11y agoWell then. It's as if the people at Ubuntu are pretty smart and know what they're doing. :-)
- sciurus 11y agoExcept they certify systems with lots of problems. Dell had to stop selling their XPS 13 with Ubuntu for a while due to the number of issues. http://bartongeorge.net/2015/07/20/xps-13-developer-edition-on-pause/ http://bartongeorge.net/2015/07/20/xps-13-developer-edition-...
- ggreer 11y agoBeware. I went out of my way to get an Ubuntu certified laptop[1]. It took me months to get it to a usable state. Graphics drivers crashed or corrupted the screen[2]. Bluetooth didn't work. Wifi didn't work. While suspended to RAM, it drained 10% of the battery every hour. In short, it was a nightmare. I've had it for almost two years now, and I've given up on getting Bluetooth to work. After resuming from suspend, the wifi works about half the time, and screen brightness is always set to maximum. It's tolerable, but I only use the laptop when I have to. I doubt I'll ever buy a Linux laptop again, but if I do, I'll be sure to try it hands-on before buying. 1. The Lenovo X140e: http://www.ubuntu.com/certification/hardware/201309-14195/ http://www.ubuntu.com/certification/hardware/201309-14195/ 2. https://twitter.com/ggreer/status/548923450640056321 https://twitter.com/ggreer/status/548923450640056321
- archimedespi 11y ago> The monolithic Linux kernel is just too big. What is it now, 20,000,000 lines? There's no hope of debugging that. It shows. The Linux kernel is about 20MSLOC. The Windows kernel is about 50MSLOC. IIRC, OS X used to be ~80KSLOC. Problems with debugging are endemic to any monolithic kernel. Neither Windows nor OS X is easier to debug technologically, but Microsoft and Apple both have many employees and lots of money invested compared to Linux. (Also, Apple solved the problem by making their OS specific to their computers, so they had the whole thing under their control.)
- vezzy-fnord 11y agoKernel debuggers exist. Of course, we're all aware of Linus' opinion on the matter.
- serge2k 11y agoI'm not, does he not like kernel debuggers or something?
- vezzy-fnord 11y ago"No" would be an understatement: https://lwn.net/2000/0914/a/lt-debugger.php3 https://lwn.net/2000/0914/a/lt-debugger.php3
- 0xcde4c3db 11y agoHe apparently softened somewhat on the issue and did eventually (2008 / 2.6.26) merge a debugger into mainline. I don't think he ever really had a good answer to Alan Cox pointing out that you can't always reason your way through hardware misbehavior.
- carussell 11y agoHis argument also necessarily presupposes that you're never going to use a debugger to root out latent bugs, that is, you're only using a debugger because you've just written some buggy code and and you're trying to figure out where the problem lies. Which is silly. There are bugs in the kernel right now, there were bugs when that was written (he even alludes to it, but seemingly fails to understand the implication of it), there will be bugs introduced in the future, and someone at some point might like to find those bugs. Some of the best "What is the worst bug you ever encountered?" war stories are cases where people end up narrowing things down to a bug in what they were previously treating as bedrock.
- ris 11y ago"The monolithic Linux kernel is just too big. What is it now, 20,000,000 lines? There's no hope of debugging that. It shows." I don't think you know what you're talking about. It shows. Name me one non-"monolithic" OS kernel in mainstream use that manages high throughput. And macos doesn't count as a microkernel.
- jacquesm 11y agoQnX.
- Animats 11y agoQNX is making a comeback, via robotics and automatic driving. All the Boston Dynamics robots ran QNX; all the hydraulic valves were coordinated by one CPU. The valve servoloop ran at 1KHz and the balance loop at 100Hz. QNX is behind some automotive dashboards, and they're moving into automatic driving. They have some big announcement coming at CES in January. But nobody runs QNX on the desktop any more. This year, they finally stopped supporting the self-hosted development environment. Ten years ago, you could run Firebird (pre-Firefox) and Thunderbird on a QNX desktop. But when QNX stopped offering a free version, free software development for it stopped.
- jacquesm 11y agoI have a barebones re-implementation of QnX for the 32 bit x86, I don't have time enough to clean it up or port it to the 64 bit model. It blew the doors off the competition back in the day (about 2 decades ago), 200K context switches per second on a 33 MHz 486. Fast enough for real time control of all kinds of hardware and with a seamless path from a self hosting desktop environment to embedded hardware. I never got around to porting 'X' to it, but I did build a rudimentary window manager and some apps (terminal, calculator, some graphic demos to test the blitting software). Best demo was 250 tasks running independent graphics demos in windows without any noticeable lag or stutter. I really liked that project, some of the best code I ever wrote.
- 11y ago
- derefr 11y ago> Microsoft got drivers under control with the Static Driver Verifier, which uses automatic formal proofs of correctness to determine whether a driver can crash the kernel. ... Linux has no comparable technology. That's a pretty cool idea (also similar to the static verification in NaCl.) Is there a reason one couldn't implement a static verifier for Linux drivers? Would the problem be harder in any sense for Linux, because of e.g. number of exposed kernel APIs? Or could a static verifier "read off" the kernel's API with no manual annotation required?
- xjia 11y agoAFAIK MSR sponsored lots of research in this area. Program verification is still not that easy. [edit] http://research.microsoft.com/en-us/projects/slam/ http://research.microsoft.com/en-us/projects/slam/
- ramgorur 11y agonot really, people are doing some experiments with linux kernel as well. https://www.usenix.org/system/files/conference/osdi14/osdi14-paper-ryzhyk.pdf https://www.usenix.org/system/files/conference/osdi14/osdi14...
- xorblurb 11y ago> The monolithic Linux kernel is just too big. What is it now, 20,000,000 lines? There's no hope of debugging that. It shows. That makes no sense. Most of that are drivers and platforms you won't ever use. And some forms of symbolic checkers exists for Linux (maybe not that advanced as for the Windows kernelspace, though, I don't know -- although even simple local heuristic checks are quite useful to check automatically in their ability to find real bugs -- sometimes even more than very complex solvers)
- kbart 11y ago"Most of that are drivers and platforms you won't ever use" That's the point -- developers can't test all possible hardware configurations and resulting driver mixes. Some of the most often used architectures and configurations usually work pretty well out of a box, but if you had something a little more exotic, prepare to get your hands dirty. Honestly, I don't see a solution to this problem, unless some "openness" is sacrificed by signing drivers (Microsoft style).
- eschaton 11y agoDrivers and support for platforms should be separate from the kernel and work via a stable and well-designed API & ABI. The lack of this has been Linux's single biggest design flaw from the beginning.