containers / toolbox

Tool for interactive command line environments on Linux
https://containertoolbx.org/
Apache License 2.0
2.59k stars 219 forks source link

Toolbox containers inflict significant network performance impact on network perf #1547

Open aenertia opened 2 months ago

aenertia commented 2 months ago

Describe the bug

I noticed severe network penalty using the default network/tap setup instatiated for toolbox containers On a 10Gbit connection to a NAS with 20G of bandwidth available to the fabric I am seeing toolbox throughput top out at around 3.5Gbit/s

Rootful distrobox of the same container runs close to line/host kernel rate

Steps how to reproduce the behaviour Create a toolbox container using fedora:latest tag - install iperf3 or similar tool Run iperf3 or similar on a target connected host OS which is able to saturate fabric run test from inside toolbox container to target repeat for distrobox/rootful container of same image *repeat from host network userspace

Expected behaviour Throughput should be roughly analogous for all three scenarios

Actual behaviour toolbox containers top out around 3.5gbit

Screenshots Attached image

Output of toolbox --version (v0.0.90+) toolbox version 0.0.99.5

Toolbx package info (rpm -q toolbox) toolbox-0.0.99.5-11.fc40.x86_64

Output of podman version

Client:       Podman Engine
Version:      5.2.2
API Version:  5.2.2
Go Version:   go1.22.6
Built:        Wed Aug 21 12:00:00 2024
OS/Arch:      linux/amd64

Podman package info (rpm -q podman) e.g., podman-1.9.2-1.fc32.x86_64

Info about your OS Fedora40, Nobara, Bazzite(ublue/kiinote)

debarshiray commented 1 month ago

Interesting. Did you try with a rootful Toolbx container?