Slashdot Mirror


Linux Kernel 2.6.32 Released

diegocg writes "Linus Torvalds has officially released the version 2.6.32 of the Linux kernel. New features include virtualization memory de-duplication, a rewrite of the writeback code faster and more scalable, many important Btrfs improvements and speedups, ATI R600/R700 3D and KMS support and other graphic improvements, a CFQ low latency mode, tracing improvements including a 'perf timechart' tool that tries to be a better bootchart, soft limits in the memory controller, support for the S+Core architecture, support for Intel Moorestown and its new firmware interface, run-time power management support, and many other improvements and new drivers. See the full changelog for more details."

43 of 195 comments (clear)

  1. Llacking in terminology. by c0l0 · · Score: 3, Informative

    I'm not perfectly happy with the term "virtualization memory de-duplication". Linux 2.6.32 introduces what is called "KSM", an acronym that is not to be confused with "KMS (Kernel Mode Setting)" and expands to "Kernel Samepage Merging" (though other possibilities with similar meaning have already emerged). It does not target virtualization or hypervisors in general (and QEMU/KVM in particular) alone. KSM can help save memory for all workloads where many processes share a great lot of data in memory, as with KSM, you can just mark a region of memory as (potentially) shared between processes, and have redundant parts of that region collapse into a single one. KSM automagically branches out a distinct, exclusively modified copy if one of the processes sharing those pages decides to modify a certain part of the data on its own. From what I've seen until now, all that's needed to have an app benefit from KSM is a call to madvise(2) with some special magic, and you're good to go.

    I really like how Linux is evolving in the 2.6 line. Now if LVM snapshot merging really makes it into 2.6.33, I'll be an even more happy gnu-penguin a few months down the road!

    --
    :%s/Open Source/Free Software/g

    YTARY!
    1. Re:Llacking in terminology. by 1s44c · · Score: 2, Informative

      I'm not perfectly happy with the term "virtualization memory de-duplication".

      The term is a little nonspecific. However KSM is truly wonderful and I look forward to saving a ton of physical memory over my KVM machines when the kvm/qemu userland tools catch up.

      This is already in redhat's virtualization stuff.

    2. Re:Llacking in terminology. by Bert64 · · Score: 4, Interesting

      I have a system running a 2.6.32-rc6 kernel with KSM and the latest kvm (which includes support for this, but its turned off by default)... Because i run a number of virtual images that boot the same kernel and system libs (different apps ofcourse), it saved me over 1gb of memory on the host.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  2. Does it Fix XKCD 619? by sheepweevil · · Score: 5, Funny

    All of these features are cool and all, but does it solve the well-known XKCD 619 bug?

    1. Re:Does it Fix XKCD 619? by Anonymous Coward · · Score: 4, Funny

      http://imgur.com/73EAu - RESOLVED, FIXED quite a while now!

  3. Btrfs: kill off ext# please! by Anonymous Coward · · Score: 2, Interesting

    I'm glad to see Btrfs improving so rapidly. I hope popular distros start including support for it, but more importantly, start using it as the default filesystem.

    It's time for the ext-based filesystems to die. They are a technology that was obsolete a decade ago.

    ReiserFS was set to kill them off, but unfortunately found another victim first... JFS and XFS only work well in certain high-end niches. But Btrfs is much better as an all-around filesystem, which is why it has a chance to finally put an end to ext-based filesystems.

    1. Re:Btrfs: kill off ext# please! by Jack+Malmostoso · · Score: 3, Insightful

      ReiserFS was set to kill them off, but unfortunately found another victim first

      Too soon!

    2. Re:Btrfs: kill off ext# please! by Abreu · · Score: 2, Insightful

      What prevents other, non-GPL operating systems from using Btrfs?

      Writing drivers for a filesystem is not a "derivative work" is it?

      --
      No sig for the moment.
    3. Re:Btrfs: kill off ext# please! by gzipped_tar · · Score: 2, Interesting

      Well joking aside, I heard rumors that Reiser4 is being considered by Linux devs and likely to be merged in the stable kernel soon. Any news on that?

      --
      Colorless green Cthulhu waits dreaming furiously.
    4. Re:Btrfs: kill off ext# please! by Abreu · · Score: 2, Insightful

      Nevermind that, I think that the whole objection to a BSD license in this case would be that such a license could not prevent MS (or Oracle, or Apple) from "embracing and extending" the whole filesystem so that the "standard that everybody uses" is no longer free

      --
      No sig for the moment.
    5. Re:Btrfs: kill off ext# please! by Bert64 · · Score: 2, Insightful

      But even assuming ms would use an open filesystem, they would want to alter it to make it incompatible with everyone else's implementation... And they can't do that very well if people are able to download the source.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    6. Re:Btrfs: kill off ext# please! by Bert64 · · Score: 2, Insightful

      I would prefer to use EXT2 on small sdcards, so as to support filesystem permissions...
      Or how about something like jffs2 - a filesystem actually designed for flash media.

      FAT32 is a pretty garbage filesystem, and it's patent encumbered, an open filesystem without the weaknesses of fat32 and which is supported everywhere would be extremely useful. It won't happen tho so long as MS have sufficient market share to bury any open filesystem, they want people locked in to their proprietary patented filesystems and use their weight to prevent any other fs from gaining traction.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    7. Re:Btrfs: kill off ext# please! by phantomcircuit · · Score: 2, Insightful

      I've been using ZFS-on-FUSE

      Are you insane? You probably just cut the performance of your drives by 90%.

      Of course, the performance and the idea of trusting my data to FUSE leave much to be desired.

      Oh sorry you're informed AND insane. :P

    8. Re:Btrfs: kill off ext# please! by moosesocks · · Score: 2, Interesting

      I think he was referring to the parent. The whole point of the BSD license is to not give a rat's a** about who does what with the code.

      One could easily add an extra clause to the standard BSD license that states that any derivative work must be fully compatible with the reference Btrfs implementation in order to bear the Btrfs name. Many projects include such naming clauses.

      This sidesteps the "extend and embrace" problem completely.

      --
      -- If you try to fail and succeed, which have you done? - Uli's moose
  4. Big speedups for media workstations.. by delire · · Score: 4, Informative
    This 'Per-backing-device writeback' is pretty significant. I'm sure the feature film and database industries will love it especially:

    The new system has much better performance in several workloads: A benchmark with two processes doing streaming writes to a 32 GB file to 5 SATA drives pushed into a LVM stripe set, XFS was 40% faster, and Btrfs 26% faster. A sample ffsb workload that does random writes to files was found to be about 8% faster on a simple SATA drive during the benchmark phase. File layout is much smoother on the vmstat stats. A SSD based writeback test on XFS performs over 20% better as well, with the throughput being very stable around 1GB/sec, where pdflush only manages 750MB/sec and fluctuates wildly while doing so. Random buffered writes to many files behave a lot better as well, as does random mmap'ed writes. A streaming vs random writer benchmark went from a few MB/s to ~120 MB/s. In short, performance improves in many important workloads.

  5. Is this a hoax, or what? by Sockatume · · Score: 5, Funny

    rewrite of the writeback code

    So you didn't de-lace the interace or uncabulate the turboencabulator? I'm now about 85% convinced that the open source movement is just making shit up.

    --
    No kidding!!! What do you say at this point?
  6. People work on the "easy" problems by Fished · · Score: 5, Interesting

    Like the strip, and it raises a valid point. The bottom line is that kernel development advances more quickly than user interface and applications for the same reason that physics advanced more quickly than say ... psychology. That is, because developing a faster kernel is a much easier problem than developing a fun, usable desktop environment. It's easier to write, easier to test, and easier to debug. People tend to gravitate towards problems that they think they can solve--and ignore the problems they don't understand or don't want to deal with.

    Personally, I think that the best way forward for Linux on the desktop would be to take GNUstep to the next level. There's a LOT of code there already written, and with a bit more work you might be able to have source-level compatibility with Mac OS X--which would give you access to a bunch of commercial apps. And, most importantly, the ability of the OpenStep API to produce a world class desktop--best in the world in fact--is proven. After 10 years, I don't think that either KDE or GNOME have really done all that much for Linux on the desktop... it's time to try a different approach.

    Of course, I'm just kibbitzing, not bringing code. So what right do I have to say anything?

    --
    "He who would learn astronomy, and other recondite arts, let him go elsewhere. " -- John Calvin, commenting on Genesis 1
    1. Re:People work on the "easy" problems by tulcod · · Score: 2, Insightful

      Looks like you didn't get your psychology right. The problem is that creating a desktop environment is, in fact, much /easier/ to create than it is to enhance the kernel, and that makes it extremely boring. Desktop environments are trivial, but dull, to make. They are a perfect example of a job you should be getting paid for.

    2. Re:People work on the "easy" problems by DragonWriter · · Score: 2, Insightful

      Personally, I think that the best way forward for Linux on the desktop would be to take GNUstep to the next level.
      [...]
      After 10 years, I don't think that either KDE or GNOME have really done all that much for Linux on the desktop...

      Purely technical solutions to marketing and promotional problems rarely work, so its unsurprising that GNOME and KDE have done much for Linux on the desktop, since their marketing and promotional efforts are pretty minor. Of course, switch technical approaches to focus on GNUstep has the same problem.

      And, most importantly, the ability of the OpenStep API to produce a world class desktop--best in the world in fact--is proven.

      That the Mac OS X desktop is "best in the world" is a subjective statement on a matter of taste, not a "fact".

      In terms of facts, on the marketing and promotional end where Linux has been unsuccessful, Mac OS X has been more successful, though far from as successful as Microsoft Windows.

    3. Re:People work on the "easy" problems by Anonymous Coward · · Score: 2, Insightful

      You are confusing tough (challenging) with tough (laborious).

    4. Re:People work on the "easy" problems by shutdown+-p+now · · Score: 3, Insightful

      That is, because developing a faster kernel is a much easier problem than developing a fun, usable desktop environment.

      I disagree, it's not an easier problem. It is, however, a much more interesting problem to solve, especially to skilled hackers.

      One other aspect here is that the target audience is bigger for the kernel. Desktop uptake is still very low, but kernel is used by any device that runs Linux, whether it's a router, a smartphone, a server, or a netbook. This has a side effect of kernel hacking being better financed than desktop development, as there are more commercial players interested specifically in the kernel, who couldn't care less about KDE or Gnome.

    5. Re:People work on the "easy" problems by javilon · · Score: 2, Interesting

      Well, GNOME and KDE ( I prefer one of them but it is not relevant to this post ) have done lots for Linux on the desktop. I have been running it for a number of years because I find it more pleasant to use than Windows. And I am not alone.

      And the millions of people using it are doing so against active attacks from a number of organizations. Mainly closed software companies, and also (mainly in the past) political organizations and governments.

      --


      When his defense asked, "Which computer has Jon Johansen trespassed upon?" the answer was: "His own."
    6. Re:People work on the "easy" problems by Anonymous Coward · · Score: 2, Insightful

      what do you propose? to rewrite the kernel in python? sorry, but something needs to run on the hw itself eventually, nevermind that the language used has little to do with your complaints. User mode graphics are ok for basic desktop use, but forget it if you want decent performance for 3d.

      do you know any skyOS or haiku users? I don't.

    7. Re:People work on the "easy" problems by bcmm · · Score: 3, Informative

      You're missing the bit where Flash is closed-source and the people that want it to work properly can't make it happen, whereas the people who can make it work don't want it to happen.

      --
      # cat /dev/mem | strings | grep -i llama
      Damn, my RAM is full of llamas.
    8. Re:People work on the "easy" problems by mcrbids · · Score: 2, Interesting

      Desktop uptake is still very low, but kernel is used by any device that runs Linux, whether it's a router, a smartphone, a server, or a netbook. This has a side effect of kernel hacking being better financed than desktop development, as there are more commercial players interested specifically in the kernel, who couldn't care less about KDE or Gnome.

      If I hadn't already replied in this article, I probably would have modded you up. This point is hard for many to understand, but it's quite possible that the total number of Linux kernel installs may already rival the total number of Windows installs, since the types of devices that use Linux are so variable.

      Along with its home turf of Internet servers that are otherwise invisible to the end user, it's commonly used on routers, printers, phones, sensors, calculators, digital cameras and camcorders, DVRs and "media centers", so-called "network-accessible" hard drives, digital picture frames, and too many other fixed-function "embedded" devices to name. The combination of stability, driver availability, consistent programming interface, footprint, and cost (free!) is a 1-2-3-4-5 punch to nearly any industry that relies on information processing.

      Linux is just about *everywhere* but the desktop nowadays.

      --
      I have no problem with your religion until you decide it's reason to deprive others of the truth.
    9. Re:People work on the "easy" problems by Hatta · · Score: 3, Insightful

      Making a good desktop environment is extremely challenging, as shown by the fact that no one has made one yet.

      --
      Give me Classic Slashdot or give me death!
    10. Re:People work on the "easy" problems by 21mhz · · Score: 2, Insightful

      I'm tired of the Linux kernel; it's really not that great. Everyone seems obsessed with C, going as far as to spawn these kind of monstrosities just to force modern features into a traditional platform.

      What, has GObject made it into the kernel?..

      Ahh, IHBT.

      --
      My exception safety is -fno-exceptions.
  7. Re:ATI chipsets by Anonymous Coward · · Score: 2, Informative

    No, as Ubuntu Releases are version-stable, and backport security fixes only (Firefox being the exception of that rule). You may install the kernel from the mainline kernel PPA though: http://kernel.ubuntu.com/~kernel-ppa/mainline/
    Just fetch the .deb that fits your architecture, and install it via `sudo dpkg -i /path/to/your/downloaded/archive.deb`.

  8. Re:does KSM mean the death of Xen? by 1s44c · · Score: 4, Informative

    If KSM puts the KVM module on par with Xen in terms of performance then I think the writing is on the wall for Xen's demise.

    No. Not at all. KSM saves memory but hurts performance. It shares memory across virtual machines to save memory.

    Xen can't share memory across virtual machines, it's just not put together like that.

    Performance is about identical for KVM and XEN.

  9. KMS by shentino · · Score: 3, Informative

    Kernel Mode Switching is great except for the fact that all 3 major video card vendors decided to nix VGA console support.

    1. Re:KMS by shentino · · Score: 2, Informative

      Yes.

      However, ATI, NVidia, and Intel have all three decided to deprecate the VGA text console if used with KMS enabled.

      So if you use KMS with one of those cards, kiss text mode goodbye becasue the powers that be refuse to support it.

  10. One file system to rule them all by DrYak · · Score: 2, Interesting

    On the downside, I'm peeved that Btrfs is GPL licensed, which will prevent it from becoming "the one true filesystem" from here on out.

    Well, ZFS itself has a GPL-non-compatible license, but that doesn't prevent it from being usable in Linux as an independent user-space process through FUSE.
    The same approach could be imagined under non-GPL-compatible OS: have the GPL implementation as a standalone userspace daemon.
    (Which is not a bad idea - give more freedom to upgrade)

    Windows users will be stuck with NTFS

    No matter what. Even if some kernel guru released a tri licensed LGPL/BSD/Proprietary perfect file system, Microsoft will still be using NTFS and promising WinFS soon for whatever the next version of Windows is.
    They have a strong case of NIH-Syndrome.

    None of them will be compatible, and FAT32 somehow remains the only viable option for removable media.)

    For removable media, UDF could be a good candidate too. It's getting widespread availability, specially since Microsoft added support for writing on Vista and Win7.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re:One file system to rule them all by Dr.Dubious+DDQ · · Score: 2, Informative
      "For removable media, UDF could be a good candidate too. It's getting widespread availability, specially since Microsoft added support for writing on Vista and Win7."

      Getting slightly off-topic, but after the FAT patent-trolling recently this interests me.

      I went and dug up the sadly-neglected udftools package and installed it. Sure enough, the following command (found with a bit of Googling) seems to produce a filesystem on my SD card that can be read from and written to just fine by Linux, Mac OSX (Leopard), and Vista at least:
      mkudffs --media-type=hd --blocksize=512 /dev/sdc
      (Obviously one should substitute the appropriate device there...) No partition table needed. I'm not sure if the "blocksize=512" is necessary, but it appeared that it might be.

      The only real problems I see are the fact that udftools appears to have been abandoned half a decade ago, so there is no fsck tool[1], and that all those elderly Windows XP machines apparently can't write to this format without 3rd-party software.

      Looks promising to me, if development on udftools is picked up by anyone (and in the meantime is definitely usable), so thanks for the tip...

      [1] Well, udftools does include a "udffsck", but it quite literally does nothing - the source code is a stub that consists entirely of a single "void main()" function that returns 0 immediately. Mac OSX has a newfs_udf, but also appears to lack a way of repairing/validating the filesystem.

  11. Re:ATI chipsets by erko · · Score: 2, Informative

    If you're ok with not-so-open drivers, nvidia 3D cards have worked for years. I am waiting for quality open source 3D linux drivers, but until then, at least 3D can and has worked reliably on linux. (the nvidia-settings tool is reasonable enough that you generally don't need to edit config files)

  12. Re:ATI support by Anonymous Coward · · Score: 5, Informative

    The 2D specs were released in September 2007. The 3D specs were released in January 2009. Drivers do not write themselves immediately just because the specs are out, it still takes some time. But it's getting there, and they won't go away like the closed drivers will, the moment the manufacturer feels it's no longer profitable to maintain them.

  13. KSM by svtdragon · · Score: 2, Funny

    Linux 2.6.32 introduces what is called "KSM"

    WHAT!? I know Linux users are pretty militant (myself among them), but to implement terrorism in the kernel?

    Please tell me it's at least built as a *module* by default!

  14. Re:ATI chipsets by RubberDuckie · · Score: 2, Informative

    The Fedora team has backported the KMS and R600/700 improvements to FC12, which I've been running for a few weeks now. While it's better than nothing, 3d performance still has a way to go. The performance of my old Heretic II game is still unacceptably slow.

    The ATI drivers usually took the sacrifice of a goat to get them to work, but their performance was far superior. Too bad ATI won't support recent releases of Fedora.

  15. Re:does KSM mean the death of Xen? by Bert64 · · Score: 3, Informative

    Instead of storing multiple copies of the same data in memory, it stores a single read-only copy and points the others to it. If you try to write to it, it traps, creates a new read/write instance which is exclusive to you and then points you at it...

    Shared libraries work in much the same way. Shared libraries been implemented pretty securely for many years now.

    --
    http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  16. Comment removed by account_deleted · · Score: 3, Interesting

    Comment removed based on user account deletion

  17. time saving makefile by inode_buddha · · Score: 5, Interesting

    I'm very interested in the new make target. Specifically, "make localmodconfig". It seems that this new target will check your current .config, and also check whatever modules are currently loaded. It then creates a new config file which only builds the modules you are currently using. This could be a great time and space saving, as opposed to building everything and the kitchen sink as distros tend to do. It gives you a fairly easy and sane way to truly tweak your kernel to fit your box, or script it to fit a whole bunch of non-similar boxes.

    --
    C|N>K
    1. Re:time saving makefile by bcmm · · Score: 3, Interesting

      That's sounds potentially very useful, but beware that if it works the way you're describing it, it could remove, for example, support for USB MSC if your USB stick wasn't plugged in when you did it.

      --
      # cat /dev/mem | strings | grep -i llama
      Damn, my RAM is full of llamas.
    2. Re:time saving makefile by gringer · · Score: 2, Informative

      There's also a "make localyesconfig" that will be even more useful for me, particularly for removing the need for initrd. I can now do a "make localyesconfig", and not have to try to guess what particular combination of compiled-in options is required for the computer to start up, then add in the additional things as modules.

      --
      Ask me about repetitive DNA
  18. Re:ATI chipsets by bcmm · · Score: 2, Informative

    I've been using the RCs of this kernel, and the Radeon r600 support is already much faster and more stable than fglrx.

    --
    # cat /dev/mem | strings | grep -i llama
    Damn, my RAM is full of llamas.