Slashdot Mirror


The New Linux Speed Trick

Brainsur quotes a story saying " Linux kernel 2.6 introduces improved IO scheduling that can increase speed -- "sometimes by 1,000 percent or more, [more] often by 2x" -- for standard desktop workloads, and by as much as 15 percent on many database workloads, according to Andrew Morton of Open Source Development Labs. This increased speed is accomplished by minimizing the disk head movement during concurrent reads. "

15 of 426 comments (clear)

  1. I've noticed it... by Anonymous Coward · · Score: 5, Interesting

    I'm having trouble getting ACPI working in my laptop in the 2.6 kernel (it's a bad implementation on the part of my laptop). The 2.4 series used to work (sometimes) so I installed Mandrake's 2.4 kernel and 2.6 kernels on my laptop. Using 2.4.x again was like switching to a horse and buggy from a sport-cars; KDE was that much faster with the 2.6.x kernel running the show.

  2. Cache? by Anonymous Coward · · Score: 4, Interesting

    Whatever happened to cache. If you can anticipate the head movement surely you have already read the data before and it should be in the cache????

  3. SCSI by Zo0ok · · Score: 4, Interesting

    Dont SCSI drives do this themselves?

  4. Why not combine those two methods? by maxwell+demon · · Score: 4, Interesting

    Is there any reason why the prediction code (anticipatory scheduler) and the extra queues (deadline scheduler) couldn't be combined in a single scheduler to give us the best of both worlds?

    --
    The Tao of math: The numbers you can count are not the real numbers.
  5. Amiga Disks by tonywestonuk · · Score: 5, Interesting


    When I had an Amiga (aroung '91ish), even though It was fully multitasking, I learnt to never open any app while another was loading. If you did, you could hear the disk head moving back and forward between two sectors on disk every half second or so, slowing both app launches to a crawl. Waiting until one loaded, and launching the second was many times faster.

    I've always wondered why there wasn't something in the OS to force this behaviour, Ie, making sure that App 2 access to the disk is queued until app 1 has finished. Isn't this one of the reasons Windows takes ages to boot? (many processes all competing for the one disk resource?).

    1. Re:Amiga Disks by MrFreshly · · Score: 3, Interesting

      I think windows loads slow because of all the damn spyware and un-necessary default drivers and services and IE preloading...etc...

      IMHO Default windows config is kinda like a Redhat with everything and then some.

      Start in safe mode and watch all the crap that tries to load - a ton of it is not needed.

      If you tighten your install by removing a lot of the extra services, spyware, and a few performance tweaks - you'll see a major speed increase over all.

      I use XP, but I don't like it much anymore...It's stable, but I'm really looking forward to a better desktop for Fedora and the new Core 2 release.

    2. Re:Amiga Disks by LWATCDR · · Score: 3, Interesting

      Actually even early versions of Novell used a system called elevator seeking. The system worked like an elevator the head moved in one direction of util it hit the lowest track/sector in the que then it changed direction. Not nearly a slick as the new system but a big improvment over a first come first serve system. Now that we have so much more memory and cpu power Linux and other OS can use more complex systems

      --
      See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
  6. Disk Transfer QoS by johnhennessy · · Score: 4, Interesting

    I think Solaris 10 (or maybe a later version, I can't remember) is suppose to support a concept of Quality of Service applied to disk accesses.

    Is anyone in the Linux world considering this ?

    This is probably more applicable to the enterprise market, but surely any scheme of informing the scheduler about the expected disk transfer characteristics has to improve performance.

    On the other hand, it might be just Sun trying to re-invent uses of buzz words to sell their products.

    --
    [ Monday is a terrible way to spend one seventh of your life. ]
  7. Re:Anti-MS Patent by Tribbin · · Score: 3, Interesting

    Stealing what? The algorithms?

    The end-(Windows)-user benefits from it.

    That's the price of freedom.

    And any additions MS makes to the code must be made public.

    So then everybody benefits.

    --
    If you mod this up, your slashdot background will turn into a beautiful sunset!
  8. Oh, come on... by mdb31 · · Score: 4, Interesting
    ...to achieve the O(1) timing, quite a leap forward that we had not even thought of!

    The NT scheduler has been O(1) like, eh, forever.

    Our kernel produces far superior performance due to providing hooks for the COM layer

    Yeah, whatever. There is no COM anywhere near the NT kernel, and the latest and greatest from Microsoft, the .NET framework, isn't even based on COM anymore

    Nice troll...

  9. Re:Anti-MS Patent by mydigitalself · · Score: 3, Interesting

    no: stealing the concept (probably by analysing the code) and writing it themselves.

    so if MS make any improvements in their own implementation of the concept, then the code would not be made public and MS benefits and not everyone else.

    to elaborate (and in some ways i believe this is what SCO are arguing), lets say i see an open source application that does something neat. it probably won't be patented because the author expects someone to contribute any modifications back. but lets so i don't because i'm a greedy commercial corporate and so i effectively copy the IDEAS behind the application. my code may look quite similar to theirs, but i certaintly have not infringed on the GPL (or have I - i'm no lawyer!).

    so if this neat application had an "open source patent" in that anyone infringing on the patent would not be liable for millions, but rather they would be liable and forced to open up the source code of their particular implementation.

  10. Databases and reliable commits by hughk · · Score: 3, Interesting
    One of the big things about databases is the reliable commit where all the crud you have done in a transaction either gets committed or backed out. The writes then become kind of important, and you really do want them to complete before continuing with anything else.

    This messing with the I/O queue may make things interesting for the journalling process which is kind of vital to integrity. File placement could become even more important for this (and also the placing of journal/log files).

    The rest seems to just effectively be a modified elevator (wait a bit before moving).

    --
    See my journal, I write things there
  11. Re:Preemptive and Defragged? by Doctor+Crumb · · Score: 3, Interesting

    Firstly, the 2.6 kernel allows pre-emptive scheduling. Supposedly it was introduced because Linus got tired of his mp3s skipping while he compiled things.

    Second, Linux doesn't need a defrag utility. Linux filesystems (Ext2 and Ext3) allocate files properly, using clustering and inodes. The need to defrag comes from the bad design of FAT, which works great on a 8088 processor with tiny files on a 1Meg drive, but is terribly inefficient on anything past a 386.

    Of course, there does exist a 'defrag' utility for linux. It just won't gain you much at all.

  12. Re:Anti-MS Patent by TheNetAvenger · · Score: 4, Interesting

    ok, i know this is evil and all - but lets say MS decide to implement this as a concept (so without "stealing" code)... the linux community will have given them something and received (probably) nothing in return.

    Not to burst your bubble, but the NT scheduler already implements predictive disk I/O concepts.

    Nice that Linux is finally catching up though...

  13. The Renaissance by EXTomar · · Score: 3, Interesting

    And we all would have benifited from this if they simply shared in the first place instead of spending 20-30 years "rediscovering" it.

    One programmer likened the 70-80s as The Dark Ages. There were cabals and secret voodoo that people sat on and didn't share and you ended up with an ignorant masses that only thought "this is as good as it gets". Hopefully this renaissance sticks because it doesn't matter how good or cool your technology is if you bury it for 20 years without another person knowing.