You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Trying to create more than ~400 processes / threads fails
To Reproduce
distrobox create --name test --init --image quay.io/archlinux/archlinux:latest --additional-packages "systemd"
distrobox enter test
for i in {1..400} ; do ( sleep 1 & ); done
Desktop:
Using podman version 4.9.0
Using distrobox version 1.6.0.1
On: NixOS 24.05 (Uakari) & unstable packages
Distrobox was installed with the installation scripts into ~/.local
Additional context
I'm not entirely sure if it is resource limits, but it seems to have something to do with the distrobox enter command putting your shell in init.scope
[siryellsalot@test ~]$ systemctl status
● test.gengar
State: running
Units: 554 loaded (incl. loaded aliases)
Jobs: 0 queued
Failed: 0 units
Since: Thu 2024-02-01 22:26:37 UTC; 11min ago
systemd: 255.3-1-arch
CGroup: /
├─init.scope
│ ├─ 1 /usr/lib/systemd/systemd --system --log-target=console --unit=multi-user.target
│ ├─ 951 script -c "cat /var/console" /dev/null
│ ├─ 954 cat /var/console
│ ├─1045 /usr/sbin/bash -l
│ ├─1939 /usr/sbin/bash -l
│ ├─1949 systemctl status // <- status command and shell is here
│ └─1950 less
├─system.slice
// you get the idea ...
However using machinectl to make systemd start a shell for you works around this issue:
This doesn't work to fix the my original use case, which was to use VsCode + Platform IO (that hit the limit) because``machinectl shell``` discards all stuff that distrobox does to integrate with host.
Any ideas?
The workaround also only raises the limit to somewhere around 660 however that should still be enough
The text was updated successfully, but these errors were encountered:
Description
Trying to create more than ~400 processes / threads fails
To Reproduce
Error:
bash: fork: retry: Resource temporarily unavailable
Expected behavior
Bash does not fail to create more than ~400 processes
Logs
distrobox-test.log
podman-logs.log
Desktop:
Using podman version 4.9.0
Using distrobox version 1.6.0.1
On: NixOS 24.05 (Uakari) & unstable packages
Distrobox was installed with the installation scripts into ~/.local
Additional context
I'm not entirely sure if it is resource limits, but it seems to have something to do with the
distrobox enter
command putting your shell ininit.scope
However using machinectl to make systemd start a shell for you works around this issue:
This doesn't work to fix the my original use case, which was to use VsCode + Platform IO (that hit the limit) because``machinectl shell``` discards all stuff that distrobox does to integrate with host.
Any ideas?
The workaround also only raises the limit to somewhere around 660 however that should still be enough
The text was updated successfully, but these errors were encountered: