Kconfig.hz 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # Timer Interrupt Frequency Configuration
  3. #
  4. choice
  5. prompt "Timer frequency"
  6. default HZ_250
  7. help
  8. Allows the configuration of the timer frequency. It is customary
  9. to have the timer interrupt run at 1000 HZ but 100 HZ may be more
  10. beneficial for servers and NUMA systems that do not need to have
  11. a fast response for user interaction and that may experience bus
  12. contention and cacheline bounces as a result of timer interrupts.
  13. Note that the timer interrupt occurs on each processor in an SMP
  14. environment leading to NR_CPUS * HZ number of timer interrupts
  15. per second.
  16. config HZ_100
  17. bool "100 HZ"
  18. help
  19. 100 HZ is a typical choice for servers, SMP and NUMA systems
  20. with lots of processors that may show reduced performance if
  21. too many timer interrupts are occurring.
  22. config HZ_250
  23. bool "250 HZ"
  24. help
  25. 250 HZ is a good compromise choice allowing server performance
  26. while also showing good interactive responsiveness even
  27. on SMP and NUMA systems.
  28. config HZ_1000
  29. bool "1000 HZ"
  30. help
  31. 1000 HZ is the preferred choice for desktop systems and other
  32. systems requiring fast interactive responses to events.
  33. endchoice
  34. config HZ
  35. int
  36. default 100 if HZ_100
  37. default 250 if HZ_250
  38. default 1000 if HZ_1000