From d9c301d2869988bb668eaf94ce4721f53c57005b Mon Sep 17 00:00:00 2001 From: Thomas Shum Date: Thu, 7 Feb 2019 13:57:28 +0000 Subject: [PATCH] sdm660-common: Restore better load balancing on boot As it turned out, allowing background, system-background, restricted, foreground and top-app to use all 8 cores results in severe jitter and lag whenever background tasks are running, whether it be on boot, or during waking up from sleep. This commit readds pinning background to cores 0-1, system-background and restricted to cores 0-3, foreground to cores 0-6 and top-app to cores 0-7. Change-Id: Idb76879e75e05b437600f0b689c260c674eb7eea --- rootdir/etc/init.target.rc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index fda0b71b..a617ebd0 100755 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -175,10 +175,10 @@ on boot start vendor.rmt_storage write /dev/cpuset/top-app/cpus 0-7 write /dev/cpuset/audio-app/cpus 1-2 - write /dev/cpuset/foreground/cpus 0-7 + write /dev/cpuset/foreground/cpus 0-6 write /dev/cpuset/foreground/boost/cpus 0-7 - write /dev/cpuset/background/cpus 0-7 - write /dev/cpuset/system-background/cpus 0-7 + write /dev/cpuset/background/cpus 0-1 + write /dev/cpuset/system-background/cpus 0-3 #Create folder dump yuv images while debugging mkdir /data/vendor/camera 0770 camera camera