From 272e7a60cb275204acb13d00ba87760497ef8172 Mon Sep 17 00:00:00 2001 From: Daeho Jeong Date: Mon, 15 Feb 2021 14:37:01 +0900 Subject: [PATCH] bfq: set background cgroup weight to 10 For better responsiveness of foreground task's io in BFQ I/O scheduler, set background task's weight from default 100 to 10. Test: cat /dev/blkio/background/blkio.bfq.weight Bug: 171739280 Signed-off-by: Daeho Jeong Change-Id: I6a4ea2d46c4426d3e34c7ea71a4653e0ce3ed0df --- rootdir/init.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index 7464d6d4a..995b1c5af 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -244,6 +244,7 @@ on init chmod 0664 /dev/blkio/background/tasks write /dev/blkio/blkio.weight 1000 write /dev/blkio/background/blkio.weight 200 + write /dev/blkio/background/blkio.bfq.weight 10 write /dev/blkio/blkio.group_idle 0 write /dev/blkio/background/blkio.group_idle 0