Netperf is a benchmark that can be used to measure the performance of many different types of networking. It provides tests for both unidirectional throughput, and end-to-end latency.
MIT License
859
stars
187
forks
source link
Netserver remove /dev/null in some cases, breaking many things #80
This bug is hard to reproduce, as the condition that lead to
Netserver deleting /dev/null are quite mysterious. I was getting my
/dev/null removed over the years at very rare occurences, until
I managed to track it down to Netserver.
The issue is not present in the tarball for version 2.7.0. It
was introduced in commit :
5380b1f5b67fa97f7574b73478a3cf4301f7707a
In particular, this line :
A quick look at the source code show that the code is wrong in
very obvious way. The fix is quite simple and obvious, and I provide
a patch (included below).
Note that to compile Netperf in amodern distro, other things
need to be fixed :-( You may look at patches for Netperf in Debian
as a start...
Thanks in advance !
Netserver deleting /dev/null are quite mysterious. I was getting my /dev/null removed over the years at very rare occurences, until I managed to track it down to Netserver.
was introduced in commit : 5380b1f5b67fa97f7574b73478a3cf4301f7707a In particular, this line :
FileName = NETPERF_NULL; I already reported this bug in Debian : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068490
A quick look at the source code show that the code is wrong in very obvious way. The fix is quite simple and obvious, and I provide a patch (included below). Note that to compile Netperf in amodern distro, other things need to be fixed :-( You may look at patches for Netperf in Debian as a start... Thanks in advance !
Jean netperf_no_unlink_dev_null.diff.txt