-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
toolbox instructions do not work as expected #1072
Comments
Currently our QEmu script provides 1GB RAM to the VM - maybe we should increase the default in the script? |
Tested in a VM with 2048MB and no more OOM. I think we can keep the helper as it and update the documentation to mention the 2GB for Fedora based toolbox. |
That issue is like an evergreen. 😅 Did you try breaking it up with makecache? That worked on a small vm, haven't tried it in the toolbox. |
Had a similar issue without Flatcar, just plain Fedora on a 1 GB RAM arm64 SoC. A workaround is to use zram, and we also have a small docs section to enable it with Flatcar (but it's not using the systemd generator): https://www.flatcar.org/docs/latest/setup/storage/adding-swap/#using-zram |
I investigated further: it works with Beta and Alpha (it just takes a simple fix, I'll send as a documentation PR). I suspect the bash upgrade to fix this behavior as the systemd unit is formatted in the same way. I'll keep this open for tracking purposes while Beta is not yet promoted to Stable. |
It works fine on Stable too - closing this. |
Description
I noticed this on latest Flatcar Stable (3510.2.2) on QEMU setup:
systemd-run
transient unit is not working as expecteddnf
is being OOM killed (debug: mention the memory limitation for Fedora flatcar-archive/flatcar-docs#317)Impact
Can't follow the documentation to run the toolbox: https://www.flatcar.org/docs/latest/setup/debug/install-debugging-tools/#spawn-a-toolbox-with-tmux-in-the-background or https://www.flatcar.org/docs/latest/setup/debug/install-debugging-tools/#quick-debugging
Environment and steps to reproduce
systemd-run
transient unit is not working as expectedThe command is seen as
dnf
only because of the systemdExecStart
formatting:EDIT: It works on Beta and Alpha (maybe the bash upgrade?)
dnf
is being OOM killedLet's continue without using the
systemd-run
command:Adjusting the
oom_score_adj
makes it "work" but you are ending with other processes being killed (for examplesystemd-networkd
) - as a workaround I used an alpine image:Additional information
Regarding the
dnf
OOM: https://bugzilla.redhat.com/show_bug.cgi?id=1907030The text was updated successfully, but these errors were encountered: