Skip to content
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

100% CPU usage used with podman #157

Closed
supermar1010 opened this issue Oct 19, 2019 · 10 comments
Closed

100% CPU usage used with podman #157

supermar1010 opened this issue Oct 19, 2019 · 10 comments
Labels
bug Something isn't working

Comments

@supermar1010
Copy link

supermar1010 commented Oct 19, 2019

Hi,
I'm using this project with podman. I'm not sure if this is related to podman or to slirp4netns. So I'm posting it here and at podman.
I have one container with networking mode host, all the others have no setting so I guess podman namespaces them I have four containers running, one with root permissions.
This is the command using all 100% of the CPU on one core.
/usr/bin/slirp4netns --api-socket /run/user/1000/libpod/tmp/18c14ae7aed050b0063c4b5f75af384721a280011fbf95a7e85042112af7458d.net --disable-host-loopback --mtu 65520 -c -e 3 -r 4 --netns-type=path /run/user/1000/netns/cni-7913c5a5-8763-5636-16ad-286fa2a0a376 tap0

As far I can tell everything works as expected. So no problems on the functional site.
Any idea what is causing this?

@AkihiroSuda
Copy link
Member

With what workloads?

@supermar1010
Copy link
Author

supermar1010 commented Oct 20, 2019 via email

@supermar1010
Copy link
Author

Another thing I just noticed, it seems to limit my tor middle relay as I'm only having a throughput of 1MBit/s , but my network connection is capable of 200MBit/s so it seems it limits the throughput a lot.

@AkihiroSuda
Copy link
Member

@AkihiroSuda
Copy link
Member

changing slirp4netns --mtu to 1500 may change the situation, though I'm not sure podman supports changing mtu

@rhatdan
Copy link

rhatdan commented Oct 20, 2019

@giuseppe @mheon @baude is this something Podman should support? Would it make sense for rootfull containers as well? Interaction with CNI?

@giuseppe
Copy link
Collaborator

@AkihiroSuda I remember we already discussed it but cannot find the comment now. Isn't #128 something that can be fixed with changing the receive buffer for the slirp4netns socket only instead of changing the default for the network namespace?

@AkihiroSuda
Copy link
Member

True, but I couldn't dig out which buffer needs to be updated.

I think setting sysctl was not needed when mtu=1500, I can't remember

@AkihiroSuda
Copy link
Member

Is this still an issue?

@AkihiroSuda
Copy link
Member

Closing, but feel free to reopen if this is still an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants