Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Enable noop scheduler by default for an SSD

  1. #11
    Join Date
    Nov 2007
    Location
    República de Tejas,Centro
    Beans
    232
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Enable noop scheduler by default for an SSD

    This might make you rethink using "noop"... the other good ssd option is "deadline".

    noop vs deadline


    My Mushkin 40GB SSD in my Lenovo netbook with "EXT4, noatime, discard and /tmp mounted to tmpfs" gives me:

    Using "deadline" -
    buffered 548MB in 3.01 = 182.71 MB/sec
    cached 1518MB in 2.00 = 759.52 MB/sec

    Using "noop" -
    buffered 552MB in 3.01 = 183.14 MB/sec
    cached 1492MB in 2.00 = 746.73 MB/sec

    Not much of a difference either way. A <1MB buffered adv to noop and 13MB cached adv to deadline. What does a netbook do more of "buffered" or "cached" reading? Not sure I really know the diff. So for now I'm leaving it on deadline which is what it's been since the install of the SSD.


    I'll be replacing my SATA-I 74GB 10K WD boot drive next week with an OCZ Vertex 2 64MB so I'll have to run these on that and see the diff.
    Last edited by Skip Da Shu; January 26th, 2011 at 02:19 AM. Reason: added benchmarks
    - da shu @ HeliOS,
    "A child's exposure to technology should never be predicated on an ability to afford it."

  2. #12
    Join Date
    Oct 2007
    Beans
    24

    Re: Enable noop scheduler by default for an SSD

    *A little test and review of the OCZ AGILITY 3 120GO.*

    I've run several tests on the SSD and excuted them at least five times, the ones that I put here are the ones
    that represent the most the average speed of the SSD.

    On some tests I added the max speed reach just as an indication,
    I didn't do it for the min values because I was writing stuff, having firefox open and so on.
    And as soon as my text editor tool auto saved my work the tests speed easily fell down by 50-100MB/s

    The drive is connected to an EliteBook 8560w using SATA III.

    ## Simple read test
    $ hdparm -t /dev/sda
    /dev/sda:
    Timing buffered disk reads: 1554 MB in 3.00 seconds = 517.47 MB/sec
    ---------------------------------------------------------------------

    ## Simple read test on disk and buffer test.
    $ hdparm -Tt /dev/sda
    /dev/sda:
    Timing cached reads: 16070 MB in 2.00 seconds = 8046.52 MB/sec (Buffer speed)
    Timing buffered disk reads: 1560 MB in 3.00 seconds = 519.52 MB/sec
    ---------------------------------------------------------------------

    ## Here I wrote a 8.6GB file to the SSD.
    $ dd if=/dev/zero of=tempfile bs=2M count=4096
    4096+0 records in
    4096+0 records out
    8589934592 bytes (8.6 GB) copied, 13.3059 s, 646 MB/s (Max was 720MB/s)
    ---------------------------------------------------------------------

    ## Here I read the file created just above.
    $ dd if=tempfile of=/dev/null bs=2M count=4096
    4096+0 records in
    4096+0 records out
    8589934592 bytes (8.6 GB) copied, 12.7617 s, 673 MB/s (Max was 698MB/s)
    ---------------------------------------------------------------------

    ## Here I clear the buffer-cache to accurately measure read speeds directly from the device
    $ echo 3 > /proc/sys/vm/drop_caches
    $ dd if=tempfile of=/dev/null bs=2M count=4096
    4096+0 records in
    4096+0 records out
    8589934592 bytes (8.6 GB) copied, 17.5188 s, 490 MB/s (Max was 499MB/s clearing the cache each time)
    ---------------------------------------------------------------------

    So OCZ seems to keep their promises, at least at more than 90%.

    Here is the my fstab params I used to my ext 4 partitions (ext4 defaults,noatime,discard) (discard means TRIM feature)
    *(Warning: It is critically important that users switch the controller driving the SSD to AHCI mode (not IDE mode) to ensure that the kernel is able to use the TRIM command.)*
    *(Warning: Users need to be certain that kernel version 2.6.33 or above is being used AND that their SSD supports TRIM before attempting to mount a partition with the discard flag. Data loss can occur otherwise!)*
    / (ext4)
    /home (ext4)
    /boot (ext2)

    And I also compile and use tmp directly in RAM because I've 8G available.
    none /tmp tmpfs nodev,nosuid,noatime,size=3G,mode=1777 0 0
    shm /dev/shm tmpfs nodev,nosuid,size=6G 0 0

    And voilà !
    You can find a lot of information in Archlinux wiki, just write in Google "Archlinux SSD".

    I'm using noop scheduler

  3. #13
    Join Date
    Jan 2008
    Beans
    735
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Enable noop scheduler by default for an SSD

    Would enabling noop stop my constant error in the log viewer wiht my SSD:

    [CODE][limiting SATA link speed to 1.5 Gbps
    ata4: hard resetting link
    /CODE]

    My machine being a toughbook does not allow SATA 2 b/c the system doesn't have a fan and the increased heat would cause problems....sorry to be Off Topic but - is there a way to stop or rather "fix" the SATA speed, i.e. tell ubuntu and the kernel to not bother trying to get faster speeds because it simply wont win this one?

    Maybe this noop would help? thanks!

  4. #14
    Join Date
    Sep 2007
    Location
    Nomadic
    Beans
    197
    Distro
    Ubuntu

    Re: Enable noop scheduler by default for an SSD

    As far as I'm aware, the noop scheduler won't make any difference to the speed of the SATA link. I believe the scheduler controls when data is written from cache to disk, I'm pretty sure it doesn't affect the speed with which that data is written.
    Love & joy - Callum

  5. #15
    Join Date
    Oct 2007
    Beans
    24

    Re: Enable noop scheduler by default for an SSD

    "Consider switching from the default scheduler, which under Arch is cfq (completely fair queuing), to the noop or deadline scheduler for an SSD. Using the noop scheduler, for example, simply processes requests in the order they are received, without giving any consideration to where the data physically resides on the disk. This option is thought to be advantageous for SSDs since seek times are identical for all sectors on the SSD."
    https://wiki.archlinux.org/index.php/Solid_State_Drives

  6. #16
    Join Date
    Jan 2008
    Beans
    735
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Enable noop scheduler by default for an SSD

    Quote Originally Posted by dlzerocool View Post
    "Consider switching from the default scheduler, which under Arch is cfq (completely fair queuing), to the noop or deadline scheduler for an SSD. Using the noop scheduler, for example, simply processes requests in the order they are received, without giving any consideration to where the data physically resides on the disk. This option is thought to be advantageous for SSDs since seek times are identical for all sectors on the SSD."
    https://wiki.archlinux.org/index.php/Solid_State_Drives
    thanks. @dlzerocool just to be sure, does the above relate to my problem thanks!!!

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •