aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Snap for 6416172 from d3a7616aa26eb5f0b6c46de96730305e21cd3f35 to rvc-releaseandroid-vts-11.0_r1android-cts-11.0_r1android-11.0.0_r3android-11.0.0_r2android-11.0.0_r17android-11.0.0_r1android11-tests-releaseandroid11-releaseandroid11-gsiandroid-build-team Robot2020-04-221-0/+5
|\ | | | | | | Change-Id: I61b2b762ab281b5e44c36a8ebb6a6e2b28d5ca84
| * Only retain for 64 bit.android11-devChristopher Ferris2020-04-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 32 bit, the va space can be exhausted very easily. Change the jemalloc defaults to only retain for 64 bit to avoid this exhaustion. The performance of traces does get slightly worse, but most stay about the same. This should only affect devices that use malloc svelte, all other devices are on scudo. Bug: 142556796 Bug: 140079007 Test: Ran traces and verified va space is much lower. Test: Compared benchmarks with and without retaining. Test: Ran bionic unit tests. Test: Ran jemalloc tests. Test: Ran malloc stress tests. Change-Id: Iaec8276582f880145a1ca5ebbaa65789f46d2bf2 Merged-In: Iaec8276582f880145a1ca5ebbaa65789f46d2bf2 (cherry picked from commit 42ee32379deb615c6554ac8325417f451e987b35)
* | Snap for 6170127 from 91f65f46593dd87b272773bba1f6cc5fe1fbf8c4 to rvc-releaseandroid-build-team Robot2020-01-301-0/+2
|\| | | | | | | Change-Id: I16a01a5c01c1dab4c2d8bdff02944415aa33179e
| * Export include for libjemalloc5 usage. am: 8333b30b97 am: 94c497862b am: ↵Automerger Merge Worker2020-01-291-0/+2
| |\ | | | | | | | | | | | | | | | dbb559d281 Change-Id: I40e3c1e45b840d6f4a657efaaffbba10ed9d1231
| | * Export include for libjemalloc5 usage. am: 8333b30b97 am: 94c497862bAutomerger Merge Worker2020-01-291-0/+2
| | |\ | | | | | | | | | | | | Change-Id: Ia3735794cacc7c73209957f4ac54d04706bdc49f
| | | * Export include for libjemalloc5 usage.android-r-preview-4android-r-preview-3android-r-preview-2Christopher Ferris2020-01-291-0/+2
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | am: 8333b30b97 Change-Id: I04c4ddf6104fb09f4e4817d65da69c70b196e0ae
| | | | * Export include for libjemalloc5 usage.android-r-preview-1Christopher Ferris2020-01-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, libc was adding the include directories directly. Instead, add it to the export list to it can be added automatically. Bug: 137795072 Test: Build Change-Id: I2b715af91b0eef6adf26daea1a081e49e7d6ad9b
* | | | | Snap for 6160382 from ce1fbd3a686976537b6c4ea73d0fe3fe3c69f2f9 to rvc-releaseandroid-build-team Robot2020-01-251-0/+1
|\| | | | | | | | | | | | | | | | | | | Change-Id: Id4eddccbe4bdb43dab4c890388498c8c7feb42d7
| * | | | Make ramdisk_available. am: 975193e289 am: 2b7518579d am: 29c6ad693cAutomerger Merge Worker2020-01-251-0/+1
| |\| | | | | | | | | | | | | | | | | | Change-Id: I2c3df63fcbdc7c6ac8d81e46cefc07d4f0b01cd3
| | * | | Make ramdisk_available. am: 975193e289 am: 2b7518579dAutomerger Merge Worker2020-01-251-0/+1
| | |\| | | | | | | | | | | | | | | | | Change-Id: Ib56b06f09240eebeb31bc9b6543626b26edad016
| | | * | Make ramdisk_available.Yifan Hong2020-01-241-0/+1
| | |/| | | | | |/ | | | | | | | | | | | | | | | | am: 975193e289 Change-Id: I107ef904fb46dded7a44bd0ff4b6ee688fabcf96
| | | * Make ramdisk_available.Yifan Hong2020-01-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Test: pass Bug: 147347110 Change-Id: I95006f1b1667e1cf316b25f4ece153643ca31dfc
* | | | Snap for 5999026 from a602dfb9649d022d596cd0300f472fc745ac7a3d to rvc-releaseandroid-build-team Robot2019-11-101-1/+1
|\| | | | | | | | | | | | | | | Change-Id: Id879f967ffe2de9dbba22bca91a7149b588e2346
| * | | Change je_iterate to je_malloc_iterate. am: 8aa48b4f72 am: 76307d1c57Christopher Ferris2019-11-081-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | am: ccccb453ca Change-Id: I76fdee866376e0016745c770e46eb10f553c24c9
| | * | Change je_iterate to je_malloc_iterate. am: 8aa48b4f72Christopher Ferris2019-11-081-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | am: 76307d1c57 Change-Id: Ic5b7d87814ba72ba37f24305eee63589b52b3d48
| | | * Change je_iterate to je_malloc_iterate.Christopher Ferris2019-11-081-1/+1
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | am: 8aa48b4f72 Change-Id: I0399ab728fb3fd5f97e306596d87a945ec0b400c
| | | | * Change je_iterate to je_malloc_iterate.Christopher Ferris2019-11-081-1/+1
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | Match the name that bionic expects. Test: Compiles. Change-Id: I2ad4a6e7ee6c2831cc4b1c5b834c2d5334164d3b
* | | | Snap for 5968874 from 4a3f4ff6e47d7e999d79afcf25bdd50b718a9ecd to rvc-releaseandroid-build-team Robot2019-10-261-0/+94
|\| | | | | | | | | | | | | | | Change-Id: Id655bf715186b100d720e2cf978ca9888e0be47d
| * | | Add configure script for jemalloc. am: 9918bd263a am: f435ef65df am: db317931e8Christopher Ferris2019-10-241-0/+94
| |\| | | | | | | | | | | | | | | | | | | | | | am: 8ac3fef633 Change-Id: I2e5d657ec20e13e245573444f51df3c633f42258
| | * | Add configure script for jemalloc. am: 9918bd263a am: f435ef65dfChristopher Ferris2019-10-241-0/+94
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | am: db317931e8 Change-Id: I922efff62e924eea14a0f0794744901a7cce6522
| | | * | Add configure script for jemalloc. am: 9918bd263aChristopher Ferris2019-10-241-0/+94
| | |/| | | | | |/ | | | | | | | | | | | | | | | | am: f435ef65df Change-Id: I8b99d54fb75e7a229c7612553bc3dc3226b097b3
| | | * Add configure script for jemalloc.Christopher Ferris2019-10-241-0/+94
| | |/| | | | | | | | | | | | | | | | | | | | | am: 9918bd263a Change-Id: I098fa762629d20ed0f4a49d28343ad0cf0596f34
| | | * Add configure script for jemalloc.Christopher Ferris2019-10-231-0/+94
| | |/ | | | | | | | | | | | | Test: Ran this when building jemalloc 5.2.1. Change-Id: I6c7de59cdede844f3469bcd045e8e1b638112c54
* | | Snap for 5541268 from b42d7b1aa67df1b3945092fefb8446d2530bba2d to rvc-releaseandroid-build-team Robot2019-05-081-0/+1
|\| | | | | | | | | | | Change-Id: Ib7aa8f5430a483452c128f27d4812a68a24d071b
| * | jemalloc5 supports native_bridge am: ff3a3553d7 am: 26879e335fdimitry2019-05-071-0/+1
| |\| | | | | | | | | | | | | | | | am: 6840b22e8e Change-Id: I8828c63349d5f8546c6eaef86d66b058f1cb9787
| | * jemalloc5 supports native_bridge am: ff3a3553d7ndk-sysroot-r21dimitry2019-05-071-0/+1
| | |\ | | | | | | | | | | | | | | | | | | | | am: 26879e335f Change-Id: Id2ba93b17636d6158ddf97b6aa7574ca075cd7d2
| | | * jemalloc5 supports native_bridgedimitry2019-05-071-0/+1
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | am: ff3a3553d7 Change-Id: If00479492928217206c3da592a9bc61ac70a4be4
| | | | * jemalloc5 supports native_bridgedimitry2019-05-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The library can be included to binaries compiled for translated architectures. Bug: http://b/77159578 Test: make Change-Id: Ibc0440ec239d7dcd2c06f3630713e3c2be97cb02
* | | | | Snap for 5533215 from c1e48d8b3ba4c48ae9c9a30fc2c9644da06a9a16 to rvc-releaseandroid-build-team Robot2019-05-041-34/+39
|\| | | | | | | | | | | | | | | | | | | Change-Id: Iacc3fb1206e6dd588da3fc4663019daffef70e43
| * | | | [automerger skipped] Fix miscalculating large memory allocations. am: ↵Christopher Ferris2019-05-030-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 68a632d493 am: fd9872508f -s ours am: ad40e8a400 -s ours am skip reason: change_id Id2fd0c38106fa0150ff6baae538ecaea356296ec with SHA1 158f084de4 is in history Change-Id: Iff73a0ed18b1629720a4d49548afd853b45c81c0
| | * | | [automerger skipped] Fix miscalculating large memory allocations. am: 68a632d493Christopher Ferris2019-05-030-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fd9872508f -s ours am skip reason: change_id Id2fd0c38106fa0150ff6baae538ecaea356296ec with SHA1 158f084de4 is in history Change-Id: I2c3449dc4e51d785aff50506c0c04f104ba41e03
| | | * | Fix miscalculating large memory allocations.Christopher Ferris2019-05-031-34/+39
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | am: 68a632d493 Change-Id: I0bd679f9b42051e5c5a223b333835eeb1e5776f9
| | | | * Fix miscalculating large memory allocations.Christopher Ferris2019-05-031-34/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 131864803 Test: New bionic unit test to make sure that mallinfo and malloc_info match. Change-Id: Id2fd0c38106fa0150ff6baae538ecaea356296ec Merged-In: Id2fd0c38106fa0150ff6baae538ecaea356296ec (cherry picked from commit 158f084de4880d7241a9cd9c4d0e5571e9ea6a2b)
| * | | | Fix miscalculating large memory allocations. am: 158f084de4Christopher Ferris2019-05-031-34/+39
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f3cd3f3a31 Change-Id: I6f9a6717829fd1774a12565d4f515f87e2e59656
| | * | | Fix miscalculating large memory allocations.Christopher Ferris2019-05-031-34/+39
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 158f084de4 Change-Id: Ia59570d18cbea711529e93c3424bf4689c0979fd
| | | * | | Fix miscalculating large memory allocations.android-mainline-10.0.0_r9android-mainline-10.0.0_r7android-mainline-10.0.0_r5android-mainline-10.0.0_r4android-mainline-10.0.0_r10android-10.0.0_r9android-10.0.0_r8android-10.0.0_r7android-10.0.0_r45android-10.0.0_r44android-10.0.0_r43android-10.0.0_r42android-10.0.0_r41android-10.0.0_r40android-10.0.0_r39android-10.0.0_r38android-10.0.0_r37android-10.0.0_r36android-10.0.0_r35android-10.0.0_r34android-10.0.0_r33android-10.0.0_r32android-10.0.0_r31android-10.0.0_r30android-10.0.0_r14android-10.0.0_r13android-10.0.0_r12android10-qpr3-s1-releaseandroid10-qpr3-releaseandroid10-qpr2-s4-releaseandroid10-qpr2-s3-releaseandroid10-qpr2-s2-releaseandroid10-qpr2-s1-releaseandroid10-qpr2-releaseandroid10-qpr1-mainline-releaseandroid10-mainline-media-releaseandroid10-devandroid10-d4-s1-releaseandroid10-d4-releaseandroid10-c2f2-s2-releaseandroid10-c2f2-s1-releaseandroid10-c2f2-releaseChristopher Ferris2019-05-021-34/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 131864803 Test: New bionic unit test to make sure that mallinfo and malloc_info match. Change-Id: Id2fd0c38106fa0150ff6baae538ecaea356296ec
| * | | | | Remove unused stats from cache structure. am: 801fe3af80Christopher Ferris2019-05-010-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cb7b096e88 Change-Id: I219c3bc784961b5335449e732fa5f8a01b613ccc
| | * | | | Remove unused stats from cache structure.Christopher Ferris2019-05-010-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 801fe3af80 Change-Id: I16f8c6f58921a5a6eb1abedf4f84182378c7affc
| | | * | | Remove unused stats from cache structure.Christopher Ferris2019-05-014-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing the stats make the whole cache structure fit in a single page. Bug: 131362671 Test: Verified that all bionic malloc benchmarks are still the same. Test: It turns out that the malloc_sql benchmarks seem to get faster. Test: Verified that after this change, it saves about 2K PSS per thread. Change-Id: I4dcd633543f05f1a9d47db175f9977ddb42188a9 (cherry picked from commit a8b52518654725e64def5ebbd0ed472100e5a522)
* | | | | | Snap for 5523005 from 9ff5305a8805b00b103a294a285f8fb9728c23b6 to rvc-releaseandroid-build-team Robot2019-05-024-0/+27
|\| | | | | | | | | | | | | | | | | | | | | | | Change-Id: I5e7e073b4dc6c0f96639df5993a72337f148d0d3
| * | | | | Remove unused stats from cache structure. am: a8b5251865 am: 4d954e036eChristopher Ferris2019-05-014-0/+27
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0cce1688e3 Change-Id: I2655bb1065d984dd87610f601b0e51c3f1e8d111
| | * | | | Remove unused stats from cache structure. am: a8b5251865Christopher Ferris2019-05-014-0/+27
| | |\ \ \ \ | | | | |/ / | | | |/| | | | | | | | | | | | | | | | | | | | am: 4d954e036e Change-Id: I1cee8874b4d6f142f988826fc7f6126b94598f0d
| | | * | | Remove unused stats from cache structure.Christopher Ferris2019-05-014-0/+27
| | | |\ \ \ | | | | | |/ | | | | |/| | | | | | | | | | | | | | | | | | | am: a8b5251865 Change-Id: I467d5f60fd2383a311a5a85b68088e30a2e6bf47
| | | | * | Remove unused stats from cache structure.Christopher Ferris2019-04-304-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing the stats make the whole cache structure fit in a single page. Bug: 131362671 Test: Verified that all bionic malloc benchmarks are still the same. Test: It turns out that the malloc_sql benchmarks seem to get faster. Test: Verified that after this change, it saves about 2K PSS per thread. Change-Id: I4dcd633543f05f1a9d47db175f9977ddb42188a9
* | | | | | Snap for 5457103 from 2f2c7b4b12c7379b95a73b7459a0792de62c3cdb to rvc-releaseandroid-build-team Robot2019-04-110-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | Change-Id: I98e85d23fac656e86da5ad917249524f0b2ba01b
| * | | | | [automerger skipped] Fix performance of multiple same size allocations. am: ↵Christopher Ferris2019-04-090-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 25b667ba39 -s ours am: 43ebc666b4 -s ours am skip reason: change_id Iff41d5b5002919c4df03fcb7d742e501f9e38b8e with SHA1 0af4ee86df is in history Change-Id: Icbaaf7eba4b4b8fe970c0944921aeb6b579f834f
| | * | | | [automerger skipped] Fix performance of multiple same size allocations.Christopher Ferris2019-04-090-0/+0
| | |\ \ \ \ | | | | |_|/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | am: 25b667ba39 -s ours am skip reason: change_id Iff41d5b5002919c4df03fcb7d742e501f9e38b8e with SHA1 0af4ee86df is in history Change-Id: I954cf82ceb60ec1da2aab050f9fc9a58c0e74d01
| | | * | | Fix performance of multiple same size allocations.Christopher Ferris2019-04-091-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was found that keeping just a few allocations of the same size around (even up to only 3) increases the allocation time significantly. This appears to be because I set the minimum tcache entries to 1. Removing this and the performance comes mostly all of the way back. There is still some loss, but probably just due to a different bin layout than jemalloc 4.x. This does increase the PSS slightly for many processes. About 1MB in my trace runs. However, it increases the performance of most multiple allocations by a factor of three. Bug: 129743239 Test: Ran memory_replay on all traces. Test: Ran new bionic benchmarks to verify things get better. Change-Id: Iff41d5b5002919c4df03fcb7d742e501f9e38b8e Merged-In: Iff41d5b5002919c4df03fcb7d742e501f9e38b8e (cherry picked from commit 0af4ee86dfa643feb786d659dbb219133c776a34)
* | | | | | Snap for 5452753 from fa0bc997276cda2a9d45c67c909d2f0eeaaa22ea to rvc-releaseandroid-build-team Robot2019-04-101-3/+1
|\| | | | | | | | | | | | | | | | | | | | | | | Change-Id: I172d410243c136b971411e30df854fc0e11c45c9
| * | | | | Fix performance of multiple same size allocations. am: 0af4ee86df am: 592a1ea7a9Christopher Ferris2019-04-091-3/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a998911727 Change-Id: I36f69641181b3839d8cb88ea57e2ce72e0557867