Kconfig.preempt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. choice
  2. prompt "Preemption Model"
  3. default PREEMPT_NONE
  4. config PREEMPT_NONE
  5. bool "No Forced Preemption (Server)"
  6. help
  7. This is the traditional Linux preemption model, geared towards
  8. throughput. It will still provide good latencies most of the
  9. time, but there are no guarantees and occasional longer delays
  10. are possible.
  11. Select this option if you are building a kernel for a server or
  12. scientific/computation system, or if you want to maximize the
  13. raw processing power of the kernel, irrespective of scheduling
  14. latencies.
  15. config PREEMPT_VOLUNTARY
  16. bool "Voluntary Kernel Preemption (Desktop)"
  17. help
  18. This option reduces the latency of the kernel by adding more
  19. "explicit preemption points" to the kernel code. These new
  20. preemption points have been selected to reduce the maximum
  21. latency of rescheduling, providing faster application reactions,
  22. at the cost of slightly lower throughput.
  23. This allows reaction to interactive events by allowing a
  24. low priority process to voluntarily preempt itself even if it
  25. is in kernel mode executing a system call. This allows
  26. applications to run more 'smoothly' even when the system is
  27. under load.
  28. Select this if you are building a kernel for a desktop system.
  29. config PREEMPT
  30. bool "Preemptible Kernel (Low-Latency Desktop)"
  31. select PREEMPT_COUNT
  32. select UNINLINE_SPIN_UNLOCK if !ARCH_INLINE_SPIN_UNLOCK
  33. help
  34. This option reduces the latency of the kernel by making
  35. all kernel code (that is not executing in a critical section)
  36. preemptible. This allows reaction to interactive events by
  37. permitting a low priority process to be preempted involuntarily
  38. even if it is in kernel mode executing a system call and would
  39. otherwise not be about to reach a natural preemption point.
  40. This allows applications to run more 'smoothly' even when the
  41. system is under load, at the cost of slightly lower throughput
  42. and a slight runtime overhead to kernel code.
  43. Select this if you are building a kernel for a desktop or
  44. embedded system with latency requirements in the milliseconds
  45. range.
  46. endchoice
  47. config PREEMPT_COUNT
  48. bool