diff options
author | Marissa Wall <marissaw@google.com> | 2017-10-17 10:04:04 -0700 |
---|---|---|
committer | Marissa Wall <marissaw@google.com> | 2017-11-27 15:14:03 -0800 |
commit | cc70270286ac84690c350e8e4d077ec72fd078a9 (patch) | |
tree | ee1cf74a01a97078ea81c6662cabfd655b286cf9 | |
parent | 7ca560c1df2cd0ff069c14e326de6b1c5799b1aa (diff) | |
download | lisa-cc70270286ac84690c350e8e4d077ec72fd078a9.tar.gz |
experiments/power: Correctly update cgroups in cpu freq
Cpu freq was not updating the offline cpu cgroup.
Test: ./run_cpu_frequency.py
Change-Id: Ieeef71160ea80b85012e183801bb12d7b5f19e8f
-rwxr-xr-x | experiments/power/eas/run_cpu_frequency.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/experiments/power/eas/run_cpu_frequency.py b/experiments/power/eas/run_cpu_frequency.py index 4896883..ecb1fb3 100755 --- a/experiments/power/eas/run_cpu_frequency.py +++ b/experiments/power/eas/run_cpu_frequency.py @@ -114,7 +114,7 @@ def experiment(): # For each cluster for cluster in clusters: # Remove all userspace tasks from the cluster - target_cg, _ = target.cgroups.isolate(cluster) + sandbox_cg, isolated_cg = target.cgroups.isolate(cluster) # For each frequency on the cluster for freq in target.cpufreq.list_frequencies(cluster[0]): @@ -135,7 +135,8 @@ def experiment(): # Update the target cgroup in case hotplugging has introduced # any errors - target_cg.set(cpus=on_cpus) + sandbox_cg.set(cpus=on_cpus) + isolated_cg.set(cpus=off_cpus) # Switch the output file so the previous samples are not overwritten energy, samples = outfiles(on_cpus, freq) |