diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-04-08 07:15:40 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-05-14 13:50:06 -0400 |
commit | cee22a15052faa817e3ec8985a28154d3fabc7aa (patch) | |
tree | 506028de7bd3bf7de08a7933b5601355f27c5262 /Documentation/kernel-parameters.txt | |
parent | f722406faae2d073cc1d01063d1123c35425939e (diff) |
workqueues: Introduce new flag WQ_POWER_EFFICIENT for power oriented workqueues
Workqueues can be performance or power-oriented. Currently, most workqueues are
bound to the CPU they were created on. This gives good performance (due to cache
effects) at the cost of potentially waking up otherwise idle cores (Idle from
scheduler's perspective. Which may or may not be physically idle) just to
process some work. To save power, we can allow the work to be rescheduled on a
core that is already awake.
Workqueues created with the WQ_UNBOUND flag will allow some power savings.
However, we don't change the default behaviour of the system. To enable
power-saving behaviour, a new config option CONFIG_WQ_POWER_EFFICIENT needs to
be turned on. This option can also be overridden by the
workqueue.power_efficient boot parameter.
tj: Updated config description and comments. Renamed
CONFIG_WQ_POWER_EFFICIENT to CONFIG_WQ_POWER_EFFICIENT_DEFAULT.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'Documentation/kernel-parameters.txt')
-rw-r--r-- | Documentation/kernel-parameters.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index c3bfacb92910..37dfd720de79 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -3320,6 +3320,21 @@ bytes respectively. Such letter suffixes can also be entirely omitted. | |||
3320 | that this also can be controlled per-workqueue for | 3320 | that this also can be controlled per-workqueue for |
3321 | workqueues visible under /sys/bus/workqueue/. | 3321 | workqueues visible under /sys/bus/workqueue/. |
3322 | 3322 | ||
3323 | workqueue.power_efficient | ||
3324 | Per-cpu workqueues are generally preferred because | ||
3325 | they show better performance thanks to cache | ||
3326 | locality; unfortunately, per-cpu workqueues tend to | ||
3327 | be more power hungry than unbound workqueues. | ||
3328 | |||
3329 | Enabling this makes the per-cpu workqueues which | ||
3330 | were observed to contribute significantly to power | ||
3331 | consumption unbound, leading to measurably lower | ||
3332 | power usage at the cost of small performance | ||
3333 | overhead. | ||
3334 | |||
3335 | The default value of this parameter is determined by | ||
3336 | the config option CONFIG_WQ_POWER_EFFICIENT_DEFAULT. | ||
3337 | |||
3323 | x2apic_phys [X86-64,APIC] Use x2apic physical mode instead of | 3338 | x2apic_phys [X86-64,APIC] Use x2apic physical mode instead of |
3324 | default x2apic cluster mode on platforms | 3339 | default x2apic cluster mode on platforms |
3325 | supporting x2apic. | 3340 | supporting x2apic. |