Skip to content
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

ignition-ostree-rootfs: use our own tmpfs with size=80% #685

Merged
merged 3 commits into from Oct 14, 2020

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Oct 14, 2020

In f33 systemd, /run is now mounted with a smaller size cap instead of
the default 50%:

systemd/systemd#15424

This was causing the rootfs reprovisioning code to run out of space.

Let's use this as an opportunity to be more explicit about the memory
semantics we want. Notably, we don't care about starving the host here;
either we have enough memory to reprovision the rootfs, or we should
fail. So let's just mount our own tmpfs with size=80%.

This in turn means that machines need even less RAM for rootfs
reprovisioning to work. A local test shows 2.5G seems to be enough.
Though let's keep recommending 4G in the docs to be safe.

A minor thing this also fixes is that we now clean up a leftover
directory and file from /run before we switchroot.

Closes: coreos/fedora-coreos-tracker#644

We don't need access to the platform ID, so just drop it.
We can just pass the path to `find` directly.

Prep for next patch.
In f33 systemd, /run is now mounted with a smaller size cap instead of
the default 50%:

systemd/systemd#15424

This was causing the rootfs reprovisioning code to run out of space.

Let's use this as an opportunity to be more explicit about the memory
semantics we want. Notably, we don't care about starving the host here;
either we have enough memory to reprovision the rootfs, or we should
fail. So let's just mount our own tmpfs with `size=80%`.

This in turn means that machines need even *less* RAM for rootfs
reprovisioning to work. A local test shows 2.5G seems to be enough.
Though let's keep recommending 4G in the docs to be safe.

A minor thing this also fixes is that we now clean up a leftover
directory and file from `/run` before we switchroot.

Closes: coreos/fedora-coreos-tracker#644
@jlebon jlebon changed the title ignition-ostree-rootfs: use our own tmpfs with size=100% ignition-ostree-rootfs: use our own tmpfs with size=80% Oct 14, 2020
@jlebon jlebon requested a review from cgwalters October 14, 2020 20:13
@jlebon jlebon merged commit 627f2e1 into coreos:testing-devel Oct 14, 2020
@jlebon jlebon deleted the pr/run-mount-rootfs branch October 14, 2020 20:32
@dustymabe
Copy link
Member

Thanks for tracking this down @jlebon

@jlebon jlebon mentioned this pull request Dec 7, 2020
c4rt0 pushed a commit to c4rt0/fedora-coreos-config that referenced this pull request Mar 27, 2023
25rhcos-azure-udev-rules: add 50-azure-ptp.rules
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.

F33: ext.config.root-reprovision* tests failing
3 participants