-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
osbuild: support more platforms; reduce memory usage for mkfs.erofs #4025
Conversation
It was originally set to 6 because that was the tool default (5cbba45) but we have used level 9 in other places [1]. [1] https://github.com/coreos/coreos-assembler/blob/e1943d6adb8f0cb257630a76d02d0aa333261c70/src/cosalib/qemuvariants.py#L327
This will give us all the options we need to create a few of our images that are VMDKs. osbuild/osbuild#2017
This will help reduce the memory requirements of mkfs.erofs. osbuild/osbuild#2020
Using mkfs.erofs has bumped the requirements for the amount of memory we need here. While the memory usage was improved with the changes in [1] and [2] we want to bump this here anyway to give ourselves some wiggle room (especially because RHCOS is larger than FCOS). [1] erofs/erofs-utils#13 [2] osbuild/osbuild#2020
While I haven't tested each one of these directly I did verify the image files produced have the same attributes (using diff-build-sizes-after-cosa-compress.txt
I'm not exactly sure why the compressed version is about 22M larger than what we had before for the images that are just qcow2 transforms, but I'm not sure it's worth trying to chase it down either. |
ok. I think this is going to require us to bump our cache qcow size. I did a rawhide run and we barely made it through:
The RHCOS one I kicked off did fail. |
Now that we can build more and more artifacts in OSBuild it increases the size we need for the cache qcow that gets attached to the supermin VM. Let's bump to 40G here. Observing a RHCOS and FCOS run here they both use right around 30G today because FCOS builds for more platforms, but RHCOS has a bigger payload, so they even out. In the they will be even bigger when we become able to build the last few artifacts (vmware, virtualbox, etc) using OSBuild.
added a commit here to do just that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Mostly all new platform.NAME.ipp.yaml
look the same, does it make sense to make them auto-generated, or as symlink
to 1 base-config + some env
variable for plathform-name
?
Possibly. I've thought about it a little bit. Autogenerated would be more likely to be compatible with OSBuild. |
Just wanted to mention that I did a test rawhide run with these changes and our cloud tests (AWS, Azure, GCP, OpenStack) did pass, so at least we know those images are still functioning. |
See individual commit messages.