diff options
author | Rick Yiu <rickyiu@google.com> | 2019-04-23 21:33:56 +0800 |
---|---|---|
committer | Rick Yiu <rickyiu@google.com> | 2019-05-09 03:14:11 +0000 |
commit | c7bf1a01fdf0db57f46e25bd7af54e465a458929 (patch) | |
tree | 39e15a0fa07763a81be945481a0ca4331513ab2d /rootdir | |
parent | f40a7400349114c08ab5a635a31ddd5b9673719f (diff) | |
download | system_core-c7bf1a01fdf0db57f46e25bd7af54e465a458929.tar.gz system_core-c7bf1a01fdf0db57f46e25bd7af54e465a458929.tar.bz2 system_core-c7bf1a01fdf0db57f46e25bd7af54e465a458929.zip |
Apply initial settings for blkio cgroup
Bug: 117857342
Test: values are applied
Change-Id: Id28d9619fc2fd2287fe656b8032025184ae7f631
(cherry picked from commit a8aaf198d5d5bf110df36309a7c679ed3a153d68)
Merged-In: Id28d9619fc2fd2287fe656b8032025184ae7f631
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.rc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index cb45c42f8..1b7367c46 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -80,7 +80,9 @@ on init chmod 0664 /dev/stune/top-app/tasks chmod 0664 /dev/stune/rt/tasks - # Create blkio tuning nodes + # Create blkio group and apply initial settings. + # This feature needs kernel to support it, and the + # device's init.rc must actually set the correct values. mkdir /dev/blkio/background chown system system /dev/blkio chown system system /dev/blkio/background @@ -88,6 +90,10 @@ on init chown system system /dev/blkio/background/tasks chmod 0664 /dev/blkio/tasks chmod 0664 /dev/blkio/background/tasks + write /dev/blkio/blkio.weight 1000 + write /dev/blkio/background/blkio.weight 500 + write /dev/blkio/blkio.group_idle 0 + write /dev/blkio/background/blkio.group_idle 0 restorecon_recursive /mnt |