Skip to content

Commit 5315a41

Browse files
committed
[DEBUG]
1 parent df9ba96 commit 5315a41

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

meta-balena-common/recipes-support/os-helpers/os-helpers/test-zram-estimation.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ modprobe zram || true
3636

3737
# Configure zram0 (assuming it's available) with size 100MiB more than the test file size for meta-data
3838
if ! ZRAM_DEV=$(zramctl --find --size "$(( TEST_CONTENT_SIZE + (100 * 1024 * 1024)))" --algo zstd); then
39+
info "Available zram devices: " "$(zramctl)"
40+
zramctl --reset "/dev/zram0" || true
41+
if ZRAM_DEV=$(zramctl --find --size "$(( TEST_CONTENT_SIZE + (100 * 1024 * 1024)))" --algo zstd); then
42+
info "Initialized $ZRAM_DEV."
43+
fi
3944
fail "Failed to set up zram device."
4045
fi
4146

0 commit comments

Comments
 (0)