commit | 165921b79b0a915dea322a568e90022601a1c0ba | [log] [tgz] |
---|---|---|
author | Jiyong Park <jiyong@google.com> | Fri Jan 14 00:49:33 2022 +0900 |
committer | Jiyong Park <jiyong@google.com> | Tue Jan 18 21:04:05 2022 +0900 |
tree | a15fed34c5645dba8f350b7fae6c98fc2099bb31 | |
parent | 76cbf8a5c812f2ca995024b407e9834e2a02e369 [diff] |
Respect dalvik.vm.boot-dex2oat-[threads|cpu-set] The properties on the host side are now used to configure the number of vCPUs and their affinity to the host CPU for the compos VM. Then inside the VM, the system property is set to the number of vCPU so that the concurrency level of dex2oat inside the VM is controlled by the host-side system property. Bug : 197358423 Test: adb shell setprop dalvik.vm.boot-dex2oat-thread 2 adb shell setprop dalvik.vm.boot-dex2oat-cpu-set 0,1 adb shell /apex/com.android.compos/bin/composd_cmd staged-apex-compile Crosvm is run with --cpus 2 and --cpu-affinity 0,1 `top` shows that (host) CPU usage is over 100% Change-Id: I4239a6e1656a9fb852fdd7db3e0ba716290ea5bc
This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.