IO Schedulers

suggest change

You can enhance your kernel by adding new I/O schedulers if needed. Governors and I/O schedulers both decide how the system should work. An I/O scheduler decides how upcoming input/output is ordered, separate from the CPU settings. The standard schedulers such as noop or cfq perform very reasonably.

I/O schedulers can be found in kernel_source/block.

  1. Copy your I/O scheduler file (for example, sio-iosched.c) and browse to kernel_source/block. Paste the scheduler file there.
  2. Now open Kconfig.iosched and add your choice to the Kconfig, for example for SIO:
config IOSCHED_SIO
  tristate "Simple I/O scheduler"
  default y
  ---help---
    The Simple I/O scheduler is an extremely simple scheduler,
    based on noop and deadline, that relies on deadlines to
    ensure fairness. The algorithm does not do any sorting but
    basic merging, trying to keep a minimum overhead. It is aimed
    mainly for random access devices (eg: flash devices).
  1. Then set the default choice option as follows:
default "sio" if DEFAULT_SIO

Save the file.

  1. Open the Makefile in kernel_source/block/ and simply add the following line for SIO:
obj-$(CONFIG_IOSCHED_SIO)    += sio-iosched.o

Save the file and you are done! The I/O schedulers should now pop up in menuconfig.

Similar commit on GitHub: added Simple I/O scheduler.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents