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
diff --git a/compos/Android.bp b/compos/Android.bp
index ab55efb..8891539 100644
--- a/compos/Android.bp
+++ b/compos/Android.bp
@@ -23,10 +23,12 @@
"liblog_rust",
"libminijail_rust",
"libnix",
+ "libnum_cpus",
"libodsign_proto_rust",
"libprotobuf",
"libregex",
"libring",
+ "librustutils",
"libscopeguard",
],
prefer_rlib: true,