howtos:i_o_scheduler_algorithm
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | howtos:i_o_scheduler_algorithm [02/12/2018 21:34] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | The I/O scheduler in Linux doesn' | ||
+ | |||
+ | This hack can be utilized as either a grub setting or through a rc.local script. | ||
+ | |||
+ | **__Pre Grub 2:__** | ||
+ | |||
+ | To set the scheduler in grub append this to the kernel parameters. Find the line looking like this: | ||
+ | |||
+ | < | ||
+ | linux / | ||
+ | </ | ||
+ | |||
+ | and append this: | ||
+ | |||
+ | < | ||
+ | linux / | ||
+ | </ | ||
+ | |||
+ | **__Grub 2:__** | ||
+ | |||
+ | Edit the file / | ||
+ | |||
+ | < | ||
+ | GRUB_CMDLINE_LINUX_DEFAULT=" | ||
+ | </ | ||
+ | |||
+ | change it to this: | ||
+ | |||
+ | < | ||
+ | GRUB_CMDLINE_LINUX_DEFAULT=" | ||
+ | </ | ||
+ | |||
+ | and run: | ||
+ | |||
+ | < | ||
+ | # update-grub | ||
+ | Generating grub.cfg ... | ||
+ | Found linux image: / | ||
+ | Found initrd image: / | ||
+ | Found memtest86+ image: / | ||
+ | Done | ||
+ | </ | ||
+ | |||
+ | You can also make the changes in the rc.local script: | ||
+ | |||
+ | < | ||
+ | #!/bin/sh -e | ||
+ | # | ||
+ | # rc.local | ||
+ | # | ||
+ | # This script is executed at the end of each multiuser runlevel. | ||
+ | # Make sure that the script will "exit 0" on success or any other | ||
+ | # value on error. | ||
+ | # | ||
+ | # In order to enable or disable this script just change the execution | ||
+ | # bits. | ||
+ | # | ||
+ | # By default this script does nothing. | ||
+ | |||
+ | echo deadline > / | ||
+ | echo deadline > / | ||
+ | echo deadline > / | ||
+ | echo 1 > / | ||
+ | echo 1 > / | ||
+ | echo 1 > / | ||
+ | |||
+ | exit 0 | ||
+ | </ | ||
+ | The scheduler is per disk, that's why there is a statement per device (/dev/sdX). | ||
+ | |||
howtos/i_o_scheduler_algorithm.txt · Last modified: 02/12/2018 21:34 by 127.0.0.1