-
Notifications
You must be signed in to change notification settings - Fork 222
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
systemd-oomd kills all processes inside a container #816
Comments
Any hints on that one? This issue is pretty annoying. |
Hi @thiblahute! Does the issue occur outside of VSCode? If not, then I'd suggest you to report this in owtaylor/toolbox-vscode instead. I personally have no idea how the scripts work. @owtaylor, should we move this? |
Hi @HarryMichal, good question, I just installed vscode inside the container and am going to use it today and see if it also reproduces without that script. |
Hi @HarryMichal, I can confirm that this happens outside vscode too. I am using toolbox to do KDE development and toolbox silently exists. I am not using any GUI, just a terminal. Can confirm this happens in both bash and zsh. The exit always happens in the middle of compilation, so it might be related to file io or cpu utilization. |
Installing |
I've had this happen a few times too, and it's always been systemd-oomd killing a toolbox when memory gets low. systemd-oomd operates on cgroups, and all processes running inside of each toolbox are in the same cgroup - so the toolbox as a whole is treated as a single process to be killed to reclaim memory. |
That might totally be it in my case, killing toolbox as a whole sounds very suboptimal! |
I wonder if we can somehow prevent the entry point (ie., the |
Or maybe adjust the cgroup namespace? We currently don't touch it which means each toolbx has its own private cgroup (according to Podman's documentation). We could add |
Are you sure that |
Yes, you are right. @halfline pointed out the same thing over at #1207 GNOME Terminal puts each |
This is already the case for containers created with Toolbx >= 0.0.99.4 but it doesn't change the fact that all the processes running inside a Podman container share the same cgroup. |
Describe the bug
I am using toolbox on silverblue 34 all day to do development inside vscode using toolbox-vscode and the container silently stops and I have to reload the vscode window. I think the issue is totally unrelated to vscode but it is just the way I am running my toolbox.
It looks like the command line of the main toolbox process inside the podman container is
toolbox --verboseinit-container --home /var/home/thiblahute --home-link --media-link --mnt-link --monitor-host --shell /bin/bash --uid 1000 --user thiblahute
and I am usingzsh
as default shell inside the container, I have the impression this process stop which leads to the container stopping but I have no proof of that at this point.Steps how to reproduce the behaviour
Expected behaviour
I can use toolbox forever without needing to restart it
Actual behaviour
The toolbox container stops after a while, a few times a day and I have to restart it.
Output of
toolbox --version
(v0.0.90+)Toolbox package info (
rpm -q toolbox
)Output of
podman version
Podman package info (
rpm -q podman
)Info about your OS
Fedora Silverblue 34
The text was updated successfully, but these errors were encountered: