Skip to content

Does "containerized socket activation" improve network performance? #14068

Answered by Luap99
eriksjolund asked this question in Q&A
Discussion options

You must be logged in to vote

Yes I think socket activation provides a better network bandwidth than slirp4netns.
The reason is simple, with socket activation systemd opens the socket in the host network namespace and then passes the fd down ito the container. Therefore all connections using this socket should have the same network performance as other applications on the host. There is no extra process involved.

However network bandwidth is not everything, some applications require low latency. Waiting for the container to start takes time which can be problematic.

Also often your application still requires extra outgoing connections so you still would need slirp4netns for that.

Also take a look at https://github.com…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Luap99
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by eriksjolund
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants