summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Edgar Arriaga <edgararriaga@google.com> 2020-08-12 13:03:57 -0700
committer Edgar Arriaga <edgararriaga@google.com> 2021-06-08 00:21:17 +0000
commitc51efbe68fab370321f662c71d8dce76a3a226e1 (patch)
treec3ec48484ae13c1ecd8f4fadc61a56ffc2ec2c5d /libs/androidfw/StringPool.cpp
parent9489b44d47372be1cd19dd0e5e8da61c25380de6 (diff)
Migrate to use process_madvise syscall instead of procfs interface for memory compaction
Currently the system uses procfs and we are migrating to use a syscall called process_madvise which makes the code upstreamable and will allow for making compaction widely available for multiple android devices. It also opens room for future developments that involve a finer grain VMA compressions than the current procfs allows. Test: Ran the system without crashes and verified am_compact was effectively showing compressed memory (free zram reduced) when compressing. Bug: 162993824 Test: Manual, verified that zram was being increased over time after compactions happened Change-Id: I9d9d895aee7fbc46a2f12f6ca080ab8457ea7222 Merged-In: I9d9d895aee7fbc46a2f12f6ca080ab8457ea7222
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions