summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Edgar Arriaga <edgararriaga@google.com> 2023-01-13 22:24:33 +0000
committer Cherrypicker Worker <android-build-cherrypicker-worker@google.com> 2023-03-16 21:36:18 +0000
commit29a79cf724e6d3fd27dd092bc02952537e56757b (patch)
treeddd623e7ce50b959d27f5c04fd7627d6aadb281c /libs/androidfw/FileStream.cpp
parent3d961ed78da86efb193d3683531db1f1cce62274 (diff)
Disable file compaction by default
At present time kernel does not support shared pages to be swapped using file compaction which uses MADV_COLD and most of the file pages in a process are actually shared mappings causing us to waste a lot of cycles scanning through a lot of unreclaimable pages, this patch disables file compaction which will be reenabled until a solution is implemented on upstream kernel that allows reclaiming shared pages, thus making it worth to scan all of those pages again. Test: am compact file <processname> <uid> Bug: 265473345 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:30b069612a9d35b02cc6c2656c18326e8cffeec6) Merged-In: I4c819058da229c00d1eafea636f89784718adc5f Change-Id: I4c819058da229c00d1eafea636f89784718adc5f
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions