Repository navigation
fedora: decrease pcluster size for atomic ISO - #2713
Conversation
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 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 🙂 |
Yes, pcluster sizes need to be adjusted according to the workload, if there is some unexpected thing on your side, please let me know.
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. |
The default pcluster size used for erofs was sourced from the live installers 1 to keep us in sync. However,
ostreefilesystem 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 GiBsize.pcluster 32 KiB=>3m40s boot and install=>3.9 GiBsize.pcluster 4 KiB=>3m35s boot and install=>4.2 GiBsize.And Fedora 44 was
3.9 GiBin 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
erofsbut this was previously known and not considered a big issue.