Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0b5d5192 authored by kerneltoast's avatar kerneltoast Committed by Razziell
Browse files

binder: Reserve caches for small, high-frequency memory allocations



Most of binder's memory allocations are tiny, and they're allocated
and freed extremely frequently. The latency from going through the page
allocator all the time for such small allocations ends up being quite
high, especially when the system is low on memory. Binder is
performance-critical, so this is suboptimal.

Instead of using kzalloc to allocate a struct every time, reserve caches
specifically for allocating each struct quickly.

Signed-off-by: default avatarSultan Alsawaf <sultan@kerneltoast.com>

kondors1995: Backported to 3.18
parent 684d5572
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment