Slashdot Mirror


According to Linus, Linux Is "Bloated"

mjasay writes "Linus Torvalds, founder of the Linux kernel, made a somewhat surprising comment at LinuxCon in Portland, Ore., on Monday: 'Linux is bloated.' While the open-source community has long pointed the finger at Microsoft's Windows as bloated, it appears that with success has come added heft, heft that makes Linux 'huge and scary now,' according to Torvalds." TuxRadar provides a small capsule of his remarks as well, as does The Register.

102 of 639 comments (clear)

  1. Problem by sopssa · · Score: 5, Insightful

    "Okay, so the summary of this is that you expect that 12 per cent to be back to where it should be next year, and you expect someone else to come up with a plan to do it," joked Bottomley. "That's open source."

    That is also the problem. Everyone adds pieces and eventually it starts to become a mess. Then someone else should fix it.

    1. Re:Problem by Anonymous Coward · · Score: 5, Insightful

      That's all software.

    2. Re:Problem by sopssa · · Score: 3, Insightful

      But when its open source, it's easier to think that maybe I cant be bothered to look at this now, someone else can do it. When its proprietary software and you get the assignment to look at it, you pretty much have to do it.

    3. Re:Problem by RiotingPacifist · · Score: 4, Interesting

      If only there was somebody at the top deciding what to let it/reject in such a way to keep the bloat out! While I am a linux/gpl fanboi, i think the bsd distros don't have this problem because they have much stricter people at the top of their kernels, and i think this is yet another sign that Linus should not be the only one running the show. If Linus isn't producing the kernel desktop users need (it's bloated, has the wrong scheduler, etc) then distros should step up and work around the problem GIT makes it very easy for them to start elsewhere, their previous release tree, mm tree, etc and add the patches they require!

      Before you jump at me and say that this will ruin Linux by duplicating work, it will still be the (essentially) same code that goes into the pool, its just the administration that changes, and producing incompatible distro's isn't a problem as the userspace API is fairly stable and changes to the ABI for prop drivers can be agreed on by the major players (or they can just follow linus's changes to them, or go crazy and stabilise the ABI so that the prop drivers work)

      --
      IranAir Flight 655 never forget!
    4. Re:Problem by Galactic+Dominator · · Score: 5, Insightful

      Properly managed opensource projects deal with this appropriately, some do not.

      Properly managed proprietary projects deal with this appropriately, some do not.

      --
      brandelf -t FreeBSD /brain
    5. Re:Problem by TheRaven64 · · Score: 5, Informative

      Keeping the bloat out is not just about rejecting patches, it's about encouraging code reuse. In the BSD kernels, for example, the WiFi drivers are very small and all use the same code for everything that is not hardware-specific. I believe this is the case in Linux now, but for a while Intel had their own (almost) complete WiFi stack for their drivers and no one else used any of that code. This is a pretty endemic problem in Linux. It gets even worse when you stray a little way from x86, and find that everyone is implementing their own, incompatible, code for platform-specific features without realising that a lot of it ought to be shared everywhere above the very lowest layer.

      --
      I am TheRaven on Soylent News
    6. Re:Problem by bostei2008 · · Score: 5, Insightful

      I agree.

      The people hating messes are the developers which have to look at this day by day. Cleaning up code is never something managers care about - its always driven by developers with a sense for order and simplicity.

      That means that Open Source software has a higher chance of getting cleaned up than propietary software, because there you have a higher percentage of truly motivated developers and no managers to bug them. Sigh...

    7. Re:Problem by Hal_Porter · · Score: 3, Insightful

      How does that work? In a proprietary project if your boss says "do this" you either do it or find another job. In an open source project you could just flame the hell out of the guy that told you on the public mailing list and carry on working on something else.

      And in a proprietary project if customers want something fixed they can threaten to not pay which in even the most incompetent company will tend to make your boss tell you to fix it. In open source that mechanism does not exist.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    8. Re:Problem by WinterSolstice · · Score: 4, Interesting

      The BSD distros do not have this problem, but it's not just the strict top-down management.

      It's the users.

      Linux is trying to court three major user groups wih the exact same kernel, and trying to be all things to all people. The big corporations who make up most of the Linux coding/funding/purchasing want better server performance (more processors, more RAM, etc). The desktop guys want better desktop, laptop, and netbook experiences (3D graphics, sound cards, processor power scaling). The third are the end-users who contribute almost nothing but want the system to be easy and simple.

      BSD however, really only has one user base - and they largely want the same thing. Stability, security, and performance. So all the cute little desktop friendly stuff that Linux keeps adding and all the server-specific stuff that Linux keeps adding aren't there. There's just the one major direction.

      Or at least that's my experience, and I've been using it since 2.x.

      --
      An operating system should be like a light switch... simple, effective, easy to use, and designed for everyone.
    9. Re:Problem by Jurily · · Score: 2, Insightful

      While I am a linux/gpl fanboi, i think the bsd distros don't have this problem because they have much stricter people at the top of their kernels, and i think this is yet another sign that Linus should not be the only one running the show.

      Heh. BSD doesn't have this problem because nobody cares enough about them to contribute enough code. You don't really have to think about feature creep at 3 patches per week.

    10. Re:Problem by MadnessASAP · · Score: 2, Informative

      It's the same as any other volunteer work, you have absolutely no obligation to do the work but if you don't then your not going to be invited back and your work will be refused.

      --
      I may agree with what you say, but I will defend to the death your right to face the consequences of saying it.
    11. Re:Problem by jhol13 · · Score: 5, Interesting

      Constant changes, i.e. lack of stable KBI (kernel binary interface) does not help.

      Eventually keeping your incompatible stack is easier than keeping up-to-date with latest and "greatest", especially if you happen to test your code.

    12. Re:Problem by Galactic+Dominator · · Score: 3, Interesting

      In FreeBSD, you chose to accept a project. If you fail to perform, you are replaced with another volunteer. It doesn't matter if you're a core committer or a port maintainer, it all works that way. There are occasional problems but overall a successful approach. Many other opensource projects do the same. That's why hierarchies work in opensource--they hold people accountable just like in a proprietary project.

      --
      brandelf -t FreeBSD /brain
    13. Re:Problem by renoX · · Score: 4, Insightful

      That's false of course:
      1) the deciding factor for project management is the non-commercial/commercial status of a project, not the closed/open state of the source.

      2) for non-commercial projects, both developers 'goodwill' and proper management are needed to avoid bloat; whereas for a commercial project only proper management is needed (as the management decides where the money will go).

      Note that the Linux kernel is a blend of non-commercial and commercial projects as many developers are paid to work on the Linux kernel and many aren't.

    14. Re:Problem by oiron · · Score: 5, Interesting

      It gets done because ultimately somebody says "Fuck this, I can't work on this bloated codebase any longer. We're refactoring, guys!"

      Then, if the old lead dev / maintainer / admin doesn't like it, a fork happens...

      Projects where this has happened before: The kernel itself, several times (as well as various subsystems, again several times), X (XFree to XOrg), KDE (2-3, 3-4), Amarok (1.x to 2.x), SodiPodi -> Inkscape, Firefox from 2 to 3... These are off the top of my mind, of course - there are lots more.

      Of course, there are some cases where this process has failed. I don't think the failure rate is any higher (or lower) than proprietary projects, though...

      The incentives are different, but they exist, nevertheless...

    15. Re:Problem by Anonymous Coward · · Score: 2, Interesting

      it's about encouraging code reuse

      That is part of it. However the real issue is performance '12% performance decline'. That makes it seem 'bloated'. Just going in and willy nilly merging code together will not magically make it faster or less bloated.

      It needs to be measured to see where the bottlenecks are. Attack THOSE areas first. As an old boss of mine like to put it 'if you didnt measure it before and after you didnt change a thing and you do not know if it is better or worse'. Measure time and figure out what the real problems are. Is it death by 1000 cuts? Is it some 20 line hot spots?

      Code reuse is admirable but only goes so far. It does however make it easier to find what is wrong when performance goes to hell. It has other 'helping' benefits too. But just going off blindly and just merging stuff up will not make the problem better it could even make it worse. I have been keeping an eye on the BOCHS project (one of the slower emulators out there). They turned the problem on its head and did the exact opposite and started breaking things apart. They have over the last few releases got a 30% speed increase. How did they know it worked? They tested and measured. Architecture is not about pretty code (you get that if you do it right), it is about knowing what your platform (and that includes both hardware and compiler) does with an if condition or a for loop or a cache miss.

      They are letting more and more in to get more drivers (we wanted it and got it). The downside is code bloat. Not properly abstracting the idea. Its not as fun...

    16. Re:Problem by Lumpy · · Score: 5, Insightful

      Cleaning up code is never something managers care about

      Most managers care a LOT about cleaning up code. It's a waste of time in their eyes and most will write you up for wasting time if they discover that you are doing it.

      They wanted it done last week, cleaning up code misses deadlines and is a waste of time as far as management is concerned.

      --
      Do not look at laser with remaining good eye.
    17. Re:Problem by LordNimon · · Score: 2, Insightful

      You forgot the fourth group: embedded system developers.

      --
      And the men who hold high places must be the ones who start
      To mold a new reality... closer to the heart
    18. Re:Problem by amplt1337 · · Score: 3, Funny

      In a proprietary project if your boss says "do this" you either do it or find another job.

      Or you make excuses, pass the buck, and sponge off your colleagues until the next reorg.

      --
      Freedom isn't free; its price is the well-being of others.
    19. Re:Problem by amplt1337 · · Score: 3, Interesting

      I'm not understanding something. If BSD lacks both the "desktop friendly stuff" and the "server-specific stuff"... then what exactly are BSD-based systems doing so stably, securely, and speedily?

      --
      Freedom isn't free; its price is the well-being of others.
    20. Re:Problem by camperdave · · Score: 4, Funny

      Executing NOPs, I guess.

      --
      When our name is on the back of your car, we're behind you all the way!
    21. Re:Problem by DrgnDancer · · Score: 5, Insightful

      The same way people in raid guild do what they're supposed to in raids even though it's only a game and raid officers can't do anything to you really; or members of Civil Air Patrol follow military customs and courtesies toward their officers despite those officers having no actual UCMJ authority; or people in SCA listen to the nobles of their "Baronies" despite those people not having any real world authority. When you join a group or a project, you agree to abide by the rules of the group or project. If you eventually find that you can't, you generally either leave or are forced out. if the project lead on a properly managed project asks you to do some boring grunt work, you either do it or find a new project and someone else will be asked to do the work.

      If the project is generally fun or personally beneficial for you to work on, you'll do the grunt tasks you're asked to do, because otherwise you'll eventually be off the project. If the project wants to keep it's user base (and most do) it'll fix as many problems as it can to keep the users happy.

      --
      I don't need a million points of light, just two points of multi-mode fiber and a 10 Gig-E router.
    22. Re:Problem by quanticle · · Score: 4, Interesting

      Precisely. The grandparent is forgetting that, in the proprietary world, the scenario you described can't happen. I can't go to my boss and tell him, "Screw this, I'm going to spend the next month refactoring our messy code, rather than adding new functionality." However, I can do that in an open-source project.

      --
      We all know what to do, but we don't know how to get re-elected once we have done it
    23. Re:Problem by sylvandb · · Score: 2, Insightful

      And in a proprietary project if customers want something fixed they can threaten to not pay which in even the most incompetent company will tend to make your boss tell you to fix it. In open source that mechanism does not exist.

      In open source you can fix it yourself or pay to have it fixed. With proprietary software that mechanism does not exist.

      When a customer says "fix it" re. proprietary software, it only means that the result passes some test. Very seldom does the customer see the code and understand the cruft involved. So that seldom if ever gets fixed, and nearly always gets much worse over time. In proprietary software the black box is truly black.

      sdb

    24. Re:Problem by VGPowerlord · · Score: 2, Funny

      He is the gate keeper

      There is no Linus, only Zuul!

      Oh wow, that explains everything!
       
      ...who is Vinz Clortho, then? RMS?

      --
      GLaDOS for President 2016! "Well here we are again. It's always such a pleasure." -- GLaDOS, 2011
    25. Re:Problem by sylvandb · · Score: 3, Insightful

      Why should Linus focus for Desktop Linux. It is a dead horse... Deal with it. Its a Dyeing market. Let Microsoft go down with that ship. Linux should be designed better for cloud/distributive processing, and server stuff. We are getting to a point we don't need desktops we need a thin client that can connect to the network. And let someone else do the work.

      LOL

      People have been denying the need for and predicting the death of desktop computing since before desktop computing existed (for at least 50 years, http://en.wikipedia.org/wiki/Thomas_J._Watson#Famous_misquote).

      The only thing that has happened is that computing has become more and more pervasive as people hold more computing power in their hand than existed in the computer room 50 years ago.

      If desktop computing ever goes away, it will be because the desk is gone. People will still have their own computer(s), and every computer will need an operating system. That OS might as well be Linux as anything else.

    26. Re:Problem by geekboy642 · · Score: 4, Funny

      C++ makes sure nothing gets to become a real mess

      You're funny. Can I have you come and perform for my birthday party?

      --
      Just another "DOJ fascist authoritarian totalitarian bootlicker" -- Zeio
    27. Re:Problem by Compholio · · Score: 2, Informative

      You could tweak your driver and improve it's code instead of spending all day chasing to keep up with the latest KBI changes.

      I've written a few proprietary kernel modules, and I don't think this problem is as significant as you believe. I found that it was pretty easy to take a stock kernel, build my driver to target it, and then move forward and build a set of version-dependent macros for the different KBI changes as they crop up. It's not like they change the entire KBI every day, and unless you're part of some big company you're not going to be targeting every kernel version in existence (and if you are in that circumstance, you'd have enough people to handle this task).

    28. Re:Problem by AvitarX · · Score: 2, Informative

      Let's not forget Mozilla -> Firefox

      --
      Wow, sent an e-mail as suggested when clicking on "use classic" banner, and got a fast response that addressed my msg
    29. Re:Problem by John+Betonschaar · · Score: 2, Interesting

      How does that work? In a proprietary project if your boss says "do this" you either do it or find another job

      You don't work in software, do you? I've worked at 5 different companies as a software engineer, and in all of these jobs I've never had my boss tell me to fix the crappy parts of the software I was assigned to work on. Actually in neither of them my boss even took the time to look at the code itself. It always was "[we | customer x ] needs [feature | bugfix] y within z [hours | weeks | days]. Make it happen."

    30. Re:Problem by DaMattster · · Score: 2

      by Jurily (900488) Alter Relationship on Tuesday September 22, @09:38AM (#29503123) While I am a linux/gpl fanboi, i think the bsd distros don't have this problem because they have much stricter people at the top of their kernels, and i think this is yet another sign that Linus should not be the only one running the show. Heh. BSD doesn't have this problem because nobody cares enough about them to contribute enough code. You don't really have to think about feature creep at 3 patches per week.

      More FUD, thank you. BSD has a large and dedicated fan based and rather than just put any code willy nilly into the kernel it is carefully evaluated. FreeBSD powers the root nameservers and OpenBSD is arguably the most secure operating system in the world. With reputations like this to uphold, often state of the art features are not added to maintain stability and security. No need to start a flamewar. Both BSD and Linux would be better off with cooperation, rather than conflict. Especially because Linux does much better as a VoIP platform.

    31. Re:Problem by RiotingPacifist · · Score: 2, Insightful

      Why should Linus focus for Desktop Linux.

      I'm not saying he should, but desktop distro's certainly need to!

      --
      IranAir Flight 655 never forget!
    32. Re:Problem by ThePhilips · · Score: 3, Insightful

      Why should Linus focus for Desktop Linux. It is a dead horse...

      And in some part is a dead horse thank to Linus himself.

      Point is that "perfect kernel" from system developer POV, is "piece of useless junk" from POV of application developers.

      Sound interface is at best dysfunctional. Video acceleration is constantly "under construction" (redone 5th time now or so). Real-time timers required for smooth multimedia and games are still at large.

      Just look at Apple's Mac OS X on how problems have to be handled. Instead of debating about what should/shouldn't be in "perfect kernel," people concentrate their work on areas which actually relevant to application developers and of benefit to end users. Apple took the line "if we don't do it who else" while Linus' official line is something like "do it in userspace" or "do not care. don't have to. I'm system programmer."

      --
      All hope abandon ye who enter here.
    33. Re:Problem by Ephemeriis · · Score: 2, Insightful

      How does that work? In a proprietary project if your boss says "do this" you either do it or find another job.

      Sure... You're given an assignment and you basically have to do it. But somewhere along the line somebody has to decide what is a priority and what isn't. Somebody decides what actually gets done. And it doesn't really matter if it's a proprietary project or not - stuff slips through the cracks.

      You think a company is going to drop everything to refactor some code just because it's getting a little long in the tooth? Even though everything works? You think a company is going to put a whole lot of time and effort into optimizing their code to get the installation down under ## GB, even though HDDs are dirt cheap and the code actually works?

      It all comes down to priorities. And important stuff can get a low priority with proprietary code just as easily as open source.

      In an open source project you could just flame the hell out of the guy that told you on the public mailing list and carry on working on something else.

      You can... And nobody is going to force you to write any code in particular... But the situation is a little unique in open source software... If you are unwilling to update your code, for whatever reason, someone else can. Some other random guy on the mailing list can make the changes. And if you're seen as enough of an obstruction, they'll just fork your code and carry on without you.

      And in a proprietary project if customers want something fixed they can threaten to not pay which in even the most incompetent company will tend to make your boss tell you to fix it.

      Maybe... It depends on just how badly you need a particular piece of software. I've got clients paying for upgrades and support to buggy software because they can't run their business without it. Year after year, thousands of dollars, and the software still sucks. And they complain about it constantly. But they can't do business without it. So they learn where the bugs are and work around them.

      In open source that mechanism does not exist.

      No... But in open source you're never tied to a specific vendor. Absolute worst-case scenario you can pay someone to fix those bugs for you.

      --
      "Work is the curse of the drinking classes." -Oscar Wilde
    34. Re:Problem by master5o1 · · Score: 2, Interesting

      So really:

      properly managed (volunteer) open source projects deal with this appropriately, some do not.

      I say "(volunteer)" because I think I recall some open source projects having only certain contributors, as opposed to anyone.

      --
      signature is pants
  2. I've met the enemy by Zarf · · Score: 2, Insightful

    I've met the enemy and they is us.

    --
    [signature]
    1. Re:I've met the enemy by Lumpy · · Score: 4, Informative

      Problem is the "bloat" is in code only not in the running kernel.

      I can easily compile a linux kernel that runs in very little space on a super slow processor and it screams.

      Problem is the "bloat" that Linus is talking about is simply plain old kludgy coding done to get it out the door faster. Adding features need to stop and all kernel coders need to work on cleaning things up. It's the sucky part of the job that nobody wants to do, but it needs to be done. I've seen the insides of some kernel modules that will make your toes curl in fear as they are early prototypes pre-alphas at best.

      --
      Do not look at laser with remaining good eye.
    2. Re:I've met the enemy by sumdumass · · Score: 4, Insightful

      Bloat isn't a problem

      Until it causes system instability, slow performance, or increases the size of the code without adding any new features or fixing a problem. Bloat can become a problem, but it doesn't have to be. I thought I would just point that difference out because "isn't" seems to be an absolute which it shouldn't be.

  3. So, Andrew Tannenbaum by siddesu · · Score: 5, Funny

    is finally having the last laugh? /dnrtfa

    1. Re:So, Andrew Tannenbaum by metamatic · · Score: 2, Interesting

      Basically, my thoughts on seeing the headline were "No shit, Sherlock", followed by "I guess Andy Tanenbaum was right, eh Linus?"

      Linus's approach has always been "What the hell, throw it in the kernel". The result is that if you try running Linux on something like a Nokia N800 or N810, where there's only 128MB or 256MB of RAM, it crawls and thrashes even with the swap on flash memory.

      Meanwhile, Tanenbaum's MINIX requires 16MB of RAM. Good luck getting any kind of Linux to load in that amount of space.

      --
      GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
    2. Re:So, Andrew Tannenbaum by samwichse · · Score: 2, Insightful

      Um... what are you doing with that N800? Probably surfing FAT websites like Slashdot).

      Now what are you doing with MINIX in 16MB of RAM? Probably not much.

      How about DD-WRT micro on a WRT54G > version 6? 2MB flash, 8 MB RAM and it runs a nice router and serves up config pages, QoS, etc.

  4. Obvious weird Windows comparison by dingen · · Score: 3, Insightful

    Of course nobody refers to Windows' kernel when people call it bloatware. Linus however is not talking about Linux as a distro or an operating system, it's just the kernel that's too bloated in his view. And with over 11 million lines of code, it's hardly even a flame.

    Now if only he had developed a microkernel instead...

    --
    Pretty good is actually pretty bad.
    1. Re:Obvious weird Windows comparison by dingen · · Score: 3, Insightful

      Well, if you just take a look at this monster I think you'll quickly will come to the conclusion that even providing the most basic functionality can lead to something quite complicated. And of course, "basic functionality" in 2009 means something else entirely when compared to 1991 when Linux started out.

      It should be noted that of course the module-system works pretty good to keep things organised, so no developer needs to dig through millions of lines of code to make a few tweaks. But it's a monster nonetheless.

      --
      Pretty good is actually pretty bad.
    2. Re:Obvious weird Windows comparison by TheLinuxSRC · · Score: 3, Informative

      What are the things that can make an OS kernel bloat up to 11 millions lines?

      Mostly drivers. Which are kind of irrelevant with regard to bloat because if you so desire, you can build a kernel that only contains drivers that you need. I realize that no distro can realistically do this with their pre-compiled kernels however, no one is going to compile support for everything that the Linux kernel is capable of supporting in a single kernel either.

      I still think it is funny that Linux is considered "bloatware" when Windows will still use several times the same resources as Linux. For instance, take any desktop distro (Ubuntu, Fedora, etc...) and a complete installation including multiple desktop environments, browsers, office suites, etc... still takes up less disk space, memory and CPU than does a bare installation of Windows Vista/7.

      Seems to me that "bloat" is completely relative and arbitrary.

    3. Re:Obvious weird Windows comparison by dnaumov · · Score: 2, Funny

      For instance, take any desktop distro (Ubuntu, Fedora, etc...) and a complete installation including multiple desktop environments, browsers, office suites, etc... still takes up less disk space, memory and CPU than does a bare installation of Windows Vista/7.

      I'm sorry, but you seem to be severely misinformed regarding the performance of modern Linux distributions vs Windows 7 on modern hardware. Yes, sure, you can use something like Debian and it will run faster than Windows 7 out of the box, but at what cost?

    4. Re:Obvious weird Windows comparison by psyklopz · · Score: 3, Interesting

      I would like to believe this, but it hasn't been my experience.

      I can tell you this: Vista (!!!) appears to run smoother and with a more-responsive UI on my laptop than when I try a default ubuntu install on the thing (for example, flash just crawls when I am viewing it thru firefox in ubuntu).

      It has been my experience in the past that every time I install linux, it runs slower (or at least appears to run slower) than the windows install on the same machine.

      I'm not trying to troll. Maybe someone could explain this phenomenon to me. I actually *want* to switch, but I can't if the alternative is providing a degraded experience.

    5. Re:Obvious weird Windows comparison by StayFrosty · · Score: 3, Informative

      (for example, flash just crawls when I am viewing it thru firefox in ubuntu).

      This is mainly because Adobe doesn't spend nearly as much time or money on the Linux port of flash.

      --
      "Frequently wrong, never in doubt."
    6. Re:Obvious weird Windows comparison by kayoshiii · · Score: 3, Interesting

      The problem in this case is that Flash is something of a Dog on Linux....
      also In many cases video drivers are not as well optimised either.

      Over the years I have found that Windows feels snappier on an unloaded system whereas Linux generally tends to feel better on a machine under heavy load.

    7. Re:Obvious weird Windows comparison by Blakey+Rat · · Score: 2, Informative

      Unless Windows 7 has changed radically how drivers work under Windows, those usually require user installation on drivers. So, in different words, you're bullshitting.

      Depends on what version of Windows you're using as a baseline, but I can say with some certainty: yes it's changed, because you're completely wrong.

      I've yet to have to manually install a driver in Vista or Windows 7, and even XP did a pretty damned good job of finding all my drivers a few years ago when I re-installed it. (IIRC, the one it was missing was my USB wifi dongle, everything else it got fine.)

      I have a radical idea: maybe you should actually *use* Vista or Windows 7 before slamming it. Just a thought.

  5. Linux is bloated... by jarocho · · Score: 5, Funny

    However, Minix continues to maintain its girlish figure.

    1. Re:Linux is bloated... by Chemisor · · Score: 5, Funny

      It's easy to maintain your girlish figure when you are embalmed.

  6. A Few More Bits of His Talk by eldavojohn · · Score: 5, Interesting
    I can't believe I'm relying on The Register for this but they have a few more quotes from him:

    Uh, I'd love to say we have a plan. I mean, sometimes it's a bit sad that we are definitely not the streamlined, small, hyper-efficient kernel that I envisioned 15 years ago...The kernel is huge and bloated, and our icache footprint is scary. I mean, there is no question about that. And whenever we add a new feature, it only gets worse.

    And also:

    He maintains, however, that stability is not a problem. "I think we've been pretty stable," he said. "We are finding the bugs as fast as we're adding them -- even though we're adding more code." Bottomley took this to mean that Torvalds views that the current level of integration acceptable under those terms. But Mr. Linux corrected him. "No. I'm not saying that," Torvalds answered. "Acceptable and avoidable are two different things. It's unacceptable but it's also probably unavoidable."

    I think that's very important to note. His quote by itself is very self-loathing but to add that tit's unavoidable really says a lot. You want to be popular? You have to satisfy more people and in doing so you become more bloated. He does maintain that Linux remains stable and that's usually the biggest problem I have with bloat. It decreases stability. I don't think there's any reason to get excited about level headed rational and reflection.

    --
    My work here is dung.
    1. Re:A Few More Bits of His Talk by dingen · · Score: 4, Funny

      but to add that tit's unavoidable really

      I'm more of a bottom kinda guy myself, but hey, I get it.

      --
      Pretty good is actually pretty bad.
  7. Specialist's bloat is not user's bloat by Dystopian+Rebel · · Score: 5, Insightful

    What "bloat" in software means to LT as the high priest of the kernel and what bloat means to me as a user are two different things.

    To a user, bloat means awkward, slow, inefficient, and needlessly large (if my storage space or bandwidth is limited). But these are all *perceived*. I don't perceive Linux to be bloated.

    In fact, I find *NIX with almost any window manager to be the most efficient computer OS I have ever used. Linux is the best of them, despite being a clone of the UNIX userland.

    If an OS can boot from a floppy or small USB key and be totally usable, it is certainly not bloatware. Rewrite the Linux userland in MONO or Java and then we'll talk about bloat.

    --
    Rich And Stupid is not so bad as Working For Rich And Stupid.
    1. Re:Specialist's bloat is not user's bloat by Anonymous Coward · · Score: 3, Insightful

      Funny, I find Open Office to be bloated compared to MS Office.
      KDE/Gnome to be bloated to XP.

      That's why I use the best tools for me: MS Office and XP (in that order)

      It's not perfect, far from it, but works the best for me.
      KDE, Gnome, OO just feels like molasses everytime I try, and don't misunderstand:
      I've spent years under KDE, but given up on it every time after spending ungodly hours fixing what should work out of the box.
      OO has awful UI. I can't use it. Feels like a program from the early 90's which you can't figure out..

      Fixing the bloat in KDE/Gnome and OO UI, would work wonders for many people..

    2. Re:Specialist's bloat is not user's bloat by Lord+Ender · · Score: 4, Interesting

      Java is actually damn fast if you keep the JVM running at all times. Even wimpy mobile devices like the Kindle can run Java fine. The Kindle is just Linux + JVM on a puny ARM processor.

      --
      A slashdotter who didn't build his own computer is like a Jedi who didn't build his own lightsaber.
    3. Re:Specialist's bloat is not user's bloat by SanityInAnarchy · · Score: 3, Interesting

      It's mostly because Linus isn't talking about the "Linux" you're talking about -- that is, a whole Linux distribution, as compared to other OSes.

      He's talking about Linux itself, compared to what he thought it would be.

      Basically, the original plan for Linux was never to be an OS in its own right, but to be just another POSIX kernel, one highly-tuned for the then state-of-the-art 386 chip. Even porting to PowerPC was never part of the plan. The fact that this kernel is so flexible and featureful -- that it has drivers for damned-near everything, that it runs on everything from cell phones to mainframes, from set-top boxes to thousand-machine clusters, from wristwatches to... Yeah, all that portability necessarily makes it bigger than what would strictly be needed for one architecture and a limited set of hardware.

      It's also got to do with things like multiple schedulers, and it explains something of why Linus wanted one scheduler to rule them all -- the idea of pluggable schedulers is ludicrous, compared to the original idea of one kernel per platform, where you wouldn't have a Linux app, you'd have a Posix app that would run on Linux on x86, and on something entirely different on PPC, and yet another kernel on ARM. If it had been done that way, at least in theory, all of those kernels combined should've still been smaller than Linux currently is.

      --
      Don't thank God, thank a doctor!
  8. Microkernels. Hmm... by Viol8 · · Score: 3, Insightful

    "Now if only he had developed a microkernel instead..."

    It would be bloated AND slow.

    But hey, it would look pretty in a high level UML diagram.

    1. Re:Microkernels. Hmm... by OzPeter · · Score: 3, Interesting

      You mean like QNX is slow?

      --
      I am Slashdot. Are you Slashdot as well?
    2. Re:Microkernels. Hmm... by Lumpy · · Score: 5, Informative

      Yes.

      QNX compared to a hand tuned embedded linux install is in fact Slow.

      QNX on the other hand is a faster deploy time, you dont have to spend time wrapping your own embedded distro for your product, just pay the QNX license fee and you're off.

      Back 4 years ago I proved that by making my own linux install for a company product and kicked out the QNX system. It ran far faster, but they did not want to pay to support the custom OS so we stuck with QNX, and they already paid for the QNX licensing.

      --
      Do not look at laser with remaining good eye.
  9. Are too many added drivers really the cause? by rpp3po · · Score: 4, Interesting

    About two years ago I tested wether my Gentoo kernel was really faster. Disabling 3/4 of the options really just improved boot time and memory footprint, but not overall performance that much, at least far from 12%. Compared to a modularized kernel with just the stuff loaded, that was needed, the difference was negligible. I'm not sure if Torvalds is telling the truth about the reasons. To me it seems that the central, overall kernel architecture has degraded over time with regard to performance.

    1. Re:Are too many added drivers really the cause? by OzPeter · · Score: 3, Insightful

      I always thought that building drivers into the kernel was going to be Linux's downfall. There is an un-ending supply of equipment that requires drivers and they can't all go into the kernel without some repercussions. Let alone being a black hole that continually sucks up stuff and never deletes it. This design may work well for a small system with limited hardware but is doomed to fail at some point when trying to scale it up for the real world.

      --
      I am Slashdot. Are you Slashdot as well?
    2. Re:Are too many added drivers really the cause? by Ash-Fox · · Score: 4, Informative

      Most drivers are compiled as kernel modules and loaded only when needed.

      --
      Change is certain; progress is not obligatory.
    3. Re:Are too many added drivers really the cause? by Anonymous Coward · · Score: 3, Interesting

      I think the GPs concern is not about performance but about maintainability. Being a module doesn't really affect that. When the driver API changes every driver has to be changed. The more drivers the more work has to be done. What adds to this problem is that these APIs really do change in Linux.

    4. Re:Are too many added drivers really the cause? by Dog-Cow · · Score: 2, Informative

      What you write makes no sense what so ever. The kernel provides interfaces between its core services and the drivers. It doesn't matter how many drivers exist, so long as they use the proper interfaces. All kernels work this way.

    5. Re:Are too many added drivers really the cause? by tokul · · Score: 2, Informative

      I always thought that building drivers into the kernel was going to be Linux's downfall.

      Allowing untested third party drivers will create unstable system. When drivers are in kernel tree, they are be reviewed and fixed. If hardware manufacturers write and maintain drivers in own software repositories, drivers will be untested, unmaintained and crappy.

    6. Re:Are too many added drivers really the cause? by oiron · · Score: 5, Informative

      Drivers live in the kernel tree. They don't necessarily have to be built into the kernel... Take a look at what the M key does in make menuconfig sometime...

    7. Re:Are too many added drivers really the cause? by QuantumRiff · · Score: 3, Insightful

      the kernel modules are not its downfall, they are its biggest asset.

      I have a laptop HD with my copy of Ubuntu running on it. I popped it into another model of laptop yesterday, (from a Dell D630 to a Lenovo T400) everything worked fine.

      I plugged a printer in a week ago, worked fine. Connected my Cannon camera, it popped up and asked if I wanted to import the photos. I plugged in my wife's ipod, and it asked if I wanted to open Rythmbox.

      On windows, I would have had to go to countless websites, download drivers (or itunes) install, and troubleshoot. With linux, all of that just worked. On XP it was a pain in the ass to switch between AHCI and compatibility mode on my laptop. With linux, I can switch whenever I want.. it just works..

      --

      What are we going to do tonight Brain?
    8. Re:Are too many added drivers really the cause? by Anonymous Coward · · Score: 2, Insightful

      On windows, I would have had to go to countless websites, download drivers (or itunes) install, and troubleshoot. With linux, all of that just worked. On XP it was a pain in the ass to switch between AHCI and compatibility mode on my laptop. With linux, I can switch whenever I want.. it just works..

      Worst of all, you would need to reactivate XP/Vista popping HD from laptop A into laptop B. This assumes they let you or you press the right monkey buttons when calling in. Switch the HD back, and reactivate again (and again).

  10. Re:Bloat is often moot by natehoy · · Score: 4, Insightful

    Torvalds' use of the term "Bloated" in this case refers specifically to a loss of performance and an increase in size and memory usage, not of confusion.

    I think there are two (competing) goals for the Linux kernel as a whole (well, there are as many goals as there are developers, of course, so the two competing goals are more of a continuum).

    On one side, there is a desire for the Linux kernel to support more features so distros can be built to be more like popular mainstream operating systems like Windows and Mac. Ease-of-use, a pleasant user experience, separation/insulation from the dreaded Command Line, pretty graphics, massive hardware support, and support for more "oddball" configurations like multiple screens, etc. So it's desirable to have lots of driver support and lots of hooks into the operating system to support fancy stuff.

    On the other, there is a desire for Linux to be small, sleek, and fast, particularly for embedded projects.

    The former has been running the show for a while, and I think that's healthy and positive, but the kernel has gotten larger and slower at its basic job. For desktop users, this is good news since a lot of things that had to be done at "higher" levels can now be accomplished directly in the kernel, so they might actually have a faster user experience, and they've got resources to burn since most PCs are specced out for Windows, so Linux has a lot of spare growing room in that hardware.

    But for embedded/minimalist supporters, it means they need to add more hardware to their machines to support the now-larger kernel, chock full of features they'll never need or want.

    --
    "This post contains words, known to the State of California to cause thought. Wash brain thoroughly after reading."
  11. Pick two by justthinkit · · Score: 4, Insightful

    (1) Large feature set
    (2) Compact/optimized
    (3) Fast to market

    Pick any two...

    --
    I come here for the love
    1. Re:Pick two by adrianwn · · Score: 2, Insightful

      (1) Large feature set (2) Compact/optimized (3) Fast to market Pick any two...

      ...and you'll get one. If you're lucky. And it won't be (3). And sometimes it won't be one of the two that you picked.

  12. obvious by walshy007 · · Score: 4, Insightful

    more hardware support and more functional tasks with scope creep means larger code base. nothing to see here, move along.

  13. Re:Translation: by jedidiah · · Score: 2, Insightful

    What do you think is extra? What would you remove? Are you able to remove it?

    For Ubuntu, I can easily answer these questions because the system is transparent
    and I can act on my preferences without even being a developer because the system
    is flexible, modular and open.

    I can even get rid of a lot of Linuses kernel code because there's been a nice shiny
    happy build GUI included with the kernel since the 1.x days.

    --
    A Pirate and a Puritan look the same on a balance sheet.
  14. Re:Translation: by RiotingPacifist · · Score: 2, Informative

    the difference is
    make menuconfig & modprobe -r
    bloating in the windows kernel is compulsory!
    bloat in the linux kernel is optional and much of it can be removed at runtime, ofc if the whole kernel is getting worse every release then that is bad. So before making comparisons to windows it's important do remember that an extra 10% of something small (once you trim the crap you don't need) is less than an extra 10% of something big (because you can't)

    --
    IranAir Flight 655 never forget!
  15. Ah, the ever quotable Linus. by hey! · · Score: 5, Insightful

    This is like the salesman's nightmare, where you take the guy from engineering to visit the customer. Things are going great, the engineer can answer all the customer's questions.

    Then you realize, *the stupid bastard is answering the questions honestly*.

    Honesty is a basic requirement to be a halfway decent engineer. Persistent and incurable dissatisfaction with how you did the last job is another. Even if you *know* you did a great job, deep inside part of you knows you could have done it *better*.

    --
    Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
  16. What to do then? by werfu · · Score: 3, Interesting

    Then let's do like most other open source projects when they reach that point : Analyze current version, find good things and bads things, find possible improvement that were impossible because of breakage and legacy. Once the analysis process is complete, start version 3.0 from scratch, implement the new stuffs and improvements, then bring current features in one by one. And don't tell me it cant be done, it has been. And dont tell me it wouldn't be supported : how much time did it take before the 2.6 line has been adopted by industrials and missing critial distro?

  17. Bloated? Of course. Happens in every walk of life by pilsner.urquell · · Score: 2, Interesting

    Bloated? Of course. Happens in every walk of life. It starts out lean and mean killing machine out of necessity, otherwise there is no success. Life is tough and to be other than at the top of efficiency is a death sentence.

    After achieving success then being fat and lazy is a luxury that is no longer fatal.

    This happens everywhere the jungle, in the business world, your job and governments. Evolution.

  18. Re:Compile it yourself! by delt0r · · Score: 2, Informative

    I still compile the kernel from time to time. Its not that different and the core kernel compiles quickly. But the modules take ages if everything is enabled. Generally you can disable more than 70% on any given system, then compile time is much faster. With the make -j2 thing on a dual core i wait less time with slackware 13.0 than I did with slackware 1.? on a 486. (can't remember the kernel numbers)

    --
    If information wants to be free, why does my internet connection cost so much?
  19. was Tanenbaum right?? by pixorro · · Score: 2, Informative

    Does anyone remember The Tanenbaum-Torvalds Debate??? I think that Linux is facing the problems that professor Tanenbaum stated more than a decade ago and Linus Torvalds did not take into account. Is something like minix3 (www.minix3.org) the future of operantig systems??

  20. Re:Translation: by Anonymous Coward · · Score: 2, Interesting

    I think people are somewhat missing the big picture here. This is evolution in action. As time goes on and people need new things they get added. It's hard to say when to get rid of old vestigial features, so it doesn't get done. This leads to bloat. Eventually this will be corrected as the obsolete stuff gets more obviously unused. It's a problem, but unlike the dinosaurs, Linux will adapt due to the extreme ease of digital replication. If it ever gets so bad as to be unsustainable, someone will either use an old version, recompile or fork and get rid of the parts they will never use. You can't really do that with anything that you don't have source to. Of course the typical end user like me will have to wait for somebody to do this, but luckily my computer is fast enough that I haven't really noticed yet.

  21. Re:Linux Need To Move On To GPL v3 by ledow · · Score: 2, Informative

    And is also utterly impossible while there is a single line of GPLv2-only code in it that the author doesn't give permission for, or whom is dead. There's quite a lot of code like that, there's a lot that can't be traced to an author, there's a lot of authors that won't give their permission, there's a lot that *can't* give their permission (employers, etc.) and there's so much of it that recreating it from scratch without reference to the original code would actually take longer than just starting a GPLv3 kernel from scratch.

    And this has been discussed to death before. Ain't gonna happen - not out of some inate personal reasoning, but sheer impossibility.

  22. Re:Simple solution by coryking · · Score: 3, Insightful

    Clearly whoever modded you up has never tried what you are suggesting. I can only name a handfull of open source projects that backport security fixes to old versions and of those, they only backport to versions a few years old.

    In fact, I'd say the longest lived "old version" is probably Apache 1.3. The 2.x series has been out for, what, forever and yet they continue to push out fixes for 1.3 (last was Jan. 2008).

    I'd wager the biggest complaint I have with most open source is the a) dont understand what true stability means and as a result they b) rarely support old versions. It was one of the prime reasons I switched to FreeBSD. If I install FreeBSD 6.2 today, I know I'll get security fixes for at least a good half decade and probably a bit more if I track the 6.x series.

    Yeah yeah yeah, debian, yeah yeah... but dont get me started on the other reasons I switched (cough crappy docs, cough, crappy unstable kernel, cough

  23. Re:Bloat is often moot by nomadic · · Score: 2, Insightful

    Often the term bloated is misused meaning the speaker is at a point where he/she personally starts to find a technology confusing to wade through.

    Linux today does not boot significantly faster than it did 15 years ago. That's bloat.

  24. Another perspective by sootman · · Score: 4, Interesting

    Bloat isn't bad.

    Version 5.0 of Microsoft's flagship spreadsheet program Excel came out in 1993. It was positively huge: it required a whole 15 megabytes of hard drive space. In those days we could still remember our first 20MB PC hard drives (around 1985) and so 15MB sure seemed like a lot... In 1993, given the cost of hard drives in those days, Microsoft Excel 5.0 took up about $36 worth of hard drive space. In 2000, given the cost of hard drives in 2000, Microsoft Excel 2000 takes up about $1.03 in hard drive space...

    In fact there are lots of great reasons for bloatware. For one, if programmers don't have to worry about how large their code is, they can ship it sooner. And that means you get more features, and features make your life better (when you use them) and don't usually hurt (when you don't). If your software vendor stops, before shipping, and spends two months squeezing the code down to make it 50% smaller, the net benefit to you is going to be imperceptible. Maybe, just maybe, if you tend to keep your hard drive full, that's one more Duran Duran MP3 you can download. But the loss to you of waiting an extra two months for the new version is perceptible, and the loss to the software company that has to give up two months of sales is even worse.

    --
    Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
  25. The Funny Thing is... by Slash.Poop · · Score: 2, Funny

    I made this same comment on some /. story and instantly got modded -1 Flamebait.
    Go figure.

  26. Re:Simple solution by sumdumass · · Score: 3, Funny

    Yea, I was rooting around in your system just the other say. You seem to be completely frugal when it comes to purchasing new software. On a plus side, your system is completely useless to me outside of just exploring around it a little. Good call and staying arcane.

  27. Re:Simple solution by RiotingPacifist · · Score: 2, Interesting

    Erm actually its quite the opposite, windows XP got security patches for years, i doubt you'll find a safe 2.6.8 (~2004) kernel about. Even "slow" distros like debian only backport security fixes for 3 years after that you have to upgrade, or start maintaining your own kernel.

    --
    IranAir Flight 655 never forget!
  28. Comment removed by account_deleted · · Score: 2, Interesting

    Comment removed based on user account deletion

  29. Re:But, but but... by JohnFluxx · · Score: 3, Informative

    Heh, read the stable_API_nonsense.txt file in the kernel source. Here's an html version:

    http://www.kroah.com/log/linux/stable_api_nonsense.html

  30. Microkernel by bluefoxlucid · · Score: 4, Insightful

    Next year he's going to claim that Minix was doing it right all along. We've seen a lot of Linusisms to that effect... $X needs to be outside the kernel... $Y shouldn't happen the way I've been screaming for years... I told $Z to fuck off because he's stupid but he was right and we need to go do that yesterday ... it's just how Linus is. He's an opinionated fat bastard, and then one day he realizes he's fucking wrong and just goes, "SHIT! Well let's do that then >:O"

  31. Kernel Compression Prize Competition by Baldrson · · Score: 2, Interesting
    Set up a prize competition for kernel compression similar to the Hutter Prize for Lossless Compression of Human Knowledge except the objective is the produce an executable binary of minimum size that expands into a fully functional kernel.

    The goal of this competition would be to obtain the optimal factoring of the kernel architecture.

  32. Re:Bloat is often moot by Antique+Geekmeister · · Score: 2, Insightful

    What? No, that's not the kernel. That is:

    > The BIOS - take a look at the LinuxBIOS or OpenBIOS work to see where that can be improved. But oh, my dear goodness, it can be improved.
    > Incredible masses of new hardware that do need detection and configuration at boot time. That's been a sore point: it takes time to scan for all that hardware, and you can optimize it by leaving out tools, but people do like having their network cards and USB drives and graphics tablets work automatically at boot time. That's not the fault of the kernel: that's the fault of the time taken to detect and configure low-level hardware components, such as RAID controllers, which may be necessary to begin to load _any_ kernel with the actual drivers to run the operating system.
    > Masses of init scripts starting up many, many, many services in a very lengthy sort of way. Those can be optimized far more than they are, and parallelized: but it takes a rewrite of the 'init' procedures to do so, and that's not the kernel's fault.

    I'd like to see all of these improved: all of them are, in fact, plagued by bloat. But they're not hte kernel.

  33. some distros... by Anonymous Coward · · Score: 2, Interesting

    I think this applies to some distros. For example, Ubuntu comes with Pulseaudio. It is of little or no use to the average person. The average Joe isn't going to stream audio over his LAN or combine two stereo sound cards to make one surround sound card. Pulseaudio creates sound lag, which is why I always remove it when I do an install.

    I like a system with the minimal amount of daemons running that are required for operation.

  34. Re:make ?config is your friend by Hatta · · Score: 2, Interesting

    The biggest problem with that is USB devices. Who knows what weirdo USB hardware you're going to want to plug into your computer in the next couple years. Using the stock Debian kernel, that's something I really don't need to worry about.

    --
    Give me Classic Slashdot or give me death!
  35. Funny! by hesaigo999ca · · Score: 2, Insightful

    He should start a separate distro and call it leanux....not like we can't make do without another distro out there.

  36. Poor Journalism by DaMattster · · Score: 2, Insightful

    I did RTFA and I must say the article was poorly written - so much so that the author felt he needed to publish a correction that summarily states (what open source power users already know) that the Linux kernel can be "trimmed or fattened up." It is immaterial that Linux has gotten more bloated as the fundamental difference between it and Windows is that you as the consumer have the choice to "trim the fat." While I am an open source users, I am pragmatic and I believe it cannot be all things to all people and Windows has some advantages over Linux. For example, the choices of Linux can be downright bewildering and each distribution behaves differently with its own quirks. Windows is Windows. Even though distributions share a common kernel, they are really distinct OSes in their own right - applications run differently and have different behaviors. As Samba will tell you, sometimes compiling succeeds on three out four large distros. In theory, they should be all compatible.

  37. Re:Bloat is often moot by DavidTC · · Score: 2, Interesting

    init scripts especially are rather idiotic, and it's a testament to how much crap Windows is doing that Linux distros manage to load in roughly the same time.

    It's especially dumb when things that could start after the system has finished booting, like samba and ssh, instead start first.

    Likewise, driver detection. Um, no, you don't do that on startup, unless it's a first-time boot. You do that when the system is running, which means the very first time someone boots with that fancy new sound card the startup sound isn't going to come out it...but the other sounds should. That tiny tradeoff saved 15 seconds every boot.

    And even just crap like cleaning out /tmp and remounting network drives and CD-ROMs and etc. That's background stuff.

    That, right there, is the problem. For some totally unknown reason, Linux distributions have no 'deferred startup' script area. You either get run on startup, and everyone waits for you, or get stuck in cron when you only need to run once.

    Or, hell, some sort of dependency based system, where you list what services you want up as fast a possible (On most desktops this would be X Windows and Gnome/KDE, but for servers it might be mysql and Apache, or postfix and courier, or whatever.) and each service has a list of things it needs. And then you should also list services that should come up when the system has finished that, in a non-time critical manner.

    Redhat tries at this, but fails. Debian doesn't even try.

    I know, I've working on a Ubuntu XBMC box. I would really like XBMC to startup and then have ssh and samba, and, hell, the virtual consoles start later. I've about given up on this concept, though.

    It doesn't help that no distinctions seem to be made between 'these scripts must execute, at startup, in this order, to create a functioning and mounted system', and scripts that run later that are just services. Yes, there's rcS.d vs. rc2.d (or whatever), but for some reason, non-required services sometimes get put in rcS.d, probably because no one's ever bothered to set hard and fast rules what they mean by 'system'. (Hint...a sound daemon is not required to have a working system. Hardware detection is not required to have a working system. Mounting the fucking /dev partition is required.)

    Of course, Linus can't do anything about all this except frown at the distro people.

    --
    If corporations are people, aren't stockholders guilty of slavery?
  38. MIcrokernels - life without patches by Animats · · Score: 4, Interesting

    Let's take a look at the patch history of QNX. QNX is a message passing microkernel mostly used for embedded systems. But it can be run with a full GUI, runs on multiprocessors, and can be run as a server. Millions of "headless" embedded systems have QNX inside. I used it in a DARPA Grand Challenge vehicle. BigDog, the legged robot, runs QNX.

    Drivers are outside the kernel. All drivers. File systems are outside the kernel. Networking is outside the kernel. And they're all application programs, not some special kind of loadable kernel module.

    There have been 14 patches to QNX in the last two years. Only one is an actual kernel patch: "This patch contains updates to the PPCBE version of the SMP kernel. You need this patch only for Freescale MPC8641D boards." Only one is security-related: "This patch updates npm-tcpip-v6.so to fix a Denial of Service vulnerability where receipt of a specially crafted network packet forces the io-net network manager to fault (terminate)." Neither Linux nor Windows comes close to that record.

    There's little "churn" in a good microkernel. Since little code is going in, new bugs aren't going in. Good microkernels tend to slowly converge toward a zero-bugs state.

    QNX generally has a "there's only one way to do it" approach, like Python. Linux supports three completely different driver placement - compiled into the kernel, loadable as a kernel module at boot time, and run as a user process. QNX only supports one - run as a user process "resource manager". That simplifies things. A "one way to do it" approach means that the one best way is thoroughly exercised and tested. There are few seldom-used dark corners in critical code.

    When QNX boots, it brings in an image with the kernel, a built-in process called "proc", any programs built into the boot image, and any shared objects ".so" wanted at boot. These last two run entirely in user space; they're just put in the boot image so they're there at startup. That's how drivers needed at startup get loaded. They don't have to be in the kernel. (In fact, you can put the whole boot image in ROM, and many embedded systems do this.)

    A QNX "resource manager" is a program which has registered to receive messages for a certain portion of pathname space. The QNX kernel has no file systems; part of the initial "proc" process is a little program which keeps an in-memory table of "resource managers" and what part of pathname space they manage. This is similar to "mounting" a driver under Linux, but it doesn't require a file system up during boot. File systems are user programs which start up and ask for some pathname space, after which "open" messages are directed to that file system.

    Another QNX simplification is that the kernel doesn't load programs. "exec" is implemented by a shared library. That library is loaded with the boot image, to allow things to start up. "exec" runs entirely in user space, with no special privileges, so if there's a bug in "exec" vulnerable to a mis-constructed executable, that program load fails and everything else goes on normally.

    The price paid for this is some extra copying, since all I/O is done by message passing. This isn't much of a cost any more, because you're almost always copying from cache to cache. That's an important point. Message passing kernels used to be seen as expensive due to copying cost. But today, copying recently used material is cheap. On the other hand, some early microkernels (Mach comes to mind) worked very hard to mess with the MMU to avoid big copies, moving blocks from one address space to another by changing the MMU. This seems to be a lose on modern CPUs; the cache flushing required when you mess with the address space on recently used data hurts performance.

    I used to pump uncompressed video through QNX message passing using 2% of a Pentium III class CPU. Message passing, done right, is not a major performance problem.

  39. Re:Bloat is often moot by Antique+Geekmeister · · Score: 2, Informative

    I'm afraid that hardware detection may well be required, because critical services (such as NFS exports or MySQL) which rely on mounted partitions in most large-scale environments must have those directories already mounted before running 'exportfs' or before starting the relevant services, or they can create incredible chaos. And the flushing of /tmp/ is tricky: it's much safer to do at a well-defined init step, before the other services are running, and not potentially scrub weird components out from under people. It's not that people shouldn't write these components more sensibly: it's that they don't bother because init scripts are often an afterthought. I suspect you've not personally run into some of the potential adventures of /var/lib/mysql not being mounted when you start the MySQL daemon. It's an adventure.

    I completely agree with you about material being in the wrong init levels frequently, and the need for dependency management. (RedHat has some old mistakes in handling wifi devices _after_ network initialization, which causes real chaos.) And forcing network file systems such as NFS or CIFS to wait until the network is running would make complete sense.

  40. Re:Bloat is often moot by mcgrew · · Score: 2, Insightful

    On one side, there is a desire for the Linux kernel to support more features so distros can be built to be more like popular mainstream operating systems like Windows and Mac. Ease-of-use, a pleasant user experience, separation/insulation from the dreaded Command Line, pretty graphics, massive hardware support, and support for more "oddball" configurations like multiple screens, etc

    I risk sounding like Stallman here, but in this case the distinction actually matters. We're discussing the kernel, not the OS. The OS is GNU, the kernel is Linux. There are various desktops for GNU, most people use KDE or Gnome (I like KDE). It's easy to use, like Windows there is a command line but you won't need it (at least with Mandriva) but you can write shell scripts just like with Windows you can write batch files (and GNU is far and away superior here), it has pretty graphics, far more massive hardware support (Linux will run on anything from a wristwatch to a supercomputer while Windows only runs on PCs and servers), and it is easily configurable for oddball stuff.

    But the stuff I mentioned in the previous paragraph is, like your post, completely offtopic as none of them has anything to do with the kernel. You're talking about the shell/desktop when the discussion as about the kernel.

  41. Re:Bloat is often moot by notamisfit · · Score: 2, Informative

    Things like device drivers can be easily diked out. When it comes to stuff like memory managers, VFS, CPU schedulers, basic networking, so on and so forth, I imagine that the bloat hurts the embedded guys more.

    --
    Jesus is coming -- look busy!