Merge "Fix the dm-verity Merkle tree caches to not expire so quickly" into main

This commit is contained in:
Eric Biggers 2024-12-02 18:11:34 +00:00 committed by Gerrit Code Review
commit 6dc0ed1758

View file

@ -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