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."

108 comments

  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. HOT COMMENT by Anonymous Coward · · Score: 0, Funny

    Look on the bright side, a buggy Linux is still better than NT.

  3. 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 WarJolt · · Score: 1

      *New builtin* The entire linux team was traveling to a conferance after releasing their final kernel. The pilot were recorded screaming "AHHHH BLUE SCREEN OF DEATH" Followed by an explosion of the right engine. The plane fell out of the sky moments later.

    4. Re:Merge Window? by Anonymous Coward · · Score: 1, Funny

      Do they have wireless internet access on Mount Everest ? Its a well known prophecy that Linus can not die, till the dark lord reigns, so all he needs is internet. He'll be on a programming high I guess.

    5. 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
    6. Re:Merge Window? by Anonymous Coward · · Score: 0
      I'm just wondering, should a core group be traveling together?

      Not to ruin everyone's "OMG teh Steve Ballmer will throw a chair at teh plane!" witticisms, but they're converging on Australia from their homes, not all sitting in the same cabin eating ziti and watching Everyone Loves Raymond.

    7. Re:Merge Window? by Anonymous Coward · · Score: 4, Funny

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

    8. Re:Merge Window? by mabinogi · · Score: 1

      No, it's a new built-in feature in 2.6.24

      --
      Advanced users are users too!
    9. 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.
    10. Re:Merge Window? by clem · · Score: 1

      This is just the kind of discussion that would be greatly enhanced if only there were a means of flinging poo over the Internet.

      --
      Your courageous and selfless spelling corrections have made me a better person.
    11. Re:Merge Window? by twilight00 · · Score: 0, Redundant

      Your under arrest for ending this skit with a deliberate mistake.

    12. Re:Merge Window? by Anonymous Coward · · Score: 0

      You did, didn't you?
    13. Re:Merge Window? by WarJolt · · Score: 1

      Too much late night slashdotting.

    14. Re:Merge Window? by ptudor · · Score: 1

      Awesome.

    15. 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?

  4. carbon bootprint by DrSkwid · · Score: 0

    keep up the good work !

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  5. 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.

    1. Re:Still no orinoco monitor mode by Creepy+Crawler · · Score: 1

      ---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.

      Good point. Would anybody more enlightened than I explain why the good orinoco drivers arent accepted in the kernel?

      Evidently asking questions like this is flamebait... but why is this so WRT the kernel?

      --
    2. Re:Still no orinoco monitor mode by MostAwesomeDude · · Score: 1

      What I would like to know, personally, is why the aircrack-ng patches for injection (http://patches.aircrack-ng.org/) are still out-of-tree.

      --
      ~ C.
    3. Re:Still no orinoco monitor mode by Creepy+Crawler · · Score: 1

      I can see why with aircrack...

      Look at their release dates and patch revisions... none current. Kernel guys like seeing constant and timely patches. Community members who slack off are considered bad and all..

      But I guess the wireless guys dont like these addons... Good for them, bad for us.

      --
    4. Re:Still no orinoco monitor mode by Xabraxas · · Score: 1

      What I would like to know, personally, is why the aircrack-ng patches for injection (http://patches.aircrack-ng.org/) are still out-of-tree.

      As far as I know the new mac80211 wireless framework supports injection for any driver that uses it. You need to be running a beta version of aircrack-ng to take advantage of it though.

      --
      Time makes more converts than reason
  6. tickless kernel support? by Mr2cents · · Score: 1

    Can anyone explain to me what "tickless kernel support" is?

    --
    "It's too bad that stupidity isn't painful." - Anton LaVey
    1. 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.
    2. Re:tickless kernel support? by JohnFluxx · · Score: 1

      Does this also mean that an app can also sleep for a very short period? Normally a sleep function is limited by the granularity of the kernel ticks. Will this make sleeping for, say, 1ms more accurate and reliable?

    3. 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?
    4. 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.
  7. 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...

  8. Mirror list by Anonymous Coward · · Score: 0

    Perhaps a mirror list would be appropriate: http://www.kernel.org/mirrors/

    1. 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.
    2. Re:Mirror list by arunkv · · Score: 1

      There's a torrent up on Mininova - http://www.mininova.org/tor/1128409

  9. 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..

  10. Yay! by Tribbin · · Score: 1

    It's always a nice read in the morning, that you don't need module-assistant anymore.

    (rt61 Wireless)

    --
    If you mod this up, your slashdot background will turn into a beautiful sunset!
  11. ms hit-job? by Anonymous Coward · · Score: 0

    all those developers in one place....

  12. Bang up job by Smordnys+s'regrepsA · · Score: 1

    Don't worry, I'm sure their rocket-launcher's computer's tracking interface will freeze up just moments before they press the fire button, so they'll have to fire it by visuals. Then, it will tragically fire 5 minutes later, while they're bashing the thing against the ground trying to get it to Just Work.

    --
    Just -1, Troll talking to another.
  13. 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 mightyQuin · · Score: 1

      You just made my morning!
      Let us also digress into a micro-kernel vs monolith-kernel discussion.

      --
      Now, if you'll excuse me, I've got some idea balls to remove from a manatee tank.
    2. Re:I am really grateful for this release by phobos13013 · · Score: 1

      would you believe i JUST upgraded to 2.6.23-r3 on Tuesday? I'm a kernel holdout, but hey, at least its better than the people who have been holding out to upgrade from 2.4.xx!!! Yea, the only reason I had to upgrade too was frickin gentoo dependency, I think because of KDE-base, whatever....

      --
      ...and it should be known by now
    3. 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!
    4. Re:I am really grateful for this release by laejoh · · Score: 0

      I'm sorry, this is the abuse department. The argument department is next door!

      Git!

    5. Re:I am really grateful for this release by mac1235 · · Score: 1

      Oh no, this abuse. Arguments are down the hall.

    6. 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"
    7. Re:I am really grateful for this release by cbart387 · · Score: 1

      Don't forget to compare the amount of _stable_ releases of Linux kernels (anyone have a number?) versus the GNU Hurd (zero). Didn't HURD development start almost a decade before Linus started on his work?

      --
      Lack of planning on your part does not constitute an emergency on mine.
    8. 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.

    9. Re:I am really grateful for this release by JackieBrown · · Score: 1

      You should have just skipped to the stable one then instead of using an outdated rc.

    10. Re:I am really grateful for this release by dbIII · · Score: 1
      It was really about "we are a small team and we will do it all but you can join us if you can prove you are truly uber" to the linux "send patches and I'll use them if they look good". I just never got to feel like one of the hurd.

      The timing really meant that a lot of people thought they would not be welcome adding to the hurd by the time they got fast net access while linux was still new and welcoming.

  14. 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 pmontra · · Score: 1

      I googled a little and found this article http://lwn.net/Articles/211505/. I'm not sure that this is all of the story, but it should be a good starting point for further investigations.

    2. 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.

    3. Re:Anti-Fragmentation? by cbart387 · · Score: 1

      It sounds like it's talking about memory management for external fragmentation. Here is an article that looks like it is talking about those patches. Here is a site that seems to explain memory management pretty well. I could try explaining stuff myself but I'd probably miss some of the nuances (I'm no OS expert by any stretch).

      --
      Lack of planning on your part does not constitute an emergency on mine.
    4. Re:Anti-Fragmentation? by Anonymous Coward · · Score: 0

      Keeping free space and other areas contiguous allows for better caching performance and faster access.


      This makes no sense. Your average cache line is tiny compared to a memory page. Additionally pages are aligned, meaning that they are already "optimized" for the L1 & L2 caches.
    5. Re:Anti-Fragmentation? by justthinkit · · Score: 1

      I am curious if any versions of Windows provide this feature. If not then chock one up for Linux...

      --
      I come here for the love
    6. Re:Anti-Fragmentation? by Hatta · · Score: 1

      Why is memory fragmentation a problem? It's not like your RAM has to move a physical head to read non-contiguous blocks.

      --
      Give me Classic Slashdot or give me death!
    7. Re:Anti-Fragmentation? by Anonymous Coward · · Score: 0

      It can effect the CPU cache. It is easier for things to fit in the cache if things are packed closer together, and the cache is about 100 times faster than RAM.

      Reducing fragmentation also means that less RAM will be wasted. You could have problems if you try to allocate a megabyte sized block and all the RAM has been broken into kilobyte sized chunks.

    8. Re:Anti-Fragmentation? by Azarael · · Score: 1

      After your system has been up for a while, the list of 'free memory' updated by malloc() and free() gets fairly fragmented into odd sizes, that are spread out (especially if you aren't allocating in sizes near powers of 2). The more fragmented this list gets, the longer it takes for malloc to locate a block of memory that fits the size that you want. If I understand correctly, this change should make it possible to keep the free list more organized.

    9. Re:Anti-Fragmentation? by X0563511 · · Score: 1

      It does make sense. When your ram passes a row to the CPU caches, it's nice when most of that row is related somehow. The large blocks of free space help ensure that A/B/C/D/E don't get all mixed up next to each other.

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    10. Re:Anti-Fragmentation? by X0563511 · · Score: 1

      Correct, but unlike your hard drive, RAM is fetched into cache for processing in "rows", and there is only room for so many rows. The more related stuff is together in RAM, the less "swapping" rows in/out of cache occurs. With multicore systems, this is even more important, as processors must synchronize to be sure they don't manipulate data cached by the other core... further dragging things down as more RAM access occurs.

      Just like the hard drive is orders-of-magnitude slower than RAM, RAM is orders-of-magnitude slower than cache, is only read/writable 20% of the time or so (refreshing, row/column selecting, etc)

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    11. Re:Anti-Fragmentation? by spitzak · · Score: 1

      malloc allocates pieces of the processes virtual address space to the program. All this fragmentation disappears when the program exits, so this is not exactly a problem with "the system being up for awhile". However similar problems exist in the kernel memory allocation and those problems do persist until the system is rebooted.

      As far as malloc goes, I don't believe fragmentation really slows it down, it has algorithims for immediately identifying a block of sufficient size, and does not do a search. It may slow down freeing slightly. The real problem is that all the useful items end up spread over a much larger amount of virtual memory and thus uses a lot more of it. This means more swapping (further made painful as lots of those swapped pages are partially filled with pieces of free blocks), and it also means malloc may fail to allocate something because no free block is big enough and your program will crash. And it means inefficiency in loading stuff into cache memory.

      The system has some advantage that the use of VM means that (in most cases) it does not need to fit an allocation request in one hole because it can split it up into seperate pages (exceptions are where hardware actually requires contiguous real memory addresses). Also it only works with pages so if swapping happens it does not waste time reading/writing the data in the holes. But as many pointed out, if the memory is not contiguous then it does not load into caches efficiently, as the modern caches are far larger than the pages.

    12. Re:Anti-Fragmentation? by kelnos · · Score: 1

      Modern CPU cache lines are typically on the order of tens or hundreds of bytes. Yes, bytes. Not kilobytes. Memory fragmentation doesn't really affect CPU caching. Fragmentation does, however, affect allocation/deallocation performance as well as application memory access speed.

      --
      Xfce: Lighter than some, heavier than others. Just right.
    13. 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.

  15. wireless drivers by oliverthered · · Score: 1

    Could someone provide a quick summary of the wireless drivers that are now in the kernel as I don't know the chipset names for them and one of the sites appears to be /.ed.

    --
    thank God the internet isn't a human right.
    1. 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.

    2. Re:wireless drivers by schon · · Score: 1

      If you want a suggestion on what to buy, support for Intel chipsets is very good. Unfortunately, unless you're an electronics engineer, purchasing a chipset doesn't do you very much good unless it's already on a card, and card manufacturers don't advertise which chipset is on a specific card (in fact, chipsets in many of the cheap cards get changed with other ones from batch to batch - I guess the cardboard boxes are more expensive to change than the electronics on the card.)

      I'd love to get a wireless card with an intel chipset, but try finding a card that says they use them.
    3. Re:wireless drivers by Anonymous Coward · · Score: 0

      From Google cache (of http://kernelnewbies.org/Linux_2_6_24): ...
        In Linux 2.6.22, the mac80211 (formerly d80211) wireless stack was
            merged, but not many drivers that use this new stack have been merged
            (only one). Linux 2.6.24 will have a lot of new wireless drivers using
            the new stack; 2.3 MB of source files in total:
                * iwlwifi driver for the Intel PRO/Wireless 3945ABG/BG Network
                    Connection and Intel Wireless Wifi Link AGN (4965) adapters
                    (commit)
                * rt2x00 driver for Ralink wireless hardware (rt2400 pci/pcmcia,
                    rt2500 pci/pcmcia, rt61 pci/pcmcia, rt2500 usb, rt73 usb). Check
                    the hardware matrix (commit)
                * adm8211 driver for the ADMtek ADM8211x based wireless cards. These
                    are PCI/mini-PCI/Cardbus 802.11b chips found in cards such as:
                    Xterasys Cardbus XN-2411b, Blitz Netwave Point PC, Trendnet 221pc,
                    Belkin F5d6001, SMC 2635W, Linksys WPC11 v1, Fiberline FL-WL-200X,
                    3com Office Connect (3CRSHPW796), Corega WLPCIB-11, SMC 2602W V2
                    EU, D-Link DWL-520 Revision C (commit)
                * b43 driver for modern BCM43xx devices. This driver supports the
                    new BCM43xx IEEE 802.11G devices, but not the old IEEE 802.11B
                    devices - those are supported by the b43legacy driver. This driver
                  uses V4 firmware, which must be installed separately using
                    b43-fwcutter (commit)
                * b43legacy driver for legacy BCM43xx devices from Broadcom (BCM4301
                    and BCM4303) and early model 802.11g chips (BCM4306 Ver. 2) used
                    in the Linksys WPC54G V1 PCMCIA devices. Newer 802.11g and 802.11a
                    devices need the b43 driver. This driver uses V3 firmware, which
                    must be installed separately using b43-fwcutter (commit)
                * p54 driver for prism54 softmac pci/usb hardware (commit)
                * Driver for Marvell Libertas 8385 Compactflash 802.11b/g cards
                    (commit)
                * Libertas sdio driver (commit)

            There're also a lot of network (non-wireless) drivers being merged,
            look at the section 2.14, "new drivers" ...

    4. Re:wireless drivers by Enleth · · Score: 1

      In the case of a laptop, that's easy. Intel makes the whole MiniPCI card and markets it with their brand. With a desktop, you can either try to find a working PCI card, or just... Well, buy a MiniPCI->PCI converter for $10 or so and you're done. That's what I did.

      --
      This is Slashdot. Common sense is futile. You will be modded down.
    5. Re:wireless drivers by leoxx · · Score: 1

      Does the 4965 driver support LEAP yet?

  16. 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 Andy+Dodd · · Score: 1

      Windows power management used to SUCK in early versions of XP. XP's support for SpeedStep on Pentium 4-M CPUs was abysmal, for example. The Windows 2000 SpeedStep app from Intel (which didn't work in XP) was lightyears ahead of what XP had built in. Back in 2001-2002, Linux could easily blow away a Windows machine in terms of power consumption. Since then XP has improved due to lots and lots of "behind the scenes" tweaks, and to some degree, hardware manufacturer cooperation.

      For example, one of the few things the Linux NVidia drivers still don't support well is power management. (ATI isn't any better in this regard though.)

      --
      retrorocket.o not found, launch anyway?
    3. Re:Catching up to Windows on power by Anonymous Coward · · Score: 1, Insightful

      Then you probably heard wrong. You might be confusing it with ACPI support - a standard which Windows does not implement correctly, which Microsoft give away defective tools for implementing (resulting in defective support for ACPI on many machines, particularly laptops), and which manufacturers support by testing against Windows only. It works in Windows only because hardware manufacturers make it work in Windows, but tends not to work so well in Linux.

      In all other respects, Linux is way ahead on power consumption. Things like a tickless kernel, or tools like PowerTOP simply don't exist on Windows. If you have a laptop that's well supported under Linux, it'll tend to last a lot longer than it does under Windows.

      Comparing to Mac OS X is a different matter entirely.

    4. Re:Catching up to Windows on power by darkwhite · · Score: 1

      The original poster heard right, and you're spreading misinformation. Windows XP is way better at conserving battery power than Linux. Tools like powertop and tickless have been enabling great improvements in power consumption but it's still nowhere near that of XP.

      --

      [an error occurred while processing this directive]
    5. 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.
    6. Re:Catching up to Windows on power by sentientbrendan · · Score: 1

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

      I doubt this is true. Do you know for a fact, for instance, that none of the other two major operating systems don't already have dynamic ticks? How many people on slashdot are familiar with the windows kernel? You don't have to work at microsoft to get these architectural details (windows architecture is detailed in a number of books, and university students often have access to windows source), but it is somewhat esoteric knowledge. Linux is the only operating system where kernel changes are highly public.

      I've observed that people tend to assume that when something comes out for whatever platform that they have, it must have just been invented for their platform. In reality, people tend to reinvent the wheel a lot, and not that much real innovation occurs in operating systems. Innovation looks like it occurs, because any given operating system is missing features present in some other operating system and they only slowly converge.

      Apple in particular tends to borrow architectural features from other operating systems, and their primary innovation tends to be how their plug everything together and package it up just right. Often they simply port existing software and keep interfaces intact. OSX has API's ported straight from macintosh, unix, and even windows (they have some minimal COM support).

      Both the Linux community and Microsoft on the other hand have an enormous case of Not Invented Here, and tend to take the basic idea of some existing feature, and reimplement it in an incompatible way.

      Microsoft is a fan of writing big frameworks that tightly integrate with other Microsoft technologies. This is real nice if you only ever want your software to run on windows, but those same frameworks tend to be so large that it complicates porting both software that runs on the framework and the framework itself.

      The Linux community on the other hand likes to develop a number of incompatible frameworks that do the same thing simultaneously (e.g. sound frameworks that fight for control of the sound card). People tend to ignore standards both from other operating systems and from within linux, as everyone has their own idea what the ideal Linux should behave like. I'm not the first person to observe that Linux would benefit massively from a single good system architect to coordinate and discipline the effort at a high level. Someone like Linus, but responsible for the whole stack instead of just the kernel.

    7. 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.
    8. Re:Catching up to Windows on power by Ant+P. · · Score: 1

      The xsession-errors file is doubly useless in that it deletes itself when X exits.

      The real worst offender would have to be Konqueror though, which calls sync() Every. Time. It. Uses. The. Cache.
      For example, opening a html file in it containing just the line "<meta http-equiv="Refresh" content="0">" will keep your hard disk light perpetually lit.

  17. tuxonice? by Lord+Kano · · Score: 1

    Does anyone have an idea when tuxonice will be re-merged? I know that most of the heavy lifting is done is userspace, but it would be nice if we didn't have constantly track down patches.

    LK

    --
    "Hi. This is my friend, Jack Shit, and you don't know him." - Lord Kano
  18. Tickless kernel now supports high res timers by Anonymous Coward · · Score: 1, Informative

    In previous non-realtime Linux kernels the calls to nanosleep() or usleep() that were less than one tick (10 milliseconds) were rounded up to 10 milliseconds. This can be very frustrating when writing embedded software that needs responsive timers. Now the resoultion is down into the microsecond range with current CPUs and will scale down even further with faster CPUs.

  19. Next "stable" release? by Spazmania · · Score: 0, Flamebait

    When is the next "stable" release, a la 2.6.16? I got fed up with the earlier 2.6 kernels and have been sticking with 2.6.16 until there is another release in which the devs make another serious attempt at stability.

    --
    Moderating "-1, Disagree" is simple censorship. Have the guts to post your opinion.
    1. Re:Next "stable" release? by Hatta · · Score: 1

      It would be nice if you described the problems you've had with recent kernels. I haven't noticed any instability.

      --
      Give me Classic Slashdot or give me death!
    2. 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.

    3. Re:Next "stable" release? by WK2 · · Score: 1

      That partly depends on what you want to do. I'm just a regular guy, and the kernels in Debian Stable and Debian Testing work for me. I don't know what to say if you're trying to write a device driver or something. But one of the things that distros are for is a stable Linux kernel.

      --
      Write your own Choose Your Own Adventure. http://www.freegameengines.org/gamebook-engine/
    4. Re:Next "stable" release? by Spazmania · · Score: 1

      Random kernel lockups with a 9-way IDE software RAID on a 1.2ghz Athlon under 2.6.17 and 2.6.18 is the first thing that jumps to mind. Massive interrupt error counts when using more than one channel on Promise IDE controllers on the same.

      I haven't tried it on 2.6.>20 and I don't plan to until someone does like was done with 2.6.16 and declares a stable version that will continue to receive bug fixes but not destabilizing new features.

      I understand that there are some folks who find it immensely entertaining to try out the latest, greatest kernel but I'm not one of them. I have better things to do with my time.

      --
      Moderating "-1, Disagree" is simple censorship. Have the guts to post your opinion.
    5. Re:Next "stable" release? by Spazmania · · Score: 1

      Which is just a swell theory until you realize that most distros (I'm lookin' at you, Red Hat) do a lousy job of stabilizing the kernel for release. Even with one that does it well (debian) its still unhelpful if you happen to need to run several distros and several versions of each (as is not uncommon in larger deployments) and would like a single kernel that's reliable on all of them.

      --
      Moderating "-1, Disagree" is simple censorship. Have the guts to post your opinion.
  20. 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
  21. 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!

  22. Video drivers by Anonymous Coward · · Score: 0

    This seems like fine news item to ask this in: the X windowing system is a user space system, right? How does it then communicate with video hardware directly (x drivers)? Or are the video drivers part of the kernel?

    1. Re:Video drivers by tamyrlin · · Score: 1

      X usually opens /dev/mem and used mmap() on it to be able to read and write to the appropriate place. If you use a card with DRI support in Linux you will have some kernel support as well.

      (Unless you use vesafb or some similar video driver.)

  23. does Debian/Ubuntu make upgrading easy too? by Anonymous Coward · · Score: 0

    I've been a Slackware user since 1994 and have recently switched to Ubuntu. I don't think I'll go back to Slackware; as much as using it has taught me everything I know about Linux, I'm just sick of manually doing everything. I love how easy it is to install software in Ubuntu (technically it's a Debian feature, yes?) compared to how I had to do it in Slackware.

    Is there anything in my Ubuntu installation I don't know about that makes upgrading and installing the kernel without problems easy? It's not that I can't do it manually -- it's just that I expect convenience now; I think I earned it.

    1. Re:does Debian/Ubuntu make upgrading easy too? by Randle_Revar · · Score: 1

      You mean outside of waiting for an official package?
      There is a package called kernel-package that makes thing a little easier and produces a .deb that you can install with "dpkg -i"

      http://myrddin.org/howto/debian-kernel-recompiling/
      http://www.debian.org/releases/stable/i386/ch08s06.html.en

      or http://www.google.com/search?hl=en&safe=off&q=kernel+debian+way

  24. 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
  25. & now back to our regularly scheduled programm by RLiegh · · Score: 1

    OMG teh Steve Ballmer will throw a chair at teh plane!

  26. Re:more power save links by abbe · · Score: 1

    That is due to their being posted on Slashdot. Heard of Slashdot effect, hmm...

    --
    404 Not Found
  27. rt61 drivers by Anonymous Coward · · Score: 0

    wireless rt61 drivers (now rt61pci.ko) are now in the kernel options, fixing what was broken from my previous kernels 2.2* and the cvs drivers from serialmonkey