On Sun, Dec 18, 2016 at 07:01:42PM -0500, Greg Troxel wrote: > > 76nemo76%gmx.ch@localhost writes: > > > I am working with an APU2 board (4gb, 3 lan and AMD CPu 1Ghz > > you can see specifications here http://www.pcengines.ch/apu2.htm) > > to make a router/firewall. > > > > Before choosing the OS I want to use I have done some benchmarks. > > My first benchmark is: > > 1) Copy of a big file (17GB) compressed with gzip > > from a Windows 10 machine to a Windows 8.1 machine. > > This is done by using CIFS on Windows. Each machine > > is at one side of the router. > > > > The results are strange: > > With OpenBSD and Linux (alpine linux 3.4) I get > > the maximum speed (112Mbytes/sec) while with NetBSD > > the speed is limited to 70Mbytes/sec. > > There are basically two things to see about. One is the raw speed of > packet forwarding. The other is whether there is any loss and how that > interacts with congestion control. Plus then there are odd things I am > not thinking of. > > NetBSD itself should be efficient. However, you are pushing close to 1 > Gb/s. So, I would want to look at network counters to see if there is > any trouble. Do "netstat -s" on the router to a file, before and after, > and diff -u. Also, do the equivalent on the test machines. > Here is the result of the difference on the router. I have had a look on it and I see that no "fast forward" are used. Could be that the reason of slowness? I have read somewhere that fast forward could increase routing speed. Best regards, Alan Differences between file produced by the netstat -s command before and after the transfer. ---------------------------------------------------------------------------------------- --- /tmp/avantCopy.txt 2016-12-21 11:00:32.000000000 +0100 +++ /tmp/apresCopy.txt 2016-12-21 11:07:48.000000000 +0100 @@ -84,18 +84,18 @@ 0 packets with ECN CE bit 0 packets ECN ECT(0) bit udp: - 203 datagrams received + 231 datagrams received 0 with incomplete header 0 with bad data length field 0 with bad checksum 0 dropped due to no socket - 36 broadcast/multicast datagrams dropped due to no socket + 45 broadcast/multicast datagrams dropped due to no socket 0 dropped due to full socket buffers - 167 delivered - 187 PCB hash misses - 169 datagrams output + 186 delivered + 215 PCB hash misses + 188 datagrams output ip: - 15146914 total packets received + 30256038 total packets received 0 bad header checksums 0 with size smaller than minimum 0 with data size < data length @@ -110,13 +110,13 @@ 0 malformed fragments dropped 0 fragments dropped after timeout 0 packets reassembled ok - 203 packets for this host + 231 packets for this host 0 packets for unknown/unsupported protocol - 15146698 packets forwarded (0 packets fast forwarded) - 13 packets not forwardable + 30255791 packets forwarded (0 packets fast forwarded) + 16 packets not forwardable 0 redirects sent 0 packets no matching gif found - 169 packets sent from this host + 188 packets sent from this host 0 packets sent with fabricated ip header 0 output packets dropped due to no bufs, etc. 0 output packets discarded due to no route @@ -208,7 +208,7 @@ 0 ipcomp input bytes 0 ipcomp output bytes ip6: - 44 total packets received + 54 total packets received 0 with size smaller than minimum 0 with data size < data length 0 with bad options @@ -218,7 +218,7 @@ 0 fragments dropped after timeout 0 fragments that exceeded limit 0 packets reassembled ok - 32 packets for this host + 39 packets for this host 0 packets forwarded 0 packets fast forwarded 0 fast forward flows @@ -227,18 +227,18 @@ 20 packets sent from this host 0 packets sent with fabricated ip header 0 output packets dropped due to no bufs, etc. - 50 output packets discarded due to no route + 56 output packets discarded due to no route 0 output datagrams fragmented 0 fragments created 0 datagrams that can't be fragmented 0 packets that violated scope rules 0 multicast packets which we don't join Input packet histogram: - UDP: 32 - ICMP6: 12 + UDP: 39 + ICMP6: 15 Mbuf statistics: 0 one mbufs - 44 one ext mbufs + 54 one ext mbufs 0 two or more ext mbufs 0 packets whose headers are not continuous 0 tunneling packets that can't find gif @@ -258,7 +258,7 @@ 0 bad checksums 0 messages with bad length Input packet histogram: - router advertisement: 12 + router advertisement: 15 Histogram of error messages to be generated: 0 no route 0 administratively prohibited @@ -348,13 +348,13 @@ 0 packets with ECN CE bit 0 packets ECN ECT(0) bit udp6: - 32 datagrams received + 39 datagrams received 0 with incomplete header 0 with bad data length field 0 with bad checksum 0 with no checksum 0 dropped due to no socket - 32 multicast datagrams dropped due to no socket + 39 multicast datagrams dropped due to no socket 0 dropped due to full socket buffers 0 delivered 0 datagrams output @@ -459,13 +459,13 @@ 0 delivered 0 datagrams output arp: - 86 packets sent - 82 reply packets + 99 packets sent + 95 reply packets 4 request packets - 103 packets received + 120 packets received 2 reply packets - 101 valid request packets - 20 broadcast/multicast packets + 118 valid request packets + 24 broadcast/multicast packets 0 packets with unknown protocol type 0 packets with bad (short) length 0 packets with null target IP address
Attachment:
pgp8wbDPaoXOO.pgp
Description: PGP signature