From bee9f1d3f79f31a4f183bad67525e7ef86c7998b Mon Sep 17 00:00:00 2001 From: Jagadeesh Pakaravoor Date: Fri, 12 Mar 2021 13:20:09 -0800 Subject: [PATCH] Enable madvising of odex, vdex and art files Enable madvsing odex, vdex and art files to MADV_WILLNEED by setting the size limits to UINT32_MAX. Test: presubmit Bug: 178853586 Change-Id: I7647a4be214dcd43341f216aba0a7791f877e379 --- target/product/runtime_libart.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/target/product/runtime_libart.mk b/target/product/runtime_libart.mk index b588c781c9..7092031dea 100644 --- a/target/product/runtime_libart.mk +++ b/target/product/runtime_libart.mk @@ -140,3 +140,10 @@ PRODUCT_SYSTEM_PROPERTIES += \ 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