Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc8f563d authored by Eric Biggers's avatar Eric Biggers Committed by Automerger Merge Worker
Browse files

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

Merge "Fix the dm-verity Merkle tree caches to not expire so quickly" into main am: 6dc0ed17 am: a3ce6643

Original change: https://android-review.googlesource.com/c/platform/system/core/+/3377529



Change-Id: Ia69d46ac326a5e99ffd04f79aadadebcd696002d
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents ee495933 a3ce6643
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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