Skip to content

android: binder: move allocator metadata and add shrinker

Sherry Yang lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 6 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 6 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] android: binder: move allocator metadata and add shrinker

This patch set moves internal kernel data in the binder driver out of mmap regions that is readable by user space. A shrinker is added to the driver to dynamically manage the memory used by binder transactions and only free pages when the system is under memory pressure. This patch set also adds tests and refactoring in binder allocator.

android: binder: Refactor prev and next buffer into a helper function
android: binder: Add allocator selftest
android: binder: Move buffer out of area shared with user space
android: binder: Add global lru shrinker to binder
android: binder: Add shrinker tracepoints
android: binder: Add page usage in binder stats

v3: Fix crash if open is called without followed by mmap. Also add page usage information in binder stats

 drivers/android/Kconfig                 |  10 +
 drivers/android/Makefile                |   1 +
 drivers/android/binder.c                |   6 +
 drivers/android/binder_alloc.c          | 395 ++++++++++++++++------
 drivers/android/binder_alloc.h          |  32 +-
 drivers/android/binder_alloc_selftest.c | 310 ++++++++++++++++++
 drivers/android/binder_trace.h          |  55 ++++
 7 files changed, 711 insertions(+), 98 deletions(-)