commit | e6ef303b4971d66c51318bde3bc13d23a034d539 | [log] [tgz] |
---|---|---|
author | Yaneury Fermin <yaneury@google.com> | Tue Dec 20 17:37:48 2022 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Dec 20 09:46:49 2022 -0800 |
tree | 99862a62d2fefa0e5999ce16db1837f15ea7fdcc | |
parent | c2fc6d3768b5519eb6a61e1285cd2aa661b23691 [diff] |
[scudo][standalone] Precommit pages On Fuchsia, this CL changes garbage collection to precommit all pages if the |Buffer| doesn't fit into the static buffer size. A test program (scudotest) was used that deliberately grows a size class high water mark to the point where the pre-allocated static buffer is no longer used for garbage collection. Traces showed that precommiting the Vmar removes ~30 page faults and ~.22ms of wall time.* Before: https://ui.perfetto.dev/#!/?s=7da19fc3f59448eef51fd6fd03283bb87b702cf1a565bcbe6c9c28371671 After: https://ui.perfetto.dev/#!/?s=97707cd99b2c9efd1e6569b2deb97e3d16f8be532c59a0cc12463c37fbb1d8 *: Use the added `zx_vmar_op_range` as a reference point to observe the differences. For more context, see https://fxbug.dev/115594. Reviewed By: Chia-hungDuan Differential Revision: https://reviews.llvm.org/D140320 GitOrigin-RevId: 5a1525c57635f3633e069c23f20ca12fe92ecced Change-Id: I3d1a0f34b91386c7be4737f0c2e00e7d3dc38b62