-
Notifications
You must be signed in to change notification settings - Fork 81
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
very low TCP performance #282
Comments
We seem to solve this issue. I run a few tests on our test machine. The server is running on the host (Rocky Linux). The client is running in a VM. I used a TAP device as interface between guest and host and build the benchmark as follow:
The TAP device has been configured as described in the README. The server was started on the host as follows:
The flag
I have varied the packet size and get the following bandwidths:
The MTU is defined as 1500 Bytes. I measured the peek bandwidth at 1024 because a packet with a size of 2048 is spilt into 2 transfer units. @n-eiling Can you confirm my results? |
I would expect performance when reading/writing from/to TCP to be in the GB/s. I wrote a small program to test the bandwidth:
https://git.rwth-aachen.de/niklas.eiling/rust-network-benchmark
Running it without rusty-hermit (i.e., using a local loopback socket) yields approx. 5 GiB/s bandwidth.
When running it in rusty-hermit I only get the following bandwidths:
Write BW: 0.039 MiB/s
Read BW: 0.53 MiB/s
My program is very similar to this benchmark in the rusty-hermit repo:
https://github.com/hermitcore/rusty-hermit/tree/master/benches/netbench
This also shows very bad performance.
The text was updated successfully, but these errors were encountered: