Slashdot Mirror


Linux Kernel 2.6.24 Released

LinuxFan writes "Linus Torvalds has released the 2.6.24 Linux Kernel, noting that he and most of the other key Linux developers will be flying to a conference in Australia for the next week. As the whole team will be down under while the kernel is being tested by the masses, Linus added, "Let's hope it's a good one". What's new in the latest release includes an optimized CFQ scheduler, numerous new wireless drivers, tickless kernel support for the x86-64 and PPC architectures, and much more. Time to download and start compiling."

32 of 108 comments (clear)

  1. Wow. Lots of stuff. by MostAwesomeDude · · Score: 5, Interesting

    On one hand, things like the VM dirty writeback adjustments and default cpufreq frequency governors, as well as dynticks for more arches, are big performance improvements. On the other hand, they broke wireless packet injection patches for a lot of drivers... At any rate, I'll have to try this just to see if it really performs better. Things like laptop_mode which rely on optimized scheduling and writeback code should see improvements.

    --
    ~ C.
  2. Merge Window? by AndGodSed · · Score: 2, Interesting

    "Since I already had two kernel developers asking about the merge window and whether people (including me) traveling will impact it, the plan right now is to keep the impact pretty minimal. So yes, it will probably extend the window from the regular two weeks, but *hopefully* not by more than a few days."

    Now THERE's confidence for you. Great news.

    1. Re:Merge Window? by Anonymous Coward · · Score: 2, Insightful

      I'm just wondering, should a core group be traveling together? What will the impact be if that plane impacts the ground?

    2. Re:Merge Window? by iMaple · · Score: 5, Funny

      There is a chance that some stupid airline CEO decided that their planes use The Evil Darklord's software for navigation. Of course we all know that noone would NEVER code a special condition in the software which says

      if(passenger_list.contains(entire_linux_kernel_team){
            flyinto(mount_everest);
            output_evil_voice("muhahahhaa");
      }

      On the other hand, there is nothing to worry about. This feature probably was shelved and is definitely going to be in the *next* version of the OS.

    3. Re:Merge Window? by Aladrin · · Score: 3, Funny

      Did you seriously just managed to misspell both words in 'News Bulletin'?

      --
      "If you make people think they're thinking, they'll love you; But if you really make them think, they'll hate you." - DM
    4. Re:Merge Window? by Anonymous Coward · · Score: 4, Funny

      DId you seriously just manage to screw up correcting someone else?

    5. Re:Merge Window? by arkhan_jg · · Score: 3, Funny

      DId you deliberately screw up that correction of a correction? You did, didn't you.

      --
      Remember kids, it's all fun and games until someone commits wholesale galactic genocide.
    6. Re:Merge Window? by Dolda2000 · · Score: 2

      Did you deliberately screw up that correction of a correction of a correction? You did, didn't you?

  3. Still no orinoco monitor mode by Anonymous Coward · · Score: 2, Interesting

    The orinoco wireless drivers have supported monitor mode since 2004. Still not in the kernel today. Do any of the BSDs support monitor mode yet on this incredibly well documented chipset? I'll migrate if the answer's yes.

  4. Yeah tick less is fine stuff by emj · · Score: 4, Informative

    Reducing wakups on laptops is very interesting suff, I've seen some post on how muche better the NO_HZ is making things, e.g. Ross went from 164w/s to 5w/s just waking up 5 times per second makes the CPU pretty cool...

  5. Re:tickless kernel support? by MostAwesomeDude · · Score: 5, Informative

    Can anyone explain to me what "tickless kernel support" is? Sure. Basically, instead of having a regular tick in the kernel every handful of cycles to process interrupts and timers, processes are given long, dynamic timers with arbitrary lengths, which means that if an app wants to sleep for a relatively long period, it gets to sleep and not wake up the CPU, so the CPU sleeps longer and a lot of power is saved.
    --
    ~ C.
  6. more power save links by emj · · Score: 2, Informative

    I was going to post this on Thinkpad wiki on power consumpton, but sadly the page is not working atm..

  7. I am really grateful for this release by eclectro · · Score: 5, Funny

    The weekend is almost here, and I am looking for something to do. I want to argue about the scheduler.

    --
    Take the cheese to sickbay, the doctor should see it as soon as possible - B'Elanna Torres, "Learning Curve"
    1. Re:I am really grateful for this release by ajs318 · · Score: 4, Interesting

      Let us also digress into a micro-kernel vs monolith-kernel discussion.
      Oh, that's an easy one. With a microkernel, you put up fences where they look pretty. With a monolithic kernel and loadable modules, you put up fences where as little stuff as possible has to traverse them. Ting! Next, please.
      --
      Je fume. Tu fumes. Nous fûmes!
    2. Re:I am really grateful for this release by nagora · · Score: 3, Funny
      Arguments are down the hall.

      No they aren't!

      --
      "Encyclopedia" is to "Wikipedia" what "Library" is to "Some people at a bus stop"
    3. Re:I am really grateful for this release by 0xABADC0DA · · Score: 2, Interesting

      With a typesafe kernel like monotone or jxos everybody has a personal force field bubble around them that nothing crosses, and they just point at stuff outside their bubbles. Also, there are no laws because the force fields keep everybody perfectly safe all the time.

  8. Anti-Fragmentation? by kripkenstein · · Score: 4, Insightful
    The updates most interesting to me are the anti-fragmentation patches,

    Tests show that about 60-70% of physical memory can be allocated on a desktop after a few days uptime. In benchmarks and stress tests, it has been found that 80% of memory is available as contiguous blocks at the end of the test. To compare, a standard kernel was getting ~1% of memory as large pages on a desktop and about 8-12% of memory as large pages at the end of stress tests.
    Perhaps someone can clarify exactly what this means? Reading the beginning, it talked about 4K pages, device drivers, and such, so I assumed it would just be relevant to the internal workings of the kernel. However, the quote I pasted above seems to indicate it might impact desktop performance as well.

    I commonly see on my desktop, after several days uptime, that quite a lot of memory is being used (and I know how to ignore cache/buffers, as well as swapcache - that isn't the issue). Logging out and logging back in returns memory to reasonable levels (and the system becomes more responsive, but then I guess if I bought more memory I could accomplish that as well). Now, I've generally read that the problem was indeed memory fragmentation, e.g. here, but this would be internal fragmentation inside an app, and thus not relevant to the kernel, I believe? If someone can explain this issue I'd be grateful.
    1. Re:Anti-Fragmentation? by Anonymous Coward · · Score: 4, Informative

      He's talking about how the memory blocks allocated to user programs are actually laid out in physical memory. Think of it like this: if we have programs A, B, C, and D using memory (and F for free), before the physical memory may have been allocated something like this:
      AAFBBFABCFCDBACDDBAF (not contiguous)

      And now more like this:
      AABBBAFFFCCCCDDFFFFF (free memory is in large contiguous chunks)

      This is not something that userspace programs will notice directly, but it does affect performance of the machine. Keeping free space and other areas contiguous allows for better caching performance and faster access.

    2. Re: Anti-Fragmentation? by Dolda2000 · · Score: 2, Informative
      I'm not sure exactly how this works, so I can't go into all too nitty-gritty details, but basically, it's like this.

      x86 CPUs (and probably amd64 as well) allow the kernel to choose between two page sizes: The usual 4 kB ones and a much larger size (I think it's 1 MB or so). The performance issue is that if the kernel can keep the physical RAM pages that back a large contiguous virtual mapping contiguous in physical RAM, it can use one of the jumbo pages instead of potentially hundreds of 4 kB pages. Doing so saves both page table space by itself, but more importantly, it allows the CPU to cache the page table in much fewer TLB rows. If a 1 MB mapping can be cached in one TLB row, the CPU won't need to swap TLB entries back and forth from the physical page table. Even if the page table may be cached in the normal CPU memory cache, it would still result in far better bus performance.

  9. Re:Mirror list by TeknoHog · · Score: 2, Insightful

    Is there an active and/or "official" Bittorrent site for Linux kernels? The local mirrors take some time to update, so global torrents would make more sense. Besides, people who download kernel sources are usually the kind that appreciate the benefits of BT and know how to use it.

    --
    Escher was the first MC and Giger invented the HR department.
  10. Re:wireless drivers by Jack+Malmostoso · · Score: 2, Informative

    There you go:
    http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=tree;f=drivers/net/wireless;h=45adf0a95539e8a0ca5fddbb720319a9b7b39978;hb=HEAD
    If you want a suggestion on what to buy, support for Intel chipsets is very good. I have a 4965 device supported by iwlwifi and it works like a charm.

  11. Catching up to Windows on power by dpilot · · Score: 2, Interesting

    From everything I've heard, Linux is still only catching up to Windows in terms of power consumption. It's fun because we hear all of the details, and until someone builds some nifty package, we script all of the dial-tweaks ourselves. Part of the fun is knowing the dials and what they do, but I guess that's not fun for everyone, some want it to just work, and we're getting there. As long as I can still see the dials, understand them, and tweak them, good automated default power management is good, too.

    But from a methodology viewpoint, does anyone understand the road Windows has trod, and how they have gotten to where they are? For instance, things like the tickless kernel are pretty fundamental. Is the Windows kernel tickless, or how do they get their power down if it isn't?

    --
    The living have better things to do than to continue hating the dead.
    1. Re:Catching up to Windows on power by JasterBobaMereel · · Score: 2, Insightful

      What you do is you get the hardware manufacturers to write their device drivers to your specs so you can rely on devices going to sleep and waking up properly and reliably then you can write easily make the system consume very little power

      The you write the system so that it uses more memory than you have and so swaps to disk constantly so that it uses huge amounts of power when working and only saves any power when the whole system goes to sleep ....

      --
      Puteulanus fenestra mortis
    2. Re:Catching up to Windows on power by ThePhilips · · Score: 5, Interesting

      It is sad reality the people keep mixing up technology and products.

      Linux (as kernel and piece of technology) is far ahead of most OSs in power management and especially in power saving.

      But. Take fresh Windows XP installation - it would give you decent up-time from single battery charge. Take Mac OS X - it would give you excellent up-time from single battery charge. Now take Linux's distro with X.Org/GNOME/KDE/etc - and it would eat any battery in under two hours.

      It is possible to optimize Linux to be extremely power efficient, yet lion share of applications written for PCs simply fail on portables.

      From recent example. I'm reading lots of PDF ebooks - under Mac OS. Trick is to scroll document to the end and then go back to place were you stopped: Mac OS would cache the file and hard drive will not wake up for the whole time you read thru the PDF. Linux? - Ubuntu/Kubuntu/SUSE/YellowDog were tried - hard drive is always spinning. Always. Non-stop. I stopped even trying to investigate what keeps it spinning - just went back to Mac OS. Because battery lasts under Linux for about 2 hours - while Mac OS on the aging iBook easily does 6 hours. But honestly, even if battery charge set aside, the noise produced by constantly spinning hard drive me slowly crazy.

      Conclusion: excellent power management of kernel != end-user application are designed with power efficiency in mind.

      P.S. Most common offenders are X.Org with its ~/.xsession-errors (as if end-users cared about all the cruft in there - developers simply do not look there at all) and syslogd which periodically (by default every 20 minutes) write marker into logs.

      --
      All hope abandon ye who enter here.
    3. Re:Catching up to Windows on power by MostAwesomeDude · · Score: 2, Interesting

      Go grab laptop-mode-tools (I guarantee it's available for your distro) and a kernel newer than 2.6.10, and then enjoy. Among other things, your hard drive will only spin up once every 10 minutes at most if you're not requesting reads or writes. It's possible to beat Windows in battery usage very easily -- Windows can't do things like power down the USB buses if there's nothing connected or requesting power, or sleep the CPU for 99% of its ticks.

      --
      ~ C.
  12. Re:tickless kernel support? by Andy+Dodd · · Score: 2, Interesting

    There is another patch that adds high resolution timers to Linux. (Actually, another component of a gigantic patchset that has been rapidly getting mainlined over the past few kernel releases.)

    I think CONFIG_HRTIMERS is already an option (may not default to on though). If it isn't, go find the RT_PREEMPT patchset. That includes (or if HRTIMERS is in the kernel, included) HRTIMERS, it's also where the NO_HZ option came from.

    --
    retrorocket.o not found, launch anyway?
  13. Re:tickless kernel support? by Daimanta · · Score: 2, Funny

    Basically, it prevents the computer from being ticked off thus preventing a hostile robot takeover.

    --
    Knowledge is power. Knowledge shared is power lost.
  14. eCryptfs persistent files by omnirealm · · Score: 3, Informative

    In 2.6.24, eCryptfs overhauled its I/O mechanism with the lower filesystem (check out fs/ecryptfs/read_write.c). It used to directly manipulate the lower inode address mappings, which caused problems with certain filesystems like NFS (they like to be the only filesystems directly locking, reading, and writing their own address mappings). Now it opens a persistent lower file for each and every stacked inode and uses that for all I/O with the lower filesystem. This significantly decreases the complexity of the execution path for reading and writing the lower data. Together with this patch, eCryptfs now works pretty well on networked filesystems like NFS and CIFS.

    There is another patch to provide HMAC integrity enforcement, and the kernel GIT tree for eCryptfs has a branch indicating that filename encryption is being worked on.

    --
    An unjust law is no law at all. - St. Augustine
  15. Re:more power save links by Nukenbar · · Score: 2, Funny

    A lot of links don't work 'at the moment' when you post them on Slashdot!

  16. working great here... by FudRucker · · Score: 2, Informative

    i build as much as possible the only required support for my hardware specifics as modules except for ext3 filesystem support (built in to the kernel itself) thus making an initrd unnecessary, my kernel is nice & light, highly responsive and boots in just about 10 seconds, and the kernel is only 1.1 megs in size & /lib/modules/2.6.24 is 11 megs...

    --
    Politics is Treachery, Religion is Brainwashing
  17. Re:Next "stable" release? by Randle_Revar · · Score: 2, Informative

    I haven't seen stability problems in 2.6 for a long time. Lately I have been using the 2.6.24 (pre-release) kernel from Ubuntu Hardy (I'm on Debian Sid), and I haven't had any trouble with the kernel. X.org and Mozilla nightly problems, sure. But no kernel problems.