Closed nd2408 closed 1 year ago
Sounds like a bug, I suggest you bring this issue up upstream as I don't think podman can do much about it, we could set a different mtu but I would like to avoid that and just follow the default from pasta.
see https://passt.top/passt/bugs and https://passt.top/passt/lists
cc @sbrivio-rh
Thanks @Luap99 for the Cc:! We can also follow up here even if it's clearly a bug in pasta and not in Podman, is that okay?
@nd2408 the 64 KiB MTU should be always fine, unlike with slirp4netns, so if that's causing problems, we have a problem we need to fix.
I haven't tried to reproduce the issue yet. Meanwhile, two things would be helpful:
strace
from the misbehaving process when it's using a full CPU thread, half a second would be enough. You need to run that (something like strace -p $(pidof pasta) 2>strace.log
) as root, pasta won't let unprivileged users trace its system calls
debug log from pasta that you can get with --net=pasta:-d,-l,/tmp/pasta.log
Thanks!
We can also follow up here even if it's clearly a bug in pasta and not in Podman, is that okay?
yes, easier for me to keep track as well
forgot to mention that this is bleeding over from /r/podman and that @TomSweeneyRedHat suggested i submit an issue here.
@sbrivio-rh i had to bump up the --log-size
, tons of spam but hopefully a few seconds of runtime is enough:
15.7990: TCP: index 86, timer expires in 2.000s
15.7990: TCP: index 86, timer expires in 2.000s
15.7990: TCP: index 86, timer expires in 2.000s
15.7991: TCP: index 86, timer expires in 2.000s
15.7991: TCP: index 86, timer expires in 2.000s
15.7991: TCP: index 86, timer expires in 2.000s
15.7991: TCP: index 86, timer expires in 2.000s
i'll try the strace
here in a bit
forgot to mention that this is bleeding over from /r/podman and that @TomSweeneyRedHat suggested i submit an issue here.
By the way, pasta has been available on Fedora for quite a while now, https://bodhi.fedoraproject.org/updates/?packages=passt
...and it's available on Ubuntu too, see https://packages.ubuntu.com/lunar/passt
5981 occurrences of:
read(11, 0x55aac3d00036, 8388554) = -1 EAGAIN (Resource temporarily unavailable)
Thanks a lot!
5981 occurrences of:
read(11, 0x55aac3d00036, 8388554) = -1 EAGAIN (Resource temporarily unavailable)
That, by itself, is not an issue -- we don't keep reading if the socket has no frames available, but we read as much data as possible, until we hit EAGAIN
.
I'm still trying to figure out what the problem is here, so I have a few more questions:
sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-ae66901b6a
)? That includes a few fixes, even though I'm not sure yet if any of that is relevant here.Thanks again!
could you check if this happens also with the most recent Fedora 37 package available
$ pasta --version
pasta 0^20230227.gc538ee8-1.fc37.x86_64
Network=pasta
- not working, same as before
I suspect you're hitting some corner case with a particular TCP segment size, that's why I'm asking.
Network=pasta:--mtu,65000
- works,
Network=pasta:--mtu,32000
- works, ~1MB/s faster than 65000, also more consistent
you might be onto something
you shared a chart with "pasta" and "slirp4netns" labels: does that represent network usage? From that, I would infer that with pasta you're only able to download a small part of the ~1 MiB chunks, is that correct?
exactly, it's from the web ui, just shows network speed for the past ~5min.
is there a way I can set up something similar to your NNTP application?
yea, i was thinking we should chat out-of-band so i can get you setup with a proper environment. do you have a preferred email or does passt-sec@passt.top work?
Network=pasta:--mtu,65000
- works,Network=pasta:--mtu,32000
- works, ~1MB/s faster than 65000, also more consistent
Hah, interesting.
yea, i was thinking we should chat out-of-band so i can get you setup with a proper environment. do you have a preferred email or does passt-sec@passt.top work?
You can just use sbrivio@redhat.com. Thanks. By the way, I'm also on IRC (sbrivio) at #passt or #podman on libera.chat, same nick on OFTC.
You can just use sbrivio@redhat.com.
look out for subject: "podman issue #17703"
Fixed in upstream release 2023_03_09.7c7625d, upcoming packages passt-0^20230309.g7c7625d-1.fc37
(Fedora 37), 0.0~git20230309.7c7625d-1
(Debian unstable)
Issue Description
pasta
process is maxing out a thread:pasta
process goes back down to zero percent and if you leave it alone, it'll continue the same pattern after a few minutes:if this is not a bug, can an additional "WARNING" be added to the documentation explaining why? because at first glance, it reads like
slirp4netns
andpasta
use the same default MTU, so you shouldn't need to adjust it.Steps to reproduce the issue
Describe the results you received
Network=slirp4netns:mtu=65520
- worksNetwork=pasta:--mtu,65520
- causes the issues aboveNetwork=pasta:--mtu,1500
- worksDescribe the results you expected
the same as
slirp4netns
with default options, which works fine.podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting