Slashdot Mirror


Kernel 2.6.31 To Speed Up Linux Desktop

Dan Jones writes "As the Linux community looks forward to another kernel release, the kernel hackers have been working on improving the memory management so that the X desktop responsiveness is doubled under high memory pressure. The result is an improved desktop experience. Benchmarks on memory-tight desktops show clock time and major faults reduced by 50 per cent, and pswpin numbers (memory reads from disk) are reduced to about one-third. Another improvement coming with 2.6.31 is kernel mode-setting support for ATI Radeon graphics cards, enabling faster user switching and a more seamless startup experience. Peripheral developments that will also improve the Linux desktop experience include support for the new USB 3.0 specification and a new Firewire stack. Even minor Linux releases have heaps of new features these days!"

30 of 360 comments (clear)

  1. Obligatory XKCD by Aggrajag · · Score: 5, Funny
    1. Re:Obligatory XKCD by abigor · · Score: 3, Insightful

      No, it doesn't imply that at all. It's simply saying that Linux desktop users brag about irrelevent new "features", while basic things that everyone else takes for granted don't work properly.

    2. Re:Obligatory XKCD by marcansoft · · Score: 4, Insightful

      Whichever way you put it, the fact that this "basic thing that everyone else takes for granted" doesn't work is is Adobe's fault, not the Linux community's fault. It would have made a lot more sense if the complaint were about some actual bug in Linux distros, not a problem with a historically shoddy proprietary plugin.

    3. Re:Obligatory XKCD by ScytheBlade1 · · Score: 4, Insightful

      It may seem to imply that, but that isn't the goal. The goal of that comic is to show the difference between linux gurus who can rebuild their kernel six times a day and get it right every time, and "your average XP --> Ubuntu switcher."

      I'm a guy who took gentoo and rebuilt it in my home directory about fifty times with a set of scripts I developed, getting smaller and more specific every time until I could write it to a CF card and drop it in my embedded router that runs at 33MHz, and still run/startup faster than your average home router.

      I have a friend who uses Kubuntu (which really is a terrible KDE distro) who is definitely more adept in linux than your average switcher, but he doesn't spend his time memorizing internals or rebuilding kernels either.

      To me, I can see that comic and go "neat, that's a lot of CPUs" along with pegging Adobe for being a problem: "yeah, adobe sucks at cross platform." My friend goes "neat, that's a lot of CPUs" and "yeah linux is terrible in that area."
      Both pairs of statements are true. (And don't call me on the technicality that "linux is terrible in that area." Quit being hyperliteral; that's my entire point!)

    4. Re:Obligatory XKCD by maxume · · Score: 3, Insightful

      As someone who uses Windows but has an open mind, I don't care who is at fault.

      --
      Nerd rage is the funniest rage.
    5. Re:Obligatory XKCD by d3vi1 · · Score: 4, Interesting

      Actually the fault is split. 2D acceleration in Linux for most video drivers is shabby at best.

      On the other hand, Adobe doesn't really put that much engineering force into X11 optimizations. Adobe Flash on a non-accelerated Mac OS X (hackintosh using the included Vesa 3.0 driver) is still faster than on X11/Linux.

      I can't really blame Adobe for this. There are quite a lot of ways in which you can accelerate SOME drawing operations, but they are not available on all desktops. Clutter comes to mind right now, but it's not really the best option for QT/KDE users. It's hard to create an accelerated, desktop environment independent piece of software.

      --
      UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever ones.
    6. Re:Obligatory XKCD by MPAB · · Score: 4, Insightful

      The comic didn't imply the kernel. Purists that wash their hands while saying "Linux is just a kernel, not my fault if it cannot (run x, recognize y or perform z)" are the target of this comic which tries to explain why linux (as a whole OS-and-software alternative) is not ready for the desktop.

    7. Re:Obligatory XKCD by Anarchduke · · Score: 3, Insightful

      Hey, you want to know why linux doesn't have more desktop market penetration? Guess what, the average person would try linux and open their favorite youtube video and get pissed off at linux because it doesn't do full screen flash well.

      You think that in the same situation Microsoft wouldn't have somone calling Adobe to get the full screen flash video working properly? They understand that it is always the operating system's fault when something goes wrong, no matter what the truth is.

      Microsoft may be a giant corporate asshole, but they understand that people's perceptions no matter how misguided will impact the popularity of their product. Look at Vista, at release there were a lot of problems. Now at service pack 2, Vista is performing much better, but its brand name is still mud because of the problems. I personally think this was part of the plan. Windows 7 is coming out, and it is looking to be what Vista should have been.

      In the end, the "Windows" brand hasn't been damaged, the "Vista" brand was. And Windows 7 will hit the market sounding like some sort of savior for computers.

      Meanwhile, Linux advocates still want to know why the average person won't leave windows.

      --
      who prays for Satan? Who in 18 centuries has had the humanity to pray for the 1 sinner that needed it most? ~Mark Twain
    8. Re:Obligatory XKCD by marcansoft · · Score: 3, Interesting

      Linux isn't broken because Flash sucks, the "Ready For the Desktop" moniker is broken if people consider it to imply Flash support. Flash is a closed technology (the spec is only open if you're not writing a player), which puts any problems with Flash playback anywhere squarely into Adobe's hands. If being "ready for the desktop" implies "Adobe plays nice with you" and there is nothing you can do if they don't, something is really wrong. What is the Linux community supposed to do, hold Adobe at gunpoint until they fix Flash?

      I'm not saying Linux is otherwise ready for the desktop (and complaints about issues with Linux desktops themselves are perfectly okay), but Flash brokenness is a silly example.

    9. Re:Obligatory XKCD by reub2000 · · Score: 5, Insightful

      What's broken here is that a completely closed off format has become standard on the internet.

    10. Re:Obligatory XKCD by jdoverholt · · Score: 3, Funny

      Gentoo?

    11. Re:Obligatory XKCD by centuren · · Score: 4, Insightful

      ScytheBlade1 is right:

      The comic didn't imply the kernel. Purists that wash their hands while saying "Linux is just a kernel, not my fault if it cannot (run x, recognize y or perform z)" are the target of this comic which tries to explain why linux (as a whole OS-and-software alternative) is not ready for the desktop.

      Indeed, the xkcd in question (a link to the page, not the image) doesn't hang on technical accuracy. It's absolutely a commentary on issues with the "Linux Desktop", with developers putting a relatively rare server concern such as support for thousands of CPUs ahead of something that pretty much every PC user expects to have (the ability to watch Hulu smoothly).

      To nit-pick, however, the comic does seem to imply the kernel. In the alt-text you find:

      "I hear many of you finally have smooth Flash support, but me and my Intel card are still waiting on a kernel patch somewhere in the pipeline before we can watch Jon Stewart smoothly."

      The author is waiting on a Linux kernel patch to fix the Flash issues he has with his Intel card.

      That's one of the more annoying XKCDs as far as I'm concerned. It seems to imply that the full-screen Flash video woes are somehow the kernel's fault. I used to like XKCD, but it seems to be getting dumber and dumber each day.

      When Markansoft says the above, it's clear that he prizes technical accuracy in the comic enough to forgo appreciation of the general point of humour. However, is the comic's implication really wrong? I don't know much about how Flash works with hardware, or if it requires any specific support for a chipset. The author seems pretty sure he needs a patch for his hardware set up before he can get the same quality of Flash performance already enjoyed by other Linux users. That certainly doesn't remove Adobe and their cross-platform unfriendliness from the situation, but Linux distros are made from work arounds, and the comic's target is the priorities of developers, not Adobe's open source policies.

    12. Re:Obligatory XKCD by causality · · Score: 4, Insightful

      I wish there were a Greasemonkey script for Slashdot that would remove from visibility any and all posts containing "XKCD". That way my view of the discussion would look like no such posts existed. While I'd love to endlessly debate the intended message of a guy who draws stick figure comics, it really doesn't have much to do with the latest improvements to the Linux kernel other than mentioning the words. That, and I just don't find XKCD to be endlessly interesting the way a lot of folks here do. It doesn't help that most of the ones mentioned here are quite stereotypical (like the whole "geeks care about things that average users don't, whodathunkit?!" theme). Even if I did find XKCD to be endlessly interesting, I wouldn't bring it up at every possible opportunity. Now go ahead and flame me because I don't think your trendy (around here, anyway) comic is all that clever.

      --
      It is a miracle that curiosity survives formal education. - Einstein
    13. Re:Obligatory XKCD by mysidia · · Score: 3, Insightful

      This is no excuse. The Open Source community has brought us Samba for goodness sake.

      Reverse-engineering and making an open implementation of a simple web plugin should be harder than reverse-engineering and implementing Windows domain, RPC named pipes, and file sharing protocols? :)

      Not to mention the fact that Adobe has made SWF, FLV, and RMTP open specifications.

    14. Re:Obligatory XKCD by jmorris42 · · Score: 5, Insightful

      > As someone who uses Windows but has an open mind, I don't care who is at fault.

      Fair enough on one level but totally unfair on the one that matters here. If the criticism of the Linux community is they concentrate their effort on things that mortals care little for this one doesn't work since the performance of Flash Player is entirely out of their hands.

      Flash sucks everywhere, just to varying degrees depending on platform. Go watch the fun in the netbook space as the Intel Atom is being unfairly blamed by clueless pundits for the inability of netbooks with the newer 1280x720 and 1388x768 displays to play full screen Flash video (on Windows XP btw.). We nerds on slashdot know better of course, the problem is Adobe being mindless idiots who can't figure out how to properly use a scaled video surface.

      I'd like some green group to calculate how many YouTube videos have been played and how many GigaWatt Hours of electricity have been wasted on software colorspace conversion and scaling because Adobe can't figure out how to use well documented and commonly available features on every video card made in the last fifteen years.

      --
      Democrat delenda est
    15. Re:Obligatory XKCD by marcansoft · · Score: 3, Informative

      Flash is by no means "simple". There are a bunch of different speficiations and sub-specifications to be implemented (ActionScript, FLV, RTMP, ...).

    16. Re:Obligatory XKCD by MostAwesomeDude · · Score: 4, Informative

      [citations needed]

      EXA is the backend acceleration we use right now in X. It works.

      Full EXA is provided for radeon, nouveau, and intel, the Big Three. A lot of esoteric chips are supported too. They might not be super-fast, but they're still fast enough to do nearly anything. (Getting that vaunted 1m glyphs/sec is tough though.)

      Flash is a piece of shit. I most certainly can and will blame Adobe for not putting more than one person on the Linux Flash team, and I can point to the incomplete, buggy, largely hacked-up Gnash as an example of a software rasterizer that moves much faster than Flash despite also being lame.

      Don't even get me started on Flash Video.

      --
      ~ C.
    17. Re:Obligatory XKCD by Hurricane78 · · Score: 3, Insightful

      Well, with SVG and the video tag, that is about to change! Big time!

      I'm a professional, and man, watch those demos in at least Firefox 3.5 (or something comparable): http://people.mozilla.com/~prouget/demos/

      The ability to integrate Flash-like FX, Video and Audio SEAMLESSLY with (X)HTML and CSS (and every other supported XML language, like MathML), is just beyond words... It's what I'm waiting for, for at least a decade! And the performance of both environments gets closer and closer to being equal.
      With that, soon nobody needs or even wants Flash anymore.

      I'll just use those features, and frankly, I can stand "losing" even 50% of the users for it. Those are the dumbest part of the population anyway. You only have problems with those. They can go to AOL or whatever. I have enough clients. :)

      --
      Any sufficiently advanced intelligence is indistinguishable from stupidity.
    18. Re:Obligatory XKCD by zdzichu · · Score: 4, Funny

      Fedora developer read it for sure:

      * Fri Aug 07 2009 Kristian HÃgsberg - 2.8.0-4
      - Add dri2-page-flip.patch to enable full screen pageflipping.
          Fixes XKCD #619.

      xorg-x11-drv-intel-2.8.0-4.fc12

      --
      :wq
  2. Been using .31, and I'm a fan. by sherl0k · · Score: 3, Informative

    I can honestly say that the system does feel a lot snappier, more responsive, and just overall a much more pleasant user experience. Everything's just a lot smoother. The kernel team is doing a pretty awesome job of speeding things up. Kudos.

    1. Re:Been using .31, and I'm a fan. by HangingChad · · Score: 4, Insightful

      The kernel team is doing a pretty awesome job of speeding things up. Kudos.

      Seconded. It also says good things about the state of the kernel and development team that they can focus on optimization and the user experience. It wasn't that long ago the focus was on getting wireless to work. We've come such a long way. Very impressive. Well done.

      --
      That's our life, the big wheel of shit. - The Fat Man, Blue Tango Salvage
    2. Re:Been using .31, and I'm a fan. by Rebar · · Score: 5, Funny

      The Break-In process of the new Linux kernel takes time. There is a significant change in Video Performance as the kernel break in. There is still a perception that Linux kernels have a short break in time or worse yet, don't require break in. Some hackers used a second computer to break in the Linux kernel, and transfer the image to their primary computer. This method will not appreciably reduce the break in time required for the kernel. Linux kernel Break-In must be done in the position where you plan to use it.

      The System Performance Stages of the kernel are as follows:

      * First Stage of Break-In = The system will feel very open, clear and with good detail resolution and dynamics. The greens and lower reds will have elevated intensity levels. The lower output of the blue and green information is due to reduced bandwidth performance at this Stage. In some systems, especially with aluminum or titanium heatsinks, the greens and blues may appear edgy or even fatiguing. The visual stage will appear OK with some lack of Focus. It will take from 5 to 15 hours of break-in for the kernel to reach the Second Stage of Break-In.

      * Second Stage of Break-In = The blues and greens will appear less elevated and up front as the monitor intensity level increases. This is followed by the reds starting fill in. The lack of Focus may become more noticeable and the visual stage will start to widen and have more depth. It will take an additional 15 to 35 hours to reach the Third Stage of Break-In.

      * Third Stage of Break-In = The system response time will completely flatten out. The presentation will become very clean and less up front. The lack of Focus is disappearing and the imaging will improve as will the low level detail resolution. The Green comes in and it is very tight and you will see lower Red frequencies than your other kernel provided. In effect the visual signature of the kernel will seem to disappear and the X-window presentation will be very real and non-fatiguing. It will take an additional 30 to 50 hours to reach the Final Stage of Kernel Performance.

      * Fourth and Final Stage of Kernel Performance = The Visual Stage will be wider than your monitor with excellent depth, height and precise localization of individual icons on the desktop. The hue of the icons will be very accurate over the entire desktop. Symbolic links have excellent referencing ability. The metallic sound of your hard drive is very lifelike. Rhythm, Pace and Dynamics are effortless. Many users find they are now viewing the X-window system at lower Light Levels due to the effortless presentation. You will start to see subtle visual cues like the programmer turning his head while he is programming. You will find you are viewing the Window Manager and forgetting about evaluating your system.

  3. Benchmarks by pm_rat_poison · · Score: 4, Interesting

    Phoronix has published benchmarks of an ubuntu system with kernel 2.6.31-rc5

  4. ATI mode setting, well, sort of... by eddy · · Score: 4, Informative

    From the kernelnewbies article:

    This version adds Kernel Mode Setting (KMS) support for ATI Radeon. Hardware supported is R1XX,R2XX,R3XX,R4XX,R5XX (radeon up to X1950). Works is underway to provide support for R6XX, R7XX and newer hardware (radeon from HD2XXX to HD4XXX).

    With the HD5850 and HD5870 weeks away (don't buy a new card till they're out, you'll hate yourself!), this means you have to be three GENERATIONS behind the curve for this yet unreleased kernel feature to be of use.

    --
    Belief is the currency of delusion.
    1. Re:ATI mode setting, well, sort of... by QuoteMstr · · Score: 3, Insightful

      If you need a bleeding-edge card, you're gaming, and to be frank, Linux is not the best environment for gaming. If, on the other hand, you're interested in solid 2D work with decent acceleration, a solid older card is just the thing. I just picked up a dirt-cheap R400-based card myself. (I'd have stuck with my trusty Matrox G450, but the driver will probably never support modern multihead with xrandr 1.3.)

  5. Re:We just need an alternative to X by the+linux+geek · · Score: 4, Insightful

    I would love to see somebody tell me what's wrong with X without referencing the UNIX Haters Handbook or anything else more than ten years old. I've been using it for a LONG time, in various proprietary and open-source incarnations, and it's come a long way. Xorg generally even works without an xorg.conf these days, and no other windowing system comes close to X's networking/remote-access features.

  6. Re:We just need an alternative to X by impaledsunset · · Score: 4, Insightful

    I disagree. Do you have any reason why you want to get rid of X?

    X's code base is ugly at places, and writing pure-X11 applications isn't the most fun thing in the world, but I can't think of (m)any shortcomings that lead to any trouble in real world usage that can't be fixed. Also, X has to offer a lot of things that any new thing wouldn't have. You might not use many of the features you get for free with X, but some of us do. X's architecture can be seen as a shortcoming, but it's also an advantage in many situation. Remote X for example is a great thing.

    The biggest problem is all the applications that are currently written for X. You can't rewrite everything, and it is not even worth it. Really. X is working fine, and it's getting better. The same goes for the drivers, and everything that's already in.

    And if Google Chrome OS's windowing system doesn't support the X protocol, I can assure you I won't be using it.

  7. Re:Even minor releases? by Archaemic · · Score: 5, Informative
  8. Re:We just need an alternative to X by QuoteMstr · · Score: 5, Insightful

    I would like to hear from anyone who disagrees.

    Troll. But I'll bite.

    X11 is a whipping boy for anyone who's ever had a complaint about a Unix GUI. No matter whether it's a badly-designed application, an unstable driver, or poor kernel scheduling, or a deranged toolkit drag-and-drop model, people always fault X11. And no matter what the root cause of the problem, the solution is always to throw out the X protocol and design something else. People like you fail to account for the possibility that there's actually very little wrong with X, and that it can certainly be the basis for a modern, functional GUI.

    There was a very interesting comment on Slashdot a few years ago by Mike Paquette (who wrote Apple's Quartz) explaining why Apple didn't use X11 for OS X. The funny thing, in retrospect, is that every single feature mentioned in Paquette's post has now been implemented for X11, and that's with volunteer work. If Apple had invested resources into making this happen for X instead of reinventing the wheel, everyone would have been better off. Yet despite these additional features, we still retain full network transparency along with full compatibility stretching back to the 80s.

    Don't confuse "newer" and "better". X11's architecture is quite good, and is among one of the better designs for a windowing system ever created. It's clean, extensible, fast, and network-transparent. It defines mechanism, not policy, and does its job extremely well. That it's been extended to support all kinds of modern features is a testament to the strength of its original design.

    If it weren't for the soul-crushing stupidity, it'd be hilarious that people claim X is slow. X ran quickly on computers with 1/000 the performance of even a modest desktop system today, but it's slow on these modern computers? That makes no sense. People claim that X's network transparency puts it at a performance disadvantage, but neglect that Unix Sockets, used for local communication, are among the faster IPC mechanisms in existence. Criticism of X as a platform is baseless.

  9. It's not all doom and gloom for the penguin by wonkavader · · Score: 4, Funny
    From the article:

    The advent of Windows 7 in October may drive Linux's desktop market share down even futher.
    It's not all doom and gloom for the penguin, however...

    Thank goodness. I was so worried and depressed.