Merge "Fix the dm-verity Merkle tree caches to not expire so quickly" into main am: 6dc0ed1758
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3377529 Change-Id: Id336c8aea1a2abf9cf9d8dfbfcf735109f1103d6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
a3ce66437c
1 changed files with 4 additions and 0 deletions
|
|
@ -54,6 +54,10 @@ on early-init
|
|||
mkdir /linkerconfig/bootstrap 0755
|
||||
mkdir /linkerconfig/default 0755
|
||||
|
||||
# Greatly extend dm-verity's Merkle tree cache timeout. The default timeout
|
||||
# is much too short and is unnecessary, given that there is also a shrinker.
|
||||
write /sys/module/dm_bufio/parameters/max_age_seconds 86400
|
||||
|
||||
# Disable dm-verity hash prefetching, since it doesn't help performance
|
||||
# Read more in b/136247322
|
||||
write /sys/module/dm_verity/parameters/prefetch_cluster 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue