On Tue, Jul 24, 2012 at 02:22:57PM +0200, Henrik Lund Kramsh?j wrote:
>
> On 24/07/2012, at 14.16, Otto Moerbeek wrote:
>
> > On Tue, Jul 24, 2012 at 01:52:03PM +0200, Peter Hessler wrote:
> >
> >> On 2012 Jul 24 (Tue) at 12:40:00 +0200 (+0200), Henrik Lund Kramsh?j wrote:
> >> :Current tuning, apart from kernel defaults:
> >> :and also modified /etc/sysctl somewhat - most changes below are from
> >> :https://calomel.org/network_performance.html:
> >>
> >> Revert all changes recommended by this page, they hurt performance and
> >> do not help.
> >>
> >> calomel.org is only bad juju.
> >>
> >>
> >> --
> >> In case of atomic attack, the federal ruling against prayer in schools
> >> will be temporarily canceled.
> >
> > Also, the OP didn't say if pf is active or not. By default pf is
> > enabled these days, switch off by setting pf=NO in rc.conf.local
>
> sorry, but tried both, some difference, some improvement, as shown below
>
> hlk@xpc02:hlk$ sudo pfctl -d
> pf disabled
> hlk@xpc02:hlk$ tcpbench -u 10.0.10.30
> Elapsed: 1000 Mbps: 1943.217 Peak Mbps: 1943.217 Tx PPS: 165015
> Elapsed: 2000 Mbps: 1944.761 Peak Mbps: 1944.761 Tx PPS: 165146
> Elapsed: 3000 Mbps: 1942.852 Peak Mbps: 1944.761 Tx PPS: 164984
> Elapsed: 4000 Mbps: 1942.710 Peak Mbps: 1944.761 Tx PPS: 164972
>
> hlk@xpc02:hlk$ tcpbench -n 4 10.0.10.30
> elapsed_ms bytes mbps bwidth
> 1000 114326840 914.615 28.58%
> 1000 86697552 693.580 21.67%
> 1000 111178888 889.431 27.79%
> 1000 87886360 703.091 21.97%
> Conn: 4 Mbps: 3200.717 Peak Mbps: 3200.717 Avg Mbps: 800.179
> 2001 79059352 631.843 19.21%
> 2001 127067792 1016.542 30.87%
> 2001 135531352 1084.251 32.93%
> 2001 69944248 559.554 16.99%
> Conn: 4 Mbps: 3292.190 Peak Mbps: 3292.190 Avg Mbps: 823.048
> 3003 101616720 812.122 25.16%
> 3003 98757024 789.267 24.45%
> 3003 103894144 830.323 25.72%
> 3003 99604280 796.038 24.66%
> Conn: 4 Mbps: 3227.750 Peak Mbps: 3292.190 Avg Mbps: 806.937
>
> But still waaaaay below expectations :-(
Ok, now that obvious things are out of the way, I thunk I have to
leave this to the newtork gurus.
BTW, did you try iperf on OpenBSD?
-Otto