Skip to content

Commit 89b09b8

Browse files
authored
Merge pull request #1506 from Dstack-TEE/squashfs-parallel-read
os/mkosi: read squashfs file data in parallel
2 parents 9c1a01e + 8e6230f commit 89b09b8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎os/mkosi/components/kernel/kernel.config‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,16 @@ CONFIG_CRYPTO_CHACHA20POLY1305=y
119119
CONFIG_EXT4_FS=y
120120
CONFIG_SQUASHFS=y
121121
CONFIG_SQUASHFS_ZSTD=y
122+
# Read squashfs file data in parallel. The default buffered path copies every
123+
# data block through a per-mount cache with one entry per decompressor, and the
124+
# default single decompressor makes that one entry, so all reads of a mount
125+
# serialize even when the blocks are stored uncompressed: a verity volume on a
126+
# B300 host capped at ~700 MB/s against 4.6 GB/s from the raw disk (#1505).
127+
# FILE_DIRECT decompresses straight into the page cache, and the per-CPU
128+
# decompressors let compressed blocks scale with readers as well, at the cost
129+
# of one decompressor workspace per CPU per mount.
130+
CONFIG_SQUASHFS_FILE_DIRECT=y
131+
CONFIG_SQUASHFS_COMPILE_DECOMP_MULTI_PERCPU=y
122132
CONFIG_XFS_FS=m
123133
CONFIG_BTRFS_FS=m
124134
CONFIG_OVERLAY_FS=y

0 commit comments

Comments
 (0)