-
- Downloads
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
Showing
- services/core/java/com/android/server/am/CachedAppOptimizer.java 34 additions, 26 deletions...s/core/java/com/android/server/am/CachedAppOptimizer.java
- services/core/jni/Android.bp 2 additions, 0 deletionsservices/core/jni/Android.bp
- services/core/jni/com_android_server_am_CachedAppOptimizer.cpp 165 additions, 12 deletions...ces/core/jni/com_android_server_am_CachedAppOptimizer.cpp
Loading
Please register or sign in to comment