Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Linux Software

Linux Kernel 2.6.21 Released 296

diegocgteleline.es writes "Linus Torvalds has released Linux 2.6.21 after months of development. This release improves the virtualization with VMI, a paravirtualization interface that will be used by Vmware. KVM does get initial paravirtualization support along with live migration and host suspend/resume support. 2.6.21 also gets a tickless idle loop mechanism called 'Dynticks', built in top of 'clockevents', another feature that unifies the timer handling and brings true high-resolution timers. Other features are: bigger kernel parameter-line, support for the PA SEMI PWRficient CPU and for the Cell-based 'celleb' Toshiba architecture, NFS IPv6 support, IPv4 IPv6 IPSEC tunneling, UFS2 write, kprobes for PPC32, kexec and oprofile for ARM, public key encryption for ecryptfs, Fcrypt and Camilla cipher algorithms, NAT port randomization, audit lockdown mode, some new drivers and many other small improvements."
This discussion has been archived. No new comments can be posted.

Linux Kernel 2.6.21 Released

Comments Filter:
  • Damnit! (Score:5, Funny)

    by FunWithKnives ( 775464 ) <<ten.tsirorret> <ta> <tcefrePxodaraP>> on Thursday April 26, 2007 @04:43PM (#18890771) Journal
    And I just upgraded to 2.6.20-15! (Kubuntu Feisty Fawn)

    • by arth1 ( 260657 )
      Same here -- I just went to 2.6.20, mostly because 2.6.17 no longer was supported by my distro, and 2.6.18 and 19 are somewhat buggy compared to .17 and .20. I'll wait and see before I go to .21 -- there's really nothing in there that I /need/. Others may have different needs and wants, of course.
      At this point, I'm mostly interested in bugfixes, and not features. YMMV.

      (Anyhow, why did someone mod your post "Flamebait"? I can't see anything in it that's inflammatory at all?)
  • Published? (Score:2, Insightful)

    by CastrTroy ( 595695 )
    What's with the headline? Who publishes OS kernels? I guess it could be grammatically correct and all that, but it sounds a little weird to me.
  • Bloat? (Score:2, Insightful)

    by ArcherB ( 796902 ) *
    Is it just me, or are all these options that are added with every new release going to result in a bloated kernel? It seems like every release adds new stuff, but I never see anything outdated taken away.

    Yes, I know that you can recompile and remove what you don't need, but most "non-uber-geek" users are not going to be able to handle that, and most distros are going to include a kernel with the kitchen sink compiled in.

    • Re:Bloat? (Score:5, Insightful)

      by qbwiz ( 87077 ) * <john@baumanfamily.c3.1415926om minus pi> on Thursday April 26, 2007 @04:50PM (#18890873) Homepage

      most distros are going to include a kernel with the kitchen sink compiled in.

      No, most distros are going to include a kernel with the kitchen sink compiled as modules, taking up a few megabytes on the hard drive, but never loaded.
      • Re:Bloat? (Score:4, Insightful)

        by arth1 ( 260657 ) on Thursday April 26, 2007 @05:34PM (#18891633) Homepage Journal
        Even if you compile something as modules, it does take up memory and resources. Much less, but still not negligible. There's hooks for the modules, plus tests in other parts on whether a module is loaded or not, in addition to much larger symbol tables.
        And, of course, there's many parts that can not be made into modules at all, but have to be part of the kernel. And that makes a HUGE difference.

        Is the difference really that big? Well, the machine I'm currently on has a bzipped kernel that's around 1.5 MB in size plus a 820 kB map. The alternative boot to a commercial distro (no name, no shame) has a bzipped kernel that's around 2.1 MB, plus a 2.3 MB initrd, plus a 1.2 MB System map.

        The difference might not be staggering, but it's there, and the kernel is growing with each revision. Here's how the System.map has grown for the last few revision on this laptop, with no new options added:


        -rw-r--r-- 1 root root 754620 Nov 30 18:32 System.map-2.6.17-gentoo-r8
        -rw-r--r-- 1 root root 768275 Dec 28 15:57 System.map-2.6.18-gentoo-r6
        -rw-r--r-- 1 root root 809157 Mar 26 04:28 System.map-2.6.19-gentoo-r5
        -rw-r--r-- 1 root root 839371 Apr 25 22:45 System.map-2.6.20-gentoo-r6


        That's an 11% increase without adding anything. Similar for the kernel itself (although that's harder to compare directly, due to the bzip2 compression). While not alarming, it's a trend towards feeping creaturitis that I think bears watching.
        • Re: (Score:3, Insightful)

          by xenocide2 ( 231786 )
          Pray tell, how did you eliminate the possibility of existing components growing, in order to conclude modularity itself is the problem?
    • Re:Bloat? (Score:5, Insightful)

      by Lxy ( 80823 ) on Thursday April 26, 2007 @04:52PM (#18890907) Journal
      I've noticed that each time I compile a new kernel, something has been moved to [deprecated] status that was still live in the last release. All the deprecated stuff is not compiled in by default, keeping the resulting bzImage size manageable.

      Most distros compile everything as modules, which generally keeps the overall size of the kernel down. Sure, bzImage grows over time (not just because of new features, but typically new patches == more lines of code), but not significantly from release to release.

      Most "non-uber-geek" users don't care what's in their kernel, and if they did, they'd learn to compile it themselves. Compiling kernels has gotten easier over the years. Chances are, if you care enough about how your kernel is compiled, you'll have the skills needed to do it yourself.
    • Re: (Score:3, Informative)

      by Qzukk ( 229616 )
      and most distros are going to include a kernel with the kitchen sink compiled in.

      Actually, they use kernels with everything compiled as modules, and a separate initrd/initramfs to deal with loading the drivers required at boot time.
    • Re: (Score:2, Interesting)

      I had begun making a similar observation to myself towards the 2.4.20+ line and definitely when 2.6 came out. It correlated nicely with the media increase in Linux coverage, the size and comprehensive nature of desktop environs like KDE and Gnome, the size of Xorg/Xfree86, and the increasing popular emphasis on web applications and the tion of HTTP and file-sharing protocol network usage over nearly anything else (spam excepted). I've almost decided that the computer programming age, as an affordabl
      • Re: (Score:3, Insightful)

        by Grishnakh ( 216268 )
        I've almost decided that the computer programming age, as an affordable hobby for the non-specialist, is nearing the end of its lifetime. In a few more years you'll have the option of working with entirely standardized/commoditized/completely controlled (corporate DRM style) equipment or, if that doesn't appeal to you, then you'll have to go off a polar deep end and spend absolute bricktons of time and money assembling a system using a soldering iron, a breadboard, and specialty chips ordered from remote cl
  • Meh (Score:3, Informative)

    by 1010110010 ( 1002553 ) on Thursday April 26, 2007 @04:47PM (#18890815)
    I haven't been able to get anything past 2.6.17 to boot successfully, I think they seriously hosed the ATA shit.
    • Re:Meh (Score:4, Interesting)

      by FudRucker ( 866063 ) on Thursday April 26, 2007 @04:51PM (#18890889)
      personally i hate using an initrd.img and prefer to build ext2 & ext3 support right in the kernel making initrd unnecessary, if you compile file system support as a module you will need an initrd.img too so insetead of selecting an "M" select "*" you could try that...

      P.S. i never use reiserfs so i can not say if this works with reiserfs or not...
      • Re:Meh (Score:4, Interesting)

        by tinkertim ( 918832 ) * on Friday April 27, 2007 @12:09AM (#18895989)

        personally i hate using an initrd.img and prefer to build ext2 & ext3 support right in the kernel making initrd unnecessary, if you compile file system support as a module you will need an initrd.img too so insetead of selecting an "M" select "*" you could try that...


        Its not just the file system you need, its the ability to spin the drive containing said file system too :) Its legacy HW that's getting fuzzy , not file systems. Not really sure why you hate initrds so much?

        The initrd does many more things than load drivers. What if you have an AoE based storage network with many disk-less stations needing to use an OCFS2 single system image? Initrd's can do neat things besides loading modules, have a look at linuxrc. You can bring network adapters to an up/link state, negotiate iscsi targets, download a boot config from a resource controller, all kinds of goodies. Complex networks need to do lots of things before pivot_root gets called, and we need complex networks.

        piix hasn't been 'quite right' since 2.6.16.29 on most of the legacy servers using PATA (IDE) I still have up and working, many of us have been having a difficult time with it. But progress is progress, and this is good progress so I guess my move to all SAS will be sooner than later.

    • Re:Meh (Score:4, Informative)

      by elFarto the 2nd ( 709099 ) on Thursday April 26, 2007 @05:30PM (#18891585)

      IIRC after 2.6.17 the SATA stuff changed quite a bit (it changed from the old SCSI based stuff, to libata), and requires turning the new options on.

      Regards
      elFarto
      • by Ant P. ( 974313 )
        libata supposedly has a driver for my old IDE-only chipset, but I've never got that to work. Maybe it just doesn't work for some people.
    • change /dev/hd?? to /dev/sd?? (even with IDE)

      it might work, No Guarantees though...
      • Re: (Score:3, Interesting)

        by giorgosts ( 920092 )
        My feisty has a 35% chance of mounting correctly the swap and ntfs partitions. On other occasions it boots ok, most of the times displays error and I have to reboot. I have the ext3 and swap partitions on PATA disk and ntfs on a SATA. Anyone else experienced that?

        I also notice the new feisty to be much faster, but when under load, desktop slows down considerably. On edgy, however hard you loaded the machine, there was always the extra power for sth else if you wanted.

        Feisty looks feels like a windows machin
        • I've changed my fstab to use UUIDs rather than device names. Once I had everything correctly labeled for a kernel my machine would boot up correctly but updating the kernel could break things. UUIDs stay the same even though disk device labeling is shifting sand at this point.
      • change /dev/hd?? to /dev/sd?? (even with IDE)

        Why was this done, though? All my IDE drives changed from hd? to sd? and for a while I couldn't boot. I had to rewrite my entire fstab. Parallel ATA may be going the way of the dodo, but it's far from dead.
    • Just tried the latest kernel and it hangs on trying to fire up the second ATA instance. Not even a kernel oops, nothing. That's true whether I use the vanilla kernel or Red Hat's RPM. Something is screwed up, and from the sounds of it, there's more than one of us experiencing a failure at the same point, so that would be the obvious suspect.
      • Re: (Score:3, Interesting)

        Just tried the latest kernel and it hangs on trying to fire up the second ATA instance. Not even a kernel oops, nothing. That's true whether I use the vanilla kernel or Red Hat's RPM. Something is screwed up, and from the sounds of it, there's more than one of us experiencing a failure at the same point, so that would be the obvious suspect.

        This problem needs to go to lkml, and cc Andrew.
  • KVM management? (Score:3, Insightful)

    by drinkypoo ( 153816 ) <drink@hyperlogos.org> on Thursday April 26, 2007 @04:48PM (#18890837) Homepage Journal
    Speaking of KVM (slightly offtopic, but not totally) are there any worthwhile management utilities for it yet? I actually ended up giving up for a while on KVM entirely because the video device is horribly slow and VDE support is not reliable, and I'm using vmware server, but I did have to give it a try. I'd love to use KVM (since I have supported hardware and it's Free software, and I'd love to minimize my use of the closed stuff) but beyond those problems (which will hopefully both be fixed relatively soon) there is simply no decent management software unless you're on redhate. Either virt-manager or libvirt is badly broken and won't work properly otherwise. UNLESS... has anyone out there gotten it working on debian/Ubuntu yet? I tried for a while, but I'm just not a good enough programmer and the programs ain't done yet.
    • I actually ended up giving up for a while on KVM entirely because the video device is horribly slow and VDE support is not reliable

      How do you mean the video device is "horribly slow". Also, what do you mean by VDE (as in, vde.sf.net?).
      • How do you mean the video device is "horribly slow".

        I mean that updates to the display (I was using the console interface, not a VNC) are, well, horribly slow. Some issues might be windows-specific, such as windows 2000 taking so long to turn the whole display desktop-colored (initializing video memory, I guess?) taking literally a minute or more.

        And yes, by VDE I mean Virtual Distributed Ethernet. I tried both VDE and VDE2. With VDE2 it never worked properly. With vde, I could start kvm four times and h

  • by MarcQuadra ( 129430 ) * on Thursday April 26, 2007 @04:48PM (#18890841)
    I follow prerelease kernels and I've been waiting for this. I've found that running my VMWare hosts and guests with tickless, low-HZ, voluntary-preempted kernels is seriously reducing the overhead you get when you run more virtual CPUs than real ones in your box.

    I can't wait for it to mature on PPC, MIPS, and x86_64! Right now it's 32-bit x86 only.
    • Can you explain this a bit more please for those of us who don't know what tickless means?
      • by AaronW ( 33736 ) on Thursday April 26, 2007 @05:32PM (#18891601) Homepage
        It means that they were able to successfully remove the blood sucking parasites from the kernel.

        Most kernels use a periodic system timer tick to do various housekeeping chores, like rescheduling tasks, sending packets, flushing files from the cache, etc. Usually this occurs at some periodic rate, i.e. every 1-10ms for Linux and every 10-15ms for Windows (according to this article [microsoft.com].

        This is a bit wasteful of CPU resources, since the kernel might not need to do anything for quite a while, or it might want a high resolution timer with higher accuracy than normal system timer. For example, when the system is idle, the CPU still must wake up and process a timer interrupt for every timer tick, and if it's set to 1ms there are 1000 interrupts per second.

        A tickless kernel instead only schedules the next tick for when it is needed, so if the system is idle and nothing needs to happen for 50ms, then the next tick will be scheduled 50ms later. On the other hand, if a timer needs to go off in 750 microseconds, the kernel can schedule the next interrupt to go off then, giving much higher accuracy.
        • Does this mean things like sleep(5) will sleep for 5ms for real now, without needing to change the scheduler etc?
          • Re: (Score:3, Informative)

            by AaronW ( 33736 )
            sleep(5) currently sleeps for 5 seconds, however, calls like nanosleep should have much greater accuracy with a tickless timer.
  • by rob1980 ( 941751 ) on Thursday April 26, 2007 @04:49PM (#18890843)
    ... but does it run Linux?
  • by iamacat ( 583406 ) on Thursday April 26, 2007 @04:49PM (#18890853)
    Once again, it took many months of work to optimize an idle loop.
  • by diegocgteleline.es ( 653730 ) on Thursday April 26, 2007 @04:50PM (#18890875)
    Here. [kernelnewbies.org]
  • At last! (Score:2, Funny)

    by Dr. Stavros ( 808432 )
    Glad to hear that it's been published. Where can I download the PDF? I heard that Darl dies near the end, but I want to read it for myself.
  • by heretic108 ( 454817 ) on Thursday April 26, 2007 @04:57PM (#18890997)
    Sooner or later, my /boot/grub/menu.lst will look like:

    ...
    title Ubuntu, kernel 2.6.29-5-generic
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.29-5-generic root=/dev/hda1 ro \
      coffee=cappucino,sugar=0,hourly \
      massageareas=head,neck,shoulders \
      catfeedingtimes=4_hours,15_grams
    initrd /boot/initrd.img-2.6.29-5-generic
    quiet
    savedef ault
    boot
    ...
    • by ctr2sprt ( 574731 ) on Thursday April 26, 2007 @05:29PM (#18891549)

      Yeah, the absurdly long kernel command lines in Linux really bug me. It's a symptom of the suckiness that is the PC BIOS, so I'm not really blaming the Linux people, but there are better solutions and have been for years. The FreeBSD loader [freebsd.org], for instance, is capable of loading the kernel and any modules required to bootstrap the system, reading configuration files, and running Forth (!) scripts. Such a loader would completely eliminate the need for initrds on nearly all systems[1] without sacrificing any power. You could also emulate Openboot or EFI - or more realistically a subset of them - using the PC BIOS to prepare for the future.

      [1] initrd is a really awesome feature and it shouldn't go away. But it's massive overkill the way it's typically used, which is to load modules required to mount the root filesystem.

    • Re: (Score:2, Funny)

      by ady1 ( 873490 )

      massageareas=head,neck,shoulders
      In this revision, they've changed added a additional feature. Now the line is like:

      massageareas=head[0],neck[0],shoulder[0-1]
      Massage the wrong array member and the kernel will panic.
    • Re: (Score:3, Funny)

      by SeaFox ( 739806 )

      catfeedingtimes=4_hours,15_grams

      you forgot the
      type=feline_supplement,id=25

  • These dynaticks capabilities will certainly blow you off your socks!

    http://www.spymall.com/catalog/images/bombclock3.j pg [spymall.com]
  • Mactel MBP C2D (Score:4, Interesting)

    by JumboMessiah ( 316083 ) on Thursday April 26, 2007 @05:02PM (#18891097)
    As an owner of a Macbook Pro, I've been waiting for this to get released. The Dynticks integration will (hopefully) help lower power consumption and heat output. Though this will help reduce heat and power on all platforms, those running Linux on a MBP C2D know it's hard to keep the fans from spinning up from relatively little activity.

    Next up is to get ATI to actually support any power saving features in fglrx on the MBP C2D and give the mAdWiFi [madwifi.org] guys more time to work out the features on the Atheros AR5008.

    OSX, right now, still has a significant advantage in keeping heat and power consumption down. Even though, I imagine some will testify that even OSX is having a hard time with it...

    Here's to testing out 2.6.21 tonight :)
    • The Dynticks integration will (hopefully) help lower power consumption and heat output.

      Dynticks stil doesn't set the CPU to a power-savvy mode (it will in the future, but not in 2.6.21), so power consumption is more or less the same than without dynticks.
    • I'd like to have some form of force feedback running. Yes, I know, this is a device driver issue, not a kernel one, but the drivers come with the kernel. My Microsoft Sidewinder wheel is the only reason why I still keep a Windows partition at home.

      Does anybody there know a wheel that has good force feedback features in Linux? If I had one I would start contributing code to some project like torcs [sourceforge.net] or rars [sourceforge.net].

  • Cool, but... (Score:3, Insightful)

    by asninn ( 1071320 ) on Thursday April 26, 2007 @05:14PM (#18891285)
    That's cool, but is this really news that's Slashdot-worthy? Sites like LWN and KernelTrap have already reported this, and anyone who's interested in Linux development is pretty much guaranteed to follow the former at least, I think (and most likely the latter as well).
    • I dunno, back in the day it seemed that Linux kernel development stories and release announcements were the mainstay of Slashdot news.
    • Re:Cool, but... (Score:5, Insightful)

      by npsimons ( 32752 ) * on Thursday April 26, 2007 @06:03PM (#18892023) Homepage Journal

      That's cool, but is this really news that's Slashdot-worthy? Sites like LWN and KernelTrap have already reported this, and anyone who's interested in Linux development is pretty much guaranteed to follow the former at least, I think (and most likely the latter as well).

      Considering that slashdot was (note the past tense) first and foremost a Linux/all things geeky site, I'd say this article is very slashdot-worthy. Not to mention that we get a fawning mac fan boy article every time Steve Jobs so much as farts. At least the Apple section can be turned off. Wish I could do the same with Microsoft and Windows articles.


    • by Sancho ( 17056 )
      I don't follow the kernel releases anywhere but on Slashdot, honestly. Though I'm typically interested in the new features, Slashdot usually has more information that I care about, rather than the detailed changelog that has extremely low-level changes. Generally, I'm interested in stability, security, and feature enhancements, and the summary+comments tends to hit all of the important ones in any given release.
    • by Kjella ( 173770 )
      Slashdot used to post almost every point release when I started on slashdot, but then again there were often really important kernel changes. In recent years kernel releases have been more like "Works good like before, maybe a little better, a few more drivers, exotic functions X, Y, Z". Trip down memory lane perhaps? Maybe the virtualisation support was news enough to qualify? Fire up the good old flamewar on whether the 2.6 kernel is stable or not? Besides, with various posts to randoms blogs/slashvertise
  • eCryptfs public key (Score:5, Interesting)

    by omnirealm ( 244599 ) on Thursday April 26, 2007 @05:57PM (#18891937) Homepage
    The public key support for eCryptfs can handle more than just public keys. It includes a communication mechanism with a user daemon that can be queried from the kernel on file open events. There is a pluggable key module interface accessible through that daemon. OpenSSL is currently implemented, but there is nothing stopping anyone from writing a module to use GnuPG or any other key management/encryption backend, all in userspace. The module just needs to accept a key signature, and it can perform encryption and decryption based on whatever that signature refers to.

    In other news, eCryptfs has recently been given the go-ahead for inclusion into Fedora:

    https://bugzilla.redhat.com/bugzilla/show_bug.cgi? id=218556 [redhat.com]

    In the meantime, you can grab all the userspace stuff from the eCryptfs SourceForge site:

    http://ecryptfs.sourceforge.net/ [sourceforge.net]
  • I think since 2.6 has come out, I have lost complete track of kernel versions--it simply doesn't matter anymore to me. I think at this point, people could come in and replace the Linux kernel with BSD, Darwin, or Solaris and I probably wouldn't notice. Kernels have become a commodity.
    • by mangu ( 126918 ) on Thursday April 26, 2007 @06:57PM (#18892697)
      people could come in and replace the Linux kernel with BSD, Darwin, or Solaris and I probably wouldn't notice.


      This means your CPU is much more powerful than what you really need. I used FreeBSD a bit in the 1990s, but switched to Linux because the kernel allowed me better fine tuning in the 486 CPU I had at the time.


      Today the CPU is way over my needs too, but I stick to Linux because, first, I have no need to switch and, second, Linux has better hardware support than the others you mentioned.

  • But apart from virtualization with VMI, paravirtualization, live migration and host suspend/resume supportsupport for kvm, a tickless idle loop mechanism with unified high resolution timer handling, bigger kernel parameter-lines, support for the PA SEMI PWRficient CPU and for the Cell-based 'celleb' Toshiba architecture, NFS IPv6 support, IPv4 IPv6 IPSEC tunneling, UFS2 write, kprobes for PPC32, kexec and oprofile for ARM, public key encryption for ecryptfs, Fcrypt and Camilla cipher algorithms, NAT port ra

He has not acquired a fortune; the fortune has acquired him. -- Bion

Working...