sched_features.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * Only give sleepers 50% of their service deficit. This allows
  3. * them to run sooner, but does not allow tons of sleepers to
  4. * rip the spread apart.
  5. */
  6. SCHED_FEAT(GENTLE_FAIR_SLEEPERS, 1)
  7. /*
  8. * Place new tasks ahead so that they do not starve already running
  9. * tasks
  10. */
  11. SCHED_FEAT(START_DEBIT, 1)
  12. /*
  13. * Should wakeups try to preempt running tasks.
  14. */
  15. SCHED_FEAT(WAKEUP_PREEMPT, 1)
  16. /*
  17. * When converting the wakeup granularity to virtual time, do it such
  18. * that heavier tasks preempting a lighter task have an edge.
  19. */
  20. SCHED_FEAT(ASYM_GRAN, 1)
  21. /*
  22. * Use the SYNC wakeup hint, pipes and the likes use this to indicate
  23. * the remote end is likely to consume the data we just wrote, and
  24. * therefore has cache benefit from being placed on the same cpu, see
  25. * also AFFINE_WAKEUPS.
  26. */
  27. SCHED_FEAT(SYNC_WAKEUPS, 1)
  28. /*
  29. * Based on load and program behaviour, see if it makes sense to place
  30. * a newly woken task on the same cpu as the task that woke it --
  31. * improve cache locality. Typically used with SYNC wakeups as
  32. * generated by pipes and the like, see also SYNC_WAKEUPS.
  33. */
  34. SCHED_FEAT(AFFINE_WAKEUPS, 1)
  35. /*
  36. * Prefer to schedule the task we woke last (assuming it failed
  37. * wakeup-preemption), since its likely going to consume data we
  38. * touched, increases cache locality.
  39. */
  40. SCHED_FEAT(NEXT_BUDDY, 0)
  41. /*
  42. * Prefer to schedule the task that ran last (when we did
  43. * wake-preempt) as that likely will touch the same data, increases
  44. * cache locality.
  45. */
  46. SCHED_FEAT(LAST_BUDDY, 1)
  47. /*
  48. * Consider buddies to be cache hot, decreases the likelyness of a
  49. * cache buddy being migrated away, increases cache locality.
  50. */
  51. SCHED_FEAT(CACHE_HOT_BUDDY, 1)
  52. /*
  53. * Use arch dependent cpu power functions
  54. */
  55. SCHED_FEAT(ARCH_POWER, 0)
  56. SCHED_FEAT(HRTICK, 0)
  57. SCHED_FEAT(DOUBLE_TICK, 0)
  58. SCHED_FEAT(LB_BIAS, 1)
  59. SCHED_FEAT(LB_SHARES_UPDATE, 1)
  60. SCHED_FEAT(ASYM_EFF_LOAD, 1)
  61. /*
  62. * Spin-wait on mutex acquisition when the mutex owner is running on
  63. * another cpu -- assumes that when the owner is running, it will soon
  64. * release the lock. Decreases scheduling overhead.
  65. */
  66. SCHED_FEAT(OWNER_SPIN, 1)