[all-commits] [llvm/llvm-project] 36dff0: [scudo] Reduce unsuccessful attempts of page relea...
ChiaHungDuan via All-commits
all-commits at lists.llvm.org
Wed Oct 2 13:35:08 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 36dff0d011cc1cf5a41e7e0b30057206ea9fd6f9
https://github.com/llvm/llvm-project/commit/36dff0d011cc1cf5a41e7e0b30057206ea9fd6f9
Author: ChiaHungDuan <chiahungduan at google.com>
Date: 2024-10-02 (Wed, 02 Oct 2024)
Changed paths:
M compiler-rt/lib/scudo/standalone/primary64.h
Log Message:
-----------
[scudo] Reduce unsuccessful attempts of page releasing (#110583)
We introduce a new strategy to track how many bytes are not released
because of the contraint of release interval. This will change the
`TryReleaseThreshold` adaptively so that we avoid releasing the same
pages multiple times (and wasting time on the case of no pages to
release).
On Android, the number of release attempts decreases 33% (572 to 382)
and the worst case drops from 251 to 33. At the same time, it maintains
almost the same RSS usage (with some improvements as well).
Note that in this CL, this is only applied to non small blocks. We will
bring the strategy to all the size classes later.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list