summaryrefslogtreecommitdiffstats
path: root/rootdir/init.zygote32_64.rc
diff options
context:
space:
mode:
authorVitalii Tomkiv <vitalit@google.com>2016-05-18 17:40:41 -0700
committerVitalii Tomkiv <vitalit@google.com>2016-06-08 10:54:03 -0700
commit372e5474d4b7832901d52c274e9ce26e7da66922 (patch)
tree028bf7ac31d184046d3ee4722f63b8c2ad9c0cad /rootdir/init.zygote32_64.rc
parenta500cf9cdfc44f00b79412d21c57f4230018e8ae (diff)
downloadcore-372e5474d4b7832901d52c274e9ce26e7da66922.tar.gz
core-372e5474d4b7832901d52c274e9ce26e7da66922.tar.bz2
core-372e5474d4b7832901d52c274e9ce26e7da66922.zip
Set zygote process priority to -20 to speed up VM startup time.
Tests for Nexus9 device shows 450ms boot time speedup, 180ms for Nexus 5X. Bug: 28866384 Change-Id: Icefd130d4bfe5538dae5b9518250807351b0789e
Diffstat (limited to 'rootdir/init.zygote32_64.rc')
-rw-r--r--rootdir/init.zygote32_64.rc2
1 files changed, 2 insertions, 0 deletions
diff --git a/rootdir/init.zygote32_64.rc b/rootdir/init.zygote32_64.rc
index 1646c0f7e..2efd8e226 100644
--- a/rootdir/init.zygote32_64.rc
+++ b/rootdir/init.zygote32_64.rc
@@ -1,5 +1,6 @@
service zygote /system/bin/app_process32 -Xzygote /system/bin --zygote --start-system-server --socket-name=zygote
class main
+ priority -20
socket zygote stream 660 root system
onrestart write /sys/android_power/request_state wake
onrestart write /sys/power/state on
@@ -9,6 +10,7 @@ service zygote /system/bin/app_process32 -Xzygote /system/bin --zygote --start-s
service zygote_secondary /system/bin/app_process64 -Xzygote /system/bin --zygote --socket-name=zygote_secondary
class main
+ priority -20
socket zygote_secondary stream 660 root system
onrestart restart zygote
writepid /dev/cpuset/foreground/tasks /sys/fs/cgroup/stune/foreground/tasks