[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
Loading
Please sign in to comment