summaryrefslogtreecommitdiff
path: root/tools/perf/utils.py
diff options
context:
space:
mode:
author Kelvin Zhang <zhangkelvin@google.com> 2024-01-24 12:39:36 -0800
committer Kelvin Zhang <zhangkelvin@google.com> 2024-01-24 18:37:27 -0800
commit158a5ebbc9883362211aa8560d68d47d89ea9ef9 (patch)
tree1b6fe7ff98c0aad1165de0408869877d41258af1 /tools/perf/utils.py
parentebb0bd4b8171a6b6158ed0fcb8488c3328fab207 (diff)
Fix ext4 size estimates
Currently, EXT4 image building is done in a 2 pass fashion: First pass: build ext4 image with small margin/headroom, check the number of block used in the output image Second pass: Build ext4 image again with an estimated block count from first pass The two pass implementation is done to keep image size at a minimum. Recently some failures in first pass invocation is observed due to image being undersized. Since we will reduce the image size in 2nd pass, it's OK to increase the image size estimate during first pass. Add a headroom 10% of total file size to fix build failures. Test: cherry pick r.android.com/q/topic:%22aosp_cf_system_x86_64%22 and m aosp_cf_system_x86_64 Bug: 321003625 Change-Id: I254310c67a08b98b05d2c858d4ab59a48112a07b
Diffstat (limited to 'tools/perf/utils.py')
0 files changed, 0 insertions, 0 deletions