diff options
author | 2014-07-09 16:49:04 +0800 | |
---|---|---|
committer | 2014-07-09 15:56:17 -0400 | |
commit | be4c9dd7aee5ecf3e748da68c27b38bdca70d444 (patch) | |
tree | 0db06f07a41e43275123f29771580d00872ce372 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cpuset: refactor cpuset_hotplug_update_tasks() (diff) | |
download | linux-dev-be4c9dd7aee5ecf3e748da68c27b38bdca70d444.tar.xz linux-dev-be4c9dd7aee5ecf3e748da68c27b38bdca70d444.zip |
cpuset: enable onlined cpu/node in effective masks
Firstly offline cpu1:
# echo 0-1 > cpuset.cpus
# echo 0 > /sys/devices/system/cpu/cpu1/online
# cat cpuset.cpus
0-1
# cat cpuset.effective_cpus
0
Then online it:
# echo 1 > /sys/devices/system/cpu/cpu1/online
# cat cpuset.cpus
0-1
# cat cpuset.effective_cpus
0-1
And cpuset will bring it back to the effective mask.
The implementation is quite straightforward. Instead of calculating the
offlined cpus/mems and do updates, we just set the new effective_mask
to online_mask & congifured_mask.
This is a behavior change for default hierarchy, so legacy hierarchy
won't be affected.
v2:
- make refactoring of cpuset_hotplug_update_tasks() as seperate patch,
suggested by Tejun.
- make hotplug_update_tasks_insane() use @new_cpus and @new_mems as
hotplug_update_tasks_sane() does.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions