Commit 6d7a552
committed
bionic: use jemalloc by default and allow opt-in to scudo (3/4)
Overall, jemalloc performs 23.4% better than Scudo while consuming
1.7% less amount of memory in system/extra's real-world memory_replay
traces:
https://docs.google.com/spreadsheets/d/19wLanILSw_l2d7oot3VvcZiFSLzPRWNb_a5ZyA3aFSU/edit?usp=sharing
Scudo performs fairly well for a hardened memory allocator, but we're
optimizing for performance.
Tests were performed by statically linking memory_replay under QSSI 14.
Android userspace has been stopped before performing all benchmarks,
and each test was executed 10 times with an idle detector in between to
reduce noise and errors.
The entire test took about 3 days:
https://github.com/arter97/android_memory_replay_helper
This commit has been inspired from ProtonAOSP/android_bionic@b220489
Change-Id: I5f6955bac87d87f9ef931c9be2fd43ac5d8fbcd7
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>1 parent 4af38d9 commit 6d7a552
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | 151 | | |
155 | 152 | | |
156 | 153 | | |
| |||
0 commit comments