summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorSherry Yang <sherryy@android.com>2017-07-29 13:24:11 -0700
committerMengjiao Yang <sherryy@google.com>2017-08-31 17:29:45 -0700
commitf73e8e762516ed18aa84084c1c2e7ddde3c2213a (patch)
tree40c51999d57d5bea2c05ed14e4441d79c982db38 /lib/mpi/mpi-inline.h
parent7a6d4b157e1c046f4c4de9f2f1f1f7abfa6abb21 (diff)
FROMLIST: android: binder: Add global lru shrinker to binder
(from https://patchwork.kernel.org/patch/9928615/) Hold on to the pages allocated and mapped for transaction buffers until the system is under memory pressure. When that happens, use linux shrinker to free pages. Without using shrinker, patch "android: binder: Move buffer out of area shared with user space" will cause a significant slow down for small transactions that fit into the first page because free list buffer header used to be inlined with buffer data. In addition to prevent the performance regression for small transactions, this patch improves the performance for transactions that take up more than one page. Modify alloc selftest to work with the shrinker change. Test: Run memory intensive applications (Chrome and Camera) to trigger shrinker callbacks. Binder frees memory as expected. Test: Run binderThroughputTest with high memory pressure option enabled. Bug: 63926541 Change-Id: I3abfc43b405e7e0a6228da37e0689a4b944f0e00 Signed-off-by: Sherry Yang <sherryy@android.com>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions