Skip to content

Commit e3360db

Browse files
committed
feat(ext4): enable inline_data on rootfs mkfs
Tiny files (<~160 B with default 256 B inodes) now live inside the inode instead of getting their own 4 KiB data block. Reduces rootfs diff size for small-file churn (pidfiles, /run state, utmp, package metadata) and improves locality since dirty blocks cluster on inode-table blocks rather than scattering across the data region — fewer GCS chunks per cold resume. mkfs-time only; applies to newly-built bases. Existing diff/discard behaviour unchanged for files above the inline threshold.
1 parent 87016d0 commit e3360db

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • packages/orchestrator/pkg/template/build/core/filesystem

packages/orchestrator/pkg/template/build/core/filesystem/ext4.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ func Make(ctx context.Context, rootfsPath string, sizeMb int64, blockSize int64)
5454
"filetype",
5555
"flex_bg",
5656
"huge_file",
57+
// Pack file data <~160 B inside the inode to avoid a 4 KiB data block per tiny file.
58+
"inline_data",
5759
"large_file",
5860
"sparse_super2",
5961
}, ","),

0 commit comments

Comments
 (0)