Open mkoura opened 3 years ago
Running with DBUS_SYSTEM_BUS_ADDRESS=unix:path=/nonexistent mc
removes the delay so this confirms the issue is somehow caused by interaction with dbus.
I see that it's connecting to /run/dbus/system_bus_socket
, and right before the ppoll
, there's this:
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable) <0.000005>
I wonder if it was a mistake to offer the system D-Bus socket to rootless Toolbox containers.
Do you happen to know why mc
is trying to use the system D-Bus instance?
No idea, I'm not familiar with D-Bus enough to be able to speculate why they chose to use the system socket instead of the session one.
Hi @mkoura! I wonder if this isn't somehow related to XWayland. The only thing Toolbox does with DBus is the exposure of the sockets. If the issue still persists, it might be worth comparing the startup speed between mc
in a toolbox and mc
on the host (which should be easy to do since you use Workstation).
Hi! I don't think it's related to XWayland, I don't use Wayland (I have nvidia...). The startup speed difference between toolbox and host is ~ 5 seconds (measured with time
and F10 as soon as UI appeared).
I think the issue is that toolbox exposes the system D-Bus socket and applications can't use it from rootless container.
Describe the bug After updating my Fedora 33 to toolbox 0.0.99, I notice long start time (several seconds) of some applications, namely
mc
. When running withstrace -T -o out.log mc
, I can seerepeated several times.
Notice almost one second delay caused by
ppoll([{fd=3, events=POLLIN}], 1, {tv_sec=119, tv_nsec=999933000}, NULL, 8) = 1 ([{fd=3, revents=POLLIN}], left {tv_sec=119, tv_nsec=1179715}) <0.998779>
Steps how to reproduce the behaviour
mc
in up-to-date Fedora 33 toolbox running on up-to-date Fedora 33Expected behaviour No delay when starting applications.
Output of
toolbox --version
(v0.0.90+)toolbox version 0.0.99
Toolbox package info (
rpm -q toolbox
)toolbox-0.0.99-1.fc33.x86_64
Output of
podman version
Podman package info (
rpm -q podman
)podman-2.2.1-1.fc33.x86_64
Info about your OS Fedora Workstation 33