Skip to content
Commit 2b7a8e18 authored by Edgar Arriaga's avatar Edgar Arriaga Committed by Edgar Arriaga García
Browse files

Optimize app compaction system reduce page faults

This patch allows for amortizing the memory churn in compaction
over time by reusing the vector and its vmas as well as sending
a preassigned buffer to fill maps. Effectively, after a compaction
run we usually see no new allocations which also reduces the page
fault cost and the allocation cost.

Bug: 243976314
Test: am compact full <processname> <uid>

Change-Id: I36e96284b72b7b03d75171058def23b783f6c5cd
parent 44a29da8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment