diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2011-04-09 09:25:47 -0400 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2011-04-09 09:25:47 -0400 |
commit | d3f99f11f3440d70658b9d9df756bbd9b63f8058 (patch) | |
tree | b4caf603c530cfd21a1515e496f83cd296e0d0fc /litmus/Kconfig | |
parent | c05eaa8091d2cadc20363d44a85ee454262f4bc2 (diff) |
Bias task scheduling towards previous CPU.
Added the option to allow tasks to be scheduled on their previous
CPU if that CPU is not currently executing real-time work. Helps
preserve cache affinity and reduction in migration costs. See
CONFIG_CPU_SCHED_BIAS help for more information.
Solution developed by Jonathan Herman.
Diffstat (limited to 'litmus/Kconfig')
-rw-r--r-- | litmus/Kconfig | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/litmus/Kconfig b/litmus/Kconfig index ad8dc8308cf0..651b66a77c65 100644 --- a/litmus/Kconfig +++ b/litmus/Kconfig | |||
@@ -36,6 +36,24 @@ config RELEASE_MASTER | |||
36 | 36 | ||
37 | endmenu | 37 | endmenu |
38 | 38 | ||
39 | menu "Performance Hacks" | ||
40 | |||
41 | config CPU_SCHED_BIAS | ||
42 | bool "Tasks prefer previous CPU(s)." | ||
43 | default n | ||
44 | help | ||
45 | Allow tasks to be rescheduled on their previously used CPU(s) if that | ||
46 | CPU(s) is not currently not executing real-time work. This may improve | ||
47 | performance through the possible preservation of cache affinity. | ||
48 | |||
49 | Warning: May make bugs harder to find as tasks will migrate less | ||
50 | frequently. | ||
51 | |||
52 | Only bias towards previously used CPU is currently implemented. In the | ||
53 | future: bias on CPU topology. | ||
54 | |||
55 | endmenu | ||
56 | |||
39 | menu "Real-Time Synchronization" | 57 | menu "Real-Time Synchronization" |
40 | 58 | ||
41 | config NP_SECTION | 59 | config NP_SECTION |