Skip to content

fedora: decrease pcluster size for atomic ISO - #2713

Merged
supakeen merged 1 commit into
osbuild:mainfrom
supakeen:atomic-pcluster
Sep 24, 2026
Merged

supakeen merged 1 commit into
osbuild:mainfrom
supakeen:atomic-pcluster

Conversation

@supakeen

@supakeen supakeen commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

The default pcluster size used for erofs was sourced from the live installers 1 to keep us in sync. However, ostree filesystem access patterns involve many small reads and the read amplification caused by this increases the boot and install time for the Atomic ISOs almost twofold and likely worse on slower hardware as it scales badly with storage speed.


Some numbers as to why I picked a cluster size of 32 KiB.

pcluster 1 Mib => 5m55s boot and install => 3.7 GiB size.
pcluster 32 KiB => 3m40s boot and install => 3.9 GiB size.
pcluster 4 KiB => 3m35s boot and install => 4.2 GiB size.

And Fedora 44 was 3.9 GiB in size (it used squashfs).


Note that these numbers aren't entirely the boot / install time of the ISO but include the build time. The build time also increased with erofs but this was previously known and not considered a big issue.

image

The default pcluster size used for erofs was sourced from the live
installers [1] to keep  us in sync. However, `ostree` filesystem access
patterns involve *many* small reads and the read amplification caused by
this increases the boot and install time for the Atomic ISOs almost
threefold.

[1]: https://forge.fedoraproject.org/releng/kiwi-descriptions/src/branch/rawhide/components/liveinstall.xml

Signed-off-by: Simon de Vlieger <[email protected]>
@supakeen supakeen changed the title fedora: change pcluster for atomic ISO fedora: decrease pcluster size for atomic ISO Sep 23, 2026
@supakeen
supakeen marked this pull request as ready for review September 23, 2026 19:36
@supakeen
supakeen requested a review from a team as a code owner September 23, 2026 19:36

@brlane-rht brlane-rht left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@hsiangkao

Copy link
Copy Markdown

@supakeen is there some existing atomic image link I could look into that? still wonder the bottleneck of the build time and I can improve this.

@supakeen
supakeen added this pull request to the merge queue Sep 24, 2026
@supakeen

Copy link
Copy Markdown
Member Author

@supakeen is there some existing atomic image link I could look into that? still wonder the bottleneck of the build time and I can improve this.

This ISO has a pcluster size of 1 MiB so it has the read amp, but I think this is "expected" (I just didn't think about it) in the ostree case as we're reading and installing many very small files. I can also provide you an ISO with the smaller pclusters if you want.

For the build times it is not enough of an issue, I should really dive into that myself 🙂

Merged via the queue into osbuild:main with commit 97ac1a3 Sep 24, 2026
62 checks passed
@supakeen
supakeen deleted the atomic-pcluster branch September 24, 2026 06:09
@hsiangkao

Copy link
Copy Markdown

@supakeen is there some existing atomic image link I could look into that? still wonder the bottleneck of the build time and I can improve this.

This ISO has a pcluster size of 1 MiB so it has the read amp, but I think this is "expected" (I just didn't think about it) in the ostree case as we're reading and installing many very small files. I can also provide you an ISO with the smaller pclusters if you want.

Yes, pcluster sizes need to be adjusted according to the workload, if there is some unexpected thing on your side, please let me know.

For the build times it is not enough of an issue, I should really dive into that myself 🙂

I'm wonder about this part more a bit, but still needs to seek time to look into if it's still an issue on ostree images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants