Merge "Enable madvising of odex, vdex and art files" am: 4d71d70496 am: abdde757dd
Original change: https://android-review.googlesource.com/c/platform/build/+/1634679
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ibdaa2b990568ec601887e867ab50804bcccd8cfc
diff --git a/target/product/runtime_libart.mk b/target/product/runtime_libart.mk
index b588c78..7092031 100644
--- a/target/product/runtime_libart.mk
+++ b/target/product/runtime_libart.mk
@@ -140,3 +140,10 @@
PRODUCT_SYSTEM_PROPERTIES += \
ro.iorapd.enable?=true
+# Enable Madvising of the whole art, odex and vdex files to MADV_WILLNEED.
+# The size specified here is the size limit of how much of the file
+# (in bytes) is madvised. Setting it to UINT_MAX.
+PRODUCT_SYSTEM_PROPERTIES += \
+ dalvik.vm.madvise.vdexfile.size=4294967295 \
+ dalvik.vm.madvise.odexfile.size=4294967295 \
+ dalvik.vm.madvise.artfile.size=4294967295