| # Copyright 2019 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| description "set up cgroups according to the platform (trogdor) needs" |
| author "chromium-os-dev@chromium.org" |
| |
| start on stopped cgroups |
| task |
| |
| script |
| # Non-urgent Chrome threads should go to little cores. |
| echo 0-5 > /sys/fs/cgroup/cpuset/chrome/non-urgent/cpus |
| |
| # We use a schedtune cgroup to boost the deadline sensitive tasks. |
| schedtune_dir="/sys/fs/cgroup/schedtune/chrome" |
| # default boost parameters needed for consistent 60fps compositing |
| echo 20 > "${schedtune_dir}/urgent/schedtune.boost" |
| echo 1 > "${schedtune_dir}/urgent/schedtune.prefer_idle" |
| |
| # enable touch boosting |
| echo 75 > /sys/module/cpu_boost/parameters/input_boost_freq_percent |
| end script |