Announcement

Collapse
No announcement yet.

Picking up the disk scheduler?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Picking up the disk scheduler?

    I've been running some disk and filesystem suite benchmarks on openSUSE 11.2 RC2 and uploading the results to Phoronix Global. In browsing them, I see that the software (2.0) is capable of discovering which filesystem is in use. I'm running scheduler tests too, and it would be nice if the suite could pick that up automatically too. Here's some bash code to do it:

    export SCHED=`sed 's/^.*\[//' /sys/block/sda/queue/scheduler | sed 's/\].*
    $//'`

  • #2
    Hi znmeb,

    The support can be added so that when a disk test is run, it will report the scheduler to the "Notes" area of the results viewer. I may be able to squeeze this feature in before the 2.2 release.
    Michael Larabel
    https://www.michaellarabel.com/

    Comment


    • #3


      - pts-core: Report the disk scheduler to the test notes area when a disk test is run
      - phodevi: Add property to disk object for reading the scheduler in use
      Is in 2.2 Yields:

      Michael Larabel
      https://www.michaellarabel.com/

      Comment


      • #4
        Disk scheduler

        Looks good! One note: you can set the scheduler independently at run time for each block device! So you might want a table - I just used "sda" because that's the only active disk I'm testing.

        Comment


        • #5
          Ubuntu defaults to CFQ too?

          Originally posted by znmeb View Post
          Looks good! One note: you can set the scheduler independently at run time for each block device! So you might want a table - I just used "sda" because that's the only active disk I'm testing.
          Oh ... Ubuntu defaults to CFQ too? openSUSE does, and I normally run tests and set it at boot time. The last few tests I ran (openSUSE 11.2 Milestone 8) showed "deadline" was the winner on iozone (upstream, not yours). Once I get the filesystem runs done, I'm rerunning the scheduler tests for the winner. ;-)

          At boot time, add "elevator=xxx" to the kernel line, where "xxx" is "cfq", "noon", "anticipatory" or "deadline". At run time, do as root:

          echo xxx > /sys/block/sda/queue/scheduler

          Comment


          • #6
            cfq is a good choice for most people, so they use it. I had some horrible experiences with deadline.

            And with horrible I mean coasters when trying to burn dvds etc. Really, really bad. cfq on the other hand never let me down. I do not care that some benchmark might be running better somewhere somehow.

            Comment

            Working...
            X