Slashdot Mirror


Linux Kernel 2.6.20 Released

diegocgteleline.es writes "After two months of development, Linux 2.6.20 has been released. This release includes two different virtualization implementations: KVM: full-virtualization capabilities using Intel/AMD virtualization extensions and a paravirtualization implementation usable by different hypervisors. Additionally, 2.6.20 includes PS3 support, a fault injection debugging feature, UDP-lite support, better per-process IO accounting, relative atime, relocatable x86 kernel, some x86 microoptimizations, lockless radix-tree readside, shared pagetables for hugetbl, and many other things. Read the list of changes for more details."

50 of 240 comments (clear)

  1. so by Anonymous Coward · · Score: 5, Funny

    how much of SCO's stolen code is in this version?

    1. Re:so by IdleTime · · Score: 4, Funny

      42...

      --
      If you mod me down, I *will* introduce you to my sister!
    2. Re:so by jd · · Score: 3, Funny

      Are you accusing Linus of jumping the gun? We all know from court statements that the stolen code isn't to be added until Linux 2.7!

      --
      It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    3. Re:so by rucs_hack · · Score: 3, Funny

      surely you mean 6*9....

  2. Pretty amusing superbowl announcement by reset_button · · Score: 5, Funny

    In a widely anticipated move, Linux "headcase" Torvalds today announced
    the immediate availability of the most advanced Linux kernel to date,
    version 2.6.20.

    Before downloading the actual new kernel, most avid kernel hackers have
    been involved in a 2-hour pre-kernel-compilation count-down, with some
    even spending the preceding week doing typing exercises and reciting PI
    to a thousand decimal places.

    The half-time entertainment is provided by randomly inserted trivial
    syntax errors that nerds are expected to fix at home before completing
    the compile, but most people actually seem to mostly enjoy watching the
    compile warnings, sponsored by Anheuser-Busch, scroll past.

    As ICD head analyst Walter Dickweed put it: "Releasing a new kernel on
    Superbowl Sunday means that the important 'pasty white nerd'
    constituency finally has something to do while the rest of the country
    sits comatose in front of their 65" plasma screens".

    Walter was immediately attacked for his racist and insensitive remarks
    by Geeks without Borders representative Marilyn vos Savant, who pointed
    out that not all of their members are either pasty nor white. "Some of
    them even shower!" she added, claiming that the constant stereotyping
    hurts nerds' standing in society.

    Geeks outside the US were just confused about the whole issue, and were
    heard wondering what the big hoopla was all about. Some of the more
    culturally aware of them were heard snickering about balls that weren't
    even round.

                                                Linus

    1. Re:Pretty amusing superbowl announcement by oever · · Score: 2, Informative

      For those of us outside of the US: Anheuser-Busch is a brewery conglomerate, probably a bit like Bavaria.

      --
      DNA is the ultimate spaghetti code.
    2. Re:Pretty amusing superbowl announcement by tenco · · Score: 2, Informative

      For those of you outside of Germany: Bavaria is a state of Germany. It even contains more beer than any brewery conglomerate...

  3. Too many tlas? by Professr3 · · Score: 5, Funny

    Where would we be without lockless radix-free readsides? I don't even know what that means, and I'm a CS major!

    1. Re:Too many tlas? by SixDimensionalArray · · Score: 2, Informative

      I admit to not knowing what they are either, but here it is - radix tree. Sounds like a pretty nice tree data structure, an alternative to your hashtables, balanced trees, etc. designed for sets of strings.

      Since I love the PHP and PERL implementations of associate arrays, I guess it's neat to have these data structures implemented directly in the kernel! Sounds like they might be using them as a sort of in-memory data store.

      SixD

    2. Re:Too many tlas? by xenocide2 · · Score: 4, Informative

      This comment hurts my brain. You bitch about TLAs but they're not even acronyms. Do you even know what TLA stands for?!

      Lockless means it's doing something without locking everyone else from the data. Sometimes this means optimistic resolution (everyone try, and if it looks like it screwed up, try again!), sometimes it means keeping local read copies, sometimes it means something new and/or crazy. Lockless approaches are used when you have data that lots of threads must share but efficiency concerns or non-blocking requirements force you away from simply using a lock and blocking when someone else is playing with the data.

      A radix-tree, as opposed to "radix-free", is a data structure used in certain applications, with operations dependent on the length of the key rather than the amount of data stored. In 2.6.20 (and others), it's used to organize some information about the page cache.

      This code is associated with the RCU, which you may recall is part of an SCO lawsuit. If you're interested in any other feature or changes, the kernel newbies site is instrumental!

      --
      I Browse at +4 Flamebait

      Open Source Sysadmin

  4. Relocatable on x86? by MBCook · · Score: 3, Insightful

    What is the purpose of being relocatable on x86? I don't remember reading anything about that so what is the point? Is that already possible on other architectures or is x86 the first (as it often is)? I realize the point of making user programs relocatable, but the kernel? The only thing I can think of is that this either has to do with paravirtualization (to speed it up when the kernel isn't at the base of address space), or for replacing the kernel on a running system (can't remember the name, but the idea would be to load the new kernel, transfer into it, then copy it down to the base of memory as you're executing).

    Can any explain this one to me?

    --
    Comment forecast: Bits of genius surrounded by a sea of mediocrity.
    1. Re:Relocatable on x86? by diegocgteleline.es · · Score: 4, Informative

      It's useful for kdump users. Kdump uses kexec to execute a new kernel in a non-standard localization of the memory. Until now kdump people used a different kernel that was compiled to be run in a different memory localization from the standard one. With this feature, you can use the same kernel to do a standard booting and a kexec boot without carring a additional kernel image around.

    2. Re:Relocatable on x86? by shaitand · · Score: 5, Informative

      Since pointing people to the relevent document is apparently flamebait; I will copy and paste what you get if you click on the fourth heading in giant print from the changes article.

      Relocatable kernel support for x86

      This feature (enabled with CONFIG_RELOCATABLE) isn't very noticeable for end-users but it's quite interesting from a kernel POV. Until now, it was a requeriment that a i386 kernel was loaded at a fixed memory address in order to work, loading it in a different place wouldn't work. This feature allows to compile a kernel that can be loaded at different 4K-aligned addresses, but always below 1 GB, with no runtime overhead. Kdump users (a feature introduced in 2.6.13 that it triggers kexec in a kernel crash in order to boot a kernel that has been previously loaded at a 'empty' address, then runs that kernel, saves the memory where the crashed kernel was placed, dumps it in a file and continues booting the system) will benefit from this because until now the "rescue kernel" need to be compiled with different configuration options in order to make it bootable at a different address. With a relocatable kernel, the same kernel can be boot at different addresses.

    3. Re:Relocatable on x86? by FooAtWFU · · Score: 4, Informative

      This feature (enabled with CONFIG_RELOCATABLE) isn't very noticeable for end-users but it's quite interesting from a kernel POV. Until now, it was a requeriment that a i386 kernel was loaded at a fixed memory address in order to work, loading it in a different place wouldn't work. This feature allows to compile a kernel that can be loaded at different 4K-aligned addresses, but always below 1 GB, with no runtime overhead. Kdump users (a feature introduced in 2.6.13 that it triggers kexec in a kernel crash in order to boot a kernel that has been previously loaded at a 'empty' address, then runs that kernel, saves the memory where the crashed kernel was placed, dumps it in a file and continues booting the system) will benefit from this because until now the "rescue kernel" need to be compiled with different configuration options in order to make it bootable at a different address. With a relocatable kernel, the same kernel can be boot at different addresses.
      Mirrordot has a copy you can read.
      --
      The World Wide Web is dying. Soon, we shall have only the Internet.
    4. Re:Relocatable on x86? by iluvcapra · · Score: 3, Insightful

      Every time you say "RTFM n00b," God kills a prospective Linux switcher. Cheers.

      --
      Don't blame me, I voted for Baltar.
    5. Re:Relocatable on x86? by shaitand · · Score: 2, Insightful

      That doesn't really apply here. He doesn't sound like a n00b to me. He sounds like a competent individual with a question about the details who was just too damn lazy to actually follow the link in the summary for those details. I also helpfully advised him that those details were readable and not a bland changelog litany in case he assumed that is what he would find and skipped it for that reason.

    6. Re:Relocatable on x86? by pboyd2004 · · Score: 2, Interesting

      Among the other things mentioned here. It's actually somewhat of a security thing. A lot of root kits and other exploits rely on fixed addresses so if you move the kernel or other parts of the OS around it's harder to hack.

    7. Re:Relocatable on x86? by node+3 · · Score: 2, Interesting

      RTFM is only inappropriate when directed at someone who is making a legitimate effort. If a n00b, who is curious about Linux but is not making a "legitimate effort", hears "RTFM" (or "RTFA", in this case), and is put off Linux, possibly forever, is that appropriate?

      The thing that made your answer so shitty and arrogant was, while it was clear you were *trying* to be helpful, you wrote a very long, "RTFA", which did not answer the question at all, and even worse, was much longer than an actual, helpful, answer would have been.

      Reading your post it sounds as if there is never a situation where it is appropriate to refer someone to the manual at all. Where did you get that idea? I never said anything of the sort.

      You've really got to consider how your help is going to be received (if your goal is actually to help, which it's clear it was). If someone asks a question, and you answer with a smart-ass riddle, most of the time all you're doing is annoying the person, and not helping at all. RTFM is a lot like answering with a riddle (although much more straightforward). If their question is really complex, sometimes RTFM is the shorter, easier answer. If they show keen interest, sometimes RTFM is the most helpful answer (pointing them where they can learn much more than just the answer to their single question). And sometimes RTFM teaches people to be self-sufficient.

      On the other hand, sometimes RTFM sounds too much like, "I could tell you, but I won't. You're on your own, n00b." Why expect the casual observer to respond well to that?
    8. Re:Relocatable on x86? by gkhan1 · · Score: 2, Insightful

      Since pointing people to the relevent document is apparently flamebait

      No, but being rude and obnoxious can certainly qualify as flamebait. If you don't want to be modded down, learn some civility. And by the way, bitching about moderation is off-topic.

  5. 'Many other things' by mr_luc · · Score: 5, Funny

    In addition to relative atime, relocatable kernels, microoptimizations, lockless radix-tree readside, shared pagetables for hugetbl, the new version includes:

    Cropotactical callipygization, hoptic chamferbytes, chrome-plated floydbarbers, brillig/mimsy optimizations and full slithy tove support.

  6. Re:Amazing by MartinG · · Score: 4, Informative

    Hoping this gets into distros soon.

    The latest ubuntu pre-release has the 2.6.20rc kernel. This will be 2.6.20 final (+patches) in the final "Feisty Fawn" release in a couple of months.

    Also, I believe (but I'm not 100% sure) that fedora 7 will ship 2.6.20. Current pre-release (test1) and rawhide have 2.6.19.

    --
    -- MartinG To mail me: echo kewyjlcxyzvjfxbqwh | tr bcefhjklqvwxyz .@adgimnoprstu
  7. Re:So... by PenGun · · Score: 2, Informative

    Fishing actually. It's pretty well the inverse of the goat thing.

  8. OSX vs Vista vs Linux by derrickh · · Score: 4, Insightful

    When Apple released its lastest OS, they talked about all the pretty colors it has, and the cool music you can listen to.

    When Microsoft released Vista, they talked about all the pretty colors it has, and the cool music you can listen to.

    The latest release of Linux is trumpeting virtualization, hypervisors, microoptimizations, and something about a lockless radix-tree.

    Nuff said.

    D

    1. Re:OSX vs Vista vs Linux by the_humeister · · Score: 5, Funny

      Technically speaking, "Linux" only referes to just the kernel. So there won't be any pretty colors or music to listen to with just a kernel (unless you're on LSD).

    2. Re:OSX vs Vista vs Linux by Nasarius · · Score: 5, Informative

      Well, that's mostly because of the nature of the thing. Linux is just the kernel, whereas Windows and MacOS X include everything from the kernel up through the desktop and some applications. Rest assured that KDE 4, for example, will have pretty colors!

      --
      LOAD "SIG",8,1
    3. Re:OSX vs Vista vs Linux by Jah-Wren+Ryel · · Score: 2, Insightful

      When Apple released its lastest OS, they talked about all the pretty colors it has, and the cool music you can listen to.

      When Microsoft released Vista, they talked about all the pretty colors it has, and the cool music you can listen to.

      The latest release of Linux is trumpeting virtualization, hypervisors, microoptimizations, and something about a lockless radix-tree.
      Do you think that might be because "linux" the kernel does not even have a user interface with or without pretty colors nor a music player?
      --
      When information is power, privacy is freedom.
    4. Re:OSX vs Vista vs Linux by Anonymous Coward · · Score: 5, Funny

      there won't be any pretty colors or music to listen to with just a kernel (unless you're on LSD).

      I am on LSD, you insensitive clod! And the colors are very pretty to listen to!

    5. Re:OSX vs Vista vs Linux by grcumb · · Score: 2, Informative

      The latest release of Linux is trumpeting virtualization, hypervisors, microoptimizations, and something about a lockless radix-tree.

      Actually, that's a replacement for the Jell-o Tree, which had to be locked all the time to keep those darned kids out of it.

      Come on, mod me Informative. I dare you.... 8^)

      --
      Crumb's Corollary: Never bring a knife to a bun fight.
    6. Re:OSX vs Vista vs Linux by Andy+Dodd · · Score: 4, Funny

      um, bootsplash? The Penguin in the upper left corner of the screen?

      Clearly, the Linux developers need to take a cue from Windows and put graphics drivers in the kernel, permitting a 3d-accelerated Tux at bootup, along with 64-voice software synthesized music. We're falling behind!

      --
      retrorocket.o not found, launch anyway?
  9. That's nice... by GFree · · Score: 5, Funny

    ... but does it run Vista?

    1. Re:That's nice... by SeaFox · · Score: 5, Funny

      NO!

      and that is a FEATURE!

    2. Re:That's nice... by pboyd2004 · · Score: 2

      Wrong with all the added virtualization it will run Vista (provided you have virtualization features in your CPU)

    3. Re:That's nice... by JackieBrown · · Score: 2, Informative

      What are you talking about? QEMU can be used to install both XP and 2000. (Runs slow though.)

    4. Re:That's nice... by Wingnut64 · · Score: 2

      ... but does it run Vista? No, but it will run your nVidia hardware...
      --
      echo 'Header append X-HD-DVD "0x09f911029d74e35bd84156c5635688c0"' >> /etc/apache2/httpd.conf
  10. Kernel Newbie's Detailed 2.6.20 list. by antdude · · Score: 5, Informative

    From http://kernelnewbies.org/Linux_2_6_20 (raw copy and paste -- didn't fix the formatting) since the site is getting hammered:

    Short overview (for news sites, etc)

    2.6.20 makes linux join to the virtualization trends. This release adds two virtualization implementations: A full-virtualization implementation that uses Intel/AMD hardware virtualization capabilities called KVM (http://kvm.sourceforge.net) and a paravirtualization implementation (http://lwn.net/Articles/194543) that can be used by different hypervisors (Rusty's lguest; Xen and Vmware in the future, etc),. But this release also adds initial Sony Playstation 3 support, a fault injection debugging feature (http://lwn.net/Articles/209257), UDP-lite support, better per-process IO accounting, relative atime, support for using swap files for suspend users, relocatable x86 kernel support for kdump users, small microoptimizations in x86 (sleazy FPU, regparm, support for the Processor Data Area, optimizations for the Core 2 platform), a generic HID layer, DEEPNAP power savings for PPC970, lockless radix-tree readside, shared pagetables for hugetbl, ARM support for the AT91 and iop13xx processors, full NAT for nf_conntrack and many other things.

    Important things (AKA: ''the cool stuff'')

    Sony Playstation 3 support

    You may like the Wii or the 360 more, but only the PS3 is gaining official Linux support, written by Sony engineers. Notice that the support at this time is incomplete (apparently enabling it will not boot on a stock PS3) and it doesn't support the devices included like the graphics card, etc. (commit 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)

    Virtualization support through KVM

    KVM (project page) adds a driver for Intel's and AMD's hardware virtualization extensions to the x86 architecture (KVM will not work in CPUs without virtualization capabilities). See the Virtualization wiki for more information about virtualization in Linux

    The driver adds a character device (/dev/kvm) that exposes the virtualization capabilities to userspace. Using this driver, a process can run a virtual machine (a "guest") in a fully virtualized PC containing its own virtual hard disks, network adapters, and display. Each virtual machine is a process on the host; a virtual cpu is a thread in that process. kill(1), nice(1), top(1) work as expected. In effect, the driver adds a third execution mode to the existing two: we now have kernel mode, user mode, and guest mode. Guest mode has its own address space mapping guest physical memory (which is accessible to user mode by mmap()ing /dev/kvm). Guest mode has no access to any I/O devices; any such access is intercepted and directed to user mode for emulation.

    32 and 64 bits guests are supported (but not x86-64 guests on x86-32 hosts!). For i386 guests and hosts, both pae and non-pae paging modes are supported. SMP hosts and UP guests are supported, SMP guests aren't (support will be added in the future). You also can start multiple virtual machines in a host. Performance currently is non-stellar, it will be improved by a lot with the future inclusion of KVM paravirtualization KVM support.

    The Windows install currently bluescreens due to a problem with the virtual APIC, a fix is being worked on and will be added in future releases. A temporary workaround is to use an existing image or install through qemu - Windows 64-bit does not work either (commit)

    Paravirtualization support for i386

    Paravirtualization is the act of running a guest operating system, under control of a host system, where the guest has been ported to a virtual architecture which is almost like the hardware it is actually running on. This technique allows full guest systems to be run in a relatively efficient manner (continue reading this LWN article for more information). This allows to link different hypervisors (lguest/lhype/rustyvisor implements a hypervisor in 6.000 lines; Xen and Vmware will be probably ported to th

    --
    Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  11. linux-wlan-ng injection by sinclair44 · · Score: 3, Interesting

    Does anyone know if this fixes packet injection on Prism wireless adapter cards using the linux-wlan-ng driver and the aircrack-ng patch? It's been broken since 2.6.12 (but worked before that)...

    --
    Omnes stulti sunt.
    1. Re:linux-wlan-ng injection by kestasjk · · Score: 5, Funny

      Nope, it is completely broken and will break your kernel if you try. -- Your neighbor

      --
      // MD_Update(&m,buf,j);
  12. kvm versus vmware by digitalsushi · · Score: 3, Interesting

    VMWare released their server product recently, for free, and it's basically the same thing as VMWare workstation, except workstation is expensive and does slightly less. (So VMWare server is pretty sweet. Check it out if you havent heard of it. We use it to virtualize several windows XP guests on a linux host).

    I've looked at a KVM whitepaper and it doesn't look like it's quite stable yet. The paper did however mention that it's usably fast on a current processor. (Given it requires the VT extensions, it's inevitable not to have a current processor!)

    Can anyone comment on whether KVM is a reasonable alternative to the VMWare Server product?

    --
    slashdot: where everyone yells sarcastic metaphors to themselves to understand the issue
    1. Re:kvm versus vmware by arkhan_jg · · Score: 4, Interesting

      Not yet. I've played with it, and it's basically an alternative to the qemu closed-source module, it's using a modified qemu userland. The advantage of using a VT/SVM capable processor with KVM means you can run an unmodified guest OS; i.e. no paravirtualised custom drivers needed.

      Its biggest weakness is speed. VMware have had years of tweaking and finetuning, while kvm is very very new, and slow in certain areas. General desktop is fine, but network speed was painfully bad - for example - when I tried version 10. Plenty of work coming down the pipe, and it looks like it could be a powerful opensource virtualisation tool - in time. Right now, it is a bit fiddly to get running, and not quite ready for a production environment.

      For now I'd stick to VMWare or virtualbox, but definitely have another look at KVM in say, 6 months time.

      --
      Remember kids, it's all fun and games until someone commits wholesale galactic genocide.
    2. Re:kvm versus vmware by aspeer · · Score: 5, Informative
      except workstation is expensive and does slightly less


      VMWare workstation actually does more than VMWare server, which is why it is not free. You can look up the comparison table on the VMWare site, but Workstation is usually more attractive to developers because it has (amongst other things):

      • Multiple Snapshots - You can only take and rollback to one snapshot with the Server Product, Workstation allows you to go back to many different points in time.
      • Shared folders - Not available with Server. Very handy for accessing the host filesystem when the networking setup of the guest does not allow connectivity to the host (think test LAN or similar)
      The above features are "cream" on top of the core of virtualisation. If you just want to run a virtualized host, and things like snapshots or shared folders don't matter to you, use VMWare Server.


      My understanding is KVM provides the infrastructure for userland programs (such as VMWare, Xen) etc to access hardware virtualization services provided by late model Intel and AMD processors. Asking if KVM is a reasonable alternative to VMWare Server is not really a good way to frame the question - one day VMWare may use KVM for virtualisation. A better questions may be "which user-space virtualisation tool provides the best features for me as a user/developer/admin - Xen, VMWare, WidgetWorks" etc.

  13. Lockless radix trees by Logi · · Score: 3, Funny

    Cool, I'm going to pick me some radices before they lock those suckers up.

    --
    Logi - I can do anything, but not everything.
    1. Re:Lockless radix trees by heroofhyr · · Score: 2, Funny

      Even if they get locked up they shouldn't be too hard to find. The radix doesn't fall far from the tree, after all.

      --
      brandelf: invalid ELF type 'KEEBLER'
  14. Re:Colourful linux kernel... by philicorda · · Score: 5, Funny

    The best way to get cool colors with linux is to use the new relocatable kernel, and load it into shared video memory.

  15. PS3 support by cxreg · · Score: 2, Informative

    Unless things changed since the last RC, the "ps3 support" is incomplete and unusable at this point, and you still need to stick with the 2.6.16 kernel that YDL is shipping

  16. 6*9==42 by gd2shoe · · Score: 5, Insightful

    http://en.wikipedia.org/wiki/The_Hitchhiker's_Guid e_to_the_Galaxy

    6*9==42

    "What do you get if you multiply six by nine?" Arthur then comments, "I've always said there was something fundamentally wrong with the universe."

    (ironically, 6*9 does == 42 in base 13...)

    --
    I won't join Slashcott. OTOH, If Beta goes live, I just won't be back until it's fixed. Sorry Dice.
  17. /. Groupthink? by NaCh0 · · Score: 4, Insightful

    Weird... The other responses to your comment all take it as a knock against linux. I read your post as great insight into the reason why I use linux and not Vista or a Mac. Substance beats out fruity color schemes every day in my book.

  18. Re:Big FLASH by wes33 · · Score: 2, Informative
  19. Re:Amazing by gbobeck · · Score: 2, Informative

    Hoping this gets into distros soon.
    Gentoo already has 2.6.20 (emerge vanilla-sources), other source packages (i.e. gentoo-sources) should have 2.6.20 soon.
    --
    Navicula hydraulica plena anguilarum est. Omnes castelli tuus nostri sunt. Ed elli avea del cul fatto trombetta.
  20. PS3 support not complete by n2rjt · · Score: 2, Informative

    As of RC3, the PS3 support doesn't include drivers for PS3-specific devices such as the Ethernet controller, and doesn't successfully boot.
    Things may have changed but I'm stucking with my hand-patched 2.6.17 with zd1211 support for usb wifi.
    I use the PS3 Linux quite a bit as a family-room computer. Sound is limited to 2-channel, but good quality. Video has no acceleration, but is still fast and looks good on our 720p TV. Unfortunately, the built-in WIFI doesn't work with Linux, and the Sony-provided kernel seems to lack any support for USB WIFI.

  21. Re:Zombie process by Bob+of+Dole · · Score: 2, Informative

    Yes... Did you read the page you linked to?
    Zombie Processes are not a bad thing. They're not memory leaks.
    If you have a lot of zombie processes hanging around it's because of a bug in a program. It's pretty unlikely that it's a kernel bug.