Kconfig.iosched 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. menu "IO Schedulers"
  2. config IOSCHED_NOOP
  3. bool
  4. default y
  5. ---help---
  6. The no-op I/O scheduler is a minimal scheduler that does basic merging
  7. and sorting. Its main uses include non-disk based block devices like
  8. memory devices, and specialised software or hardware environments
  9. that do their own scheduling and require only minimal assistance from
  10. the kernel.
  11. config IOSCHED_AS
  12. tristate "Anticipatory I/O scheduler"
  13. default y
  14. ---help---
  15. The anticipatory I/O scheduler is the default disk scheduler. It is
  16. generally a good choice for most environments, but is quite large and
  17. complex when compared to the deadline I/O scheduler, it can also be
  18. slower in some cases especially some database loads.
  19. config IOSCHED_DEADLINE
  20. tristate "Deadline I/O scheduler"
  21. default y
  22. ---help---
  23. The deadline I/O scheduler is simple and compact, and is often as
  24. good as the anticipatory I/O scheduler, and in some database
  25. workloads, better. In the case of a single process performing I/O to
  26. a disk at any one time, its behaviour is almost identical to the
  27. anticipatory I/O scheduler and so is a good choice.
  28. config IOSCHED_CFQ
  29. tristate "CFQ I/O scheduler"
  30. default y
  31. ---help---
  32. The CFQ I/O scheduler tries to distribute bandwidth equally
  33. among all processes in the system. It should provide a fair
  34. working environment, suitable for desktop systems.
  35. choice
  36. prompt "Default I/O scheduler"
  37. default DEFAULT_CFQ
  38. help
  39. Select the I/O scheduler which will be used by default for all
  40. block devices.
  41. config DEFAULT_AS
  42. bool "Anticipatory" if IOSCHED_AS=y
  43. config DEFAULT_DEADLINE
  44. bool "Deadline" if IOSCHED_DEADLINE=y
  45. config DEFAULT_CFQ
  46. bool "CFQ" if IOSCHED_CFQ=y
  47. config DEFAULT_NOOP
  48. bool "No-op"
  49. endchoice
  50. config DEFAULT_IOSCHED
  51. string
  52. default "anticipatory" if DEFAULT_AS
  53. default "deadline" if DEFAULT_DEADLINE
  54. default "cfq" if DEFAULT_CFQ
  55. default "noop" if DEFAULT_NOOP
  56. endmenu