Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2013 12:20:10 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        net@freebsd.org
Subject:   Re: TSO and FreeBSD vs Linux
Message-ID:  <20130905192010.GL1577@albert.catwhisker.org>
In-Reply-To: <CAJ-VmonJgx=_Dr0BzhpKnzbqw_oSvYr4E2bQWuWmnOPn6%2BZ2qg@mail.gmail.com>
References:  <20130903192734.GA19406@albert.catwhisker.org> <979862494.17918795.1378299005617.JavaMail.root@uoguelph.ca> <CAJ-Vmomctb9WFYkt89-WjX=_DzktNgty96ANaOAVzWZfvYXK-Q@mail.gmail.com> <20130904222004.GD1577@albert.catwhisker.org> <CAJ-Vmo=Caktd%2B1yPP2yXabDwGkup5WMYYZboUk9sYD1BGujZ9w@mail.gmail.com> <20130904223556.GE1577@albert.catwhisker.org> <CAJ-VmonJgx=_Dr0BzhpKnzbqw_oSvYr4E2bQWuWmnOPn6%2BZ2qg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--flDc4cbvG5Y7qIjC
Content-Type: multipart/mixed; boundary="TlGginnuNEm5PkhK"
Content-Disposition: inline


--TlGginnuNEm5PkhK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Sep 04, 2013 at 03:52:19PM -0700, Adrian Chadd wrote:
> .. can you use -z to clear the stats out just before you do a test?
>=20
>=20
> -adrian
>=20
>=20
> On 4 September 2013 15:35, David Wolfskill <david@catwhisker.org> wrote:
>=20
> > On Wed, Sep 04, 2013 at 03:25:59PM -0700, Adrian Chadd wrote:
> > > What's netstat -sp tcp show before/after the test?
> > > ...
> ...

Attached; test was to demonstrate issue w/TSO.

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
Taliban: Evil cowards with guns afraid of truth from a 14-year old girl.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--TlGginnuNEm5PkhK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=tso
Content-Transfer-Encoding: quoted-printable

Script started on Wed Sep  4 16:03:56 2013
dwolf-fbsd(9.2-P)[15] sudo sysctl net.inet.tcp.tso=3D1=0D=0D
Password:=0D
net.inet.tcp.tso: 0 -> 1=0D
dwolf-fbsd(9.2-P)[16] sudo netstat -zsp tcp=0D=0D
tcp:=0D
	2574837448 packets sent=0D
		4990261 data packets (2921163576 bytes)=0D
		2566108476 data packets (7552375270794 bytes) retransmitted=0D
		13131 data packets unnecessarily retransmitted=0D
		2565866462 resends initiated by MTU discovery=0D
		3724751 ack-only packets (272449 delayed)=0D
		0 URG only packets=0D
		0 window probe packets=0D
		2596 window update packets=0D
		3615 control packets=0D
	11197243 packets received=0D
		4033650 acks (for 3053804276 bytes)=0D
		33051 duplicate acks=0D
		0 acks for unsent data=0D
		9289364 packets (9789388088 bytes) received in-sequence=0D
		617 completely duplicate packets (160537 bytes)=0D
		2 old duplicate packets=0D
		104 packets with some dup. data (4084 bytes duped)=0D
		1633 out-of-order packets (2277306 bytes)=0D
		833 packets (833 bytes) of data after window=0D
		833 window probes=0D
		27123 window update packets=0D
		10 packets received after close=0D
		0 discarded for bad checksums=0D
		0 discarded for bad header offset fields=0D
		0 discarded because packet too short=0D
		0 discarded due to memory problems=0D
	1809 connection requests=0D
	319 connection accepts=0D
	0 bad connection attempts=0D
	0 listen queue overflows=0D
	6 ignored RSTs in the windows=0D
	1965 connections established (including accepts)=0D
	2454 connections closed (including 90 drops)=0D
		1483 connections updated cached RTT on close=0D
		1485 connections updated cached RTT variance on close=0D
		902 connections updated cached ssthresh on close=0D
	36 embryonic connections dropped=0D
	4033649 segments updated rtt (of 3015788 attempts)=0D
	129116 retransmit timeouts=0D
		2 connections dropped by rexmit timeout=0D
	0 persist timeouts=0D
		0 connections dropped by persist timeout=0D
	0 Connections (fin_wait_2) dropped because of timeout=0D
	167 keepalive timeouts=0D
		157 keepalive probes sent=0D
		10 connections dropped by keepalive=0D
	560619 correct ACK header predictions=0D
	7078166 correct data packet header predictions=0D
	319 syncache entries added=0D
		0 retransmitted=0D
		0 dupsyn=0D
		0 dropped=0D
		319 completed=0D
		0 bucket overflow=0D
		0 cache overflow=0D
		0 reset=0D
		0 stale=0D
		0 aborted=0D
		0 badack=0D
		0 unreach=0D
		0 zone failures=0D
	319 cookies sent=0D
	0 cookies received=0D
	200 hostcache entries added=0D
		0 bucket overflow=0D
	2132 SACK recovery episodes=0D
	4792 segment rexmits in SACK recovery episodes=0D
	6693920 byte rexmits in SACK recovery episodes=0D
	60818 SACK options (SACK blocks) received=0D
	1532 SACK options (SACK blocks) sent=0D
	0 SACK scoreboard overflow=0D
	0 packets with ECN CE bit set=0D
	0 packets with ECN ECT(0) bit set=0D
	0 packets with ECN ECT(1) bit set=0D
	0 successful ECN handshakes=0D
	0 times ECN reduced the congestion window=0D
dwolf-fbsd(9.2-P)[17] ls -lT ~/Mail/sisyphus=0D=0D
-rw-------  1 dwolf  929  117842814 Sep  4 15:36:32 2013 /homes/dwolf/Mail/=
sisyphus=0D
dwolf-fbsd(9.2-P)[18] cp ~/Mail/sisyphus ~/tmp=0D=0D
^C=0D=0D
dwolf-fbsd(9.2-P)[19] ls -lT !$/sisyphus=0D=0D
ls -lT ~/tmp/sisyphus=0D
-rw-------  1 dwolf  929  2097152 Sep  4 16:06:14 2013 /homes/dwolf/tmp/sis=
yphus=0D
dwolf-fbsd(9.2-P)[20] netstat -sp tcp=0D=0D
tcp:=0D
	11721951 packets sent=0D
		1648 data packets (2153234 bytes)=0D
		11719344 data packets (40242113308 bytes) retransmitted=0D
		336 data packets unnecessarily retransmitted=0D
		11718480 resends initiated by MTU discovery=0D
		869 ack-only packets (55 delayed)=0D
		0 URG only packets=0D
		0 window probe packets=0D
		0 window update packets=0D
		90 control packets=0D
	4143 packets received=0D
		1380 acks (for 2224279 bytes)=0D
		564 duplicate acks=0D
		0 acks for unsent data=0D
		2085 packets (2193927 bytes) received in-sequence=0D
		2 completely duplicate packets (328 bytes)=0D
		0 old duplicate packets=0D
		0 packets with some dup. data (0 bytes duped)=0D
		0 out-of-order packets (0 bytes)=0D
		0 packets (0 bytes) of data after window=0D
		0 window probes=0D
		227 window update packets=0D
		1 packet received after close=0D
		0 discarded for bad checksums=0D
		0 discarded for bad header offset fields=0D
		0 discarded because packet too short=0D
		0 discarded due to memory problems=0D
	89 connection requests=0D
	0 connection accepts=0D
	0 bad connection attempts=0D
	0 listen queue overflows=0D
	0 ignored RSTs in the windows=0D
	2 connections established (including accepts)=0D
	90 connections closed (including 0 drops)=0D
		2 connections updated cached RTT on close=0D
		2 connections updated cached RTT variance on close=0D
		1 connection updated cached ssthresh on close=0D
	0 embryonic connections dropped=0D
	1380 segments updated rtt (of 1284 attempts)=0D
	452 retransmit timeouts=0D
		0 connections dropped by rexmit timeout=0D
	0 persist timeouts=0D
		0 connections dropped by persist timeout=0D
	0 Connections (fin_wait_2) dropped because of timeout=0D
	0 keepalive timeouts=0D
		0 keepalive probes sent=0D
		0 connections dropped by keepalive=0D
	350 correct ACK header predictions=0D
	1847 correct data packet header predictions=0D
	0 syncache entries added=0D
		0 retransmitted=0D
		0 dupsyn=0D
		0 dropped=0D
		0 completed=0D
		0 bucket overflow=0D
		0 cache overflow=0D
		0 reset=0D
		0 stale=0D
		0 aborted=0D
		0 badack=0D
		0 unreach=0D
		0 zone failures=0D
	0 cookies sent=0D
	0 cookies received=0D
	0 hostcache entries added=0D
		0 bucket overflow=0D
	164 SACK recovery episodes=0D
	323 segment rexmits in SACK recovery episodes=0D
	463828 byte rexmits in SACK recovery episodes=0D
	824 SACK options (SACK blocks) received=0D
	0 SACK options (SACK blocks) sent=0D
	0 SACK scoreboard overflow=0D
	0 packets with ECN CE bit set=0D
	0 packets with ECN ECT(0) bit set=0D
	0 packets with ECN ECT(1) bit set=0D
	0 successful ECN handshakes=0D
	0 times ECN reduced the congestion window=0D
dwolf-fbsd(9.2-P)[21] sudo sysctl net.inet.tcp.tso=3D0=0D=0D
net.inet.tcp.tso: 1 -> 0=0D
dwolf-fbsd(9.2-P)[22] sudo netstat -zsp tcp=0D=0D
tcp:=0D
	11722179 packets sent=0D
		1826 data packets (2173970 bytes)=0D
		11719344 data packets (40242113308 bytes) retransmitted=0D
		336 data packets unnecessarily retransmitted=0D
		11718480 resends initiated by MTU discovery=0D
		918 ack-only packets (65 delayed)=0D
		0 URG only packets=0D
		0 window probe packets=0D
		0 window update packets=0D
		91 control packets=0D
	4375 packets received=0D
		1500 acks (for 2245016 bytes)=0D
		565 duplicate acks=0D
		0 acks for unsent data=0D
		2219 packets (2208633 bytes) received in-sequence=0D
		2 completely duplicate packets (328 bytes)=0D
		0 old duplicate packets=0D
		0 packets with some dup. data (0 bytes duped)=0D
		0 out-of-order packets (0 bytes)=0D
		0 packets (0 bytes) of data after window=0D
		0 window probes=0D
		227 window update packets=0D
		1 packet received after close=0D
		0 discarded for bad checksums=0D
		0 discarded for bad header offset fields=0D
		0 discarded because packet too short=0D
		0 discarded due to memory problems=0D
	89 connection requests=0D
	0 connection accepts=0D
	0 bad connection attempts=0D
	0 listen queue overflows=0D
	0 ignored RSTs in the windows=0D
	2 connections established (including accepts)=0D
	90 connections closed (including 0 drops)=0D
		3 connections updated cached RTT on close=0D
		3 connections updated cached RTT variance on close=0D
		1 connection updated cached ssthresh on close=0D
	0 embryonic connections dropped=0D
	1500 segments updated rtt (of 1397 attempts)=0D
	452 retransmit timeouts=0D
		0 connections dropped by rexmit timeout=0D
	0 persist timeouts=0D
		0 connections dropped by persist timeout=0D
	0 Connections (fin_wait_2) dropped because of timeout=0D
	0 keepalive timeouts=0D
		0 keepalive probes sent=0D
		0 connections dropped by keepalive=0D
	412 correct ACK header predictions=0D
	1945 correct data packet header predictions=0D
	0 syncache entries added=0D
		0 retransmitted=0D
		0 dupsyn=0D
		0 dropped=0D
		0 completed=0D
		0 bucket overflow=0D
		0 cache overflow=0D
		0 reset=0D
		0 stale=0D
		0 aborted=0D
		0 badack=0D
		0 unreach=0D
		0 zone failures=0D
	0 cookies sent=0D
	0 cookies received=0D
	0 hostcache entries added=0D
		0 bucket overflow=0D
	164 SACK recovery episodes=0D
	323 segment rexmits in SACK recovery episodes=0D
	463828 byte rexmits in SACK recovery episodes=0D
	824 SACK options (SACK blocks) received=0D
	0 SACK options (SACK blocks) sent=0D
	0 SACK scoreboard overflow=0D
	0 packets with ECN CE bit set=0D
	0 packets with ECN ECT(0) bit set=0D
	0 packets with ECN ECT(1) bit set=0D
	0 successful ECN handshakes=0D
	0 times ECN reduced the congestion window=0D
dwolf-fbsd(9.2-P)[23] cp ~/Mail/sisyphus ~/tmp=0D=0D
dwolf-fbsd(9.2-P)[24] echo $?=0D=0D
0=0D
dwolf-fbsd(9.2-P)[25] netstat -sp tcp=0D=0D
tcp:=0D
	129165 packets sent=0D
		87533 data packets (120483061 bytes)=0D
		388 data packets (531932 bytes) retransmitted=0D
		1 data packet unnecessarily retransmitted=0D
		0 resends initiated by MTU discovery=0D
		41244 ack-only packets (74 delayed)=0D
		0 URG only packets=0D
		0 window probe packets=0D
		0 window update packets=0D
		0 control packets=0D
	137628 packets received=0D
		47037 acks (for 120483061 bytes)=0D
		2432 duplicate acks=0D
		0 acks for unsent data=0D
		96306 packets (119505191 bytes) received in-sequence=0D
		8 completely duplicate packets (8816 bytes)=0D
		0 old duplicate packets=0D
		0 packets with some dup. data (0 bytes duped)=0D
		834 out-of-order packets (1175280 bytes)=0D
		0 packets (0 bytes) of data after window=0D
		0 window probes=0D
		413 window update packets=0D
		0 packets received after close=0D
		0 discarded for bad checksums=0D
		0 discarded for bad header offset fields=0D
		0 discarded because packet too short=0D
		0 discarded due to memory problems=0D
	0 connection requests=0D
	0 connection accepts=0D
	0 bad connection attempts=0D
	0 listen queue overflows=0D
	0 ignored RSTs in the windows=0D
	0 connections established (including accepts)=0D
	1 connection closed (including 0 drops)=0D
		0 connections updated cached RTT on close=0D
		0 connections updated cached RTT variance on close=0D
		0 connections updated cached ssthresh on close=0D
	0 embryonic connections dropped=0D
	47037 segments updated rtt (of 45341 attempts)=0D
	4 retransmit timeouts=0D
		0 connections dropped by rexmit timeout=0D
	0 persist timeouts=0D
		0 connections dropped by persist timeout=0D
	0 Connections (fin_wait_2) dropped because of timeout=0D
	0 keepalive timeouts=0D
		0 keepalive probes sent=0D
		0 connections dropped by keepalive=0D
	37227 correct ACK header predictions=0D
	86833 correct data packet header predictions=0D
	0 syncache entries added=0D
		0 retransmitted=0D
		0 dupsyn=0D
		0 dropped=0D
		0 completed=0D
		0 bucket overflow=0D
		0 cache overflow=0D
		0 reset=0D
		0 stale=0D
		0 aborted=0D
		0 badack=0D
		0 unreach=0D
		0 zone failures=0D
	0 cookies sent=0D
	0 cookies received=0D
	0 hostcache entries added=0D
		0 bucket overflow=0D
	77 SACK recovery episodes=0D
	384 segment rexmits in SACK recovery episodes=0D
	526188 byte rexmits in SACK recovery episodes=0D
	3190 SACK options (SACK blocks) received=0D
	791 SACK options (SACK blocks) sent=0D
	0 SACK scoreboard overflow=0D
	0 packets with ECN CE bit set=0D
	0 packets with ECN ECT(0) bit set=0D
	0 packets with ECN ECT(1) bit set=0D
	0 successful ECN handshakes=0D
	0 times ECN reduced the congestion window=0D
dwolf-fbsd(9.2-P)[26] ls -lT ~/tmp/sisyphus=0D=0D
-rw-------  1 dwolf  929  117842814 Sep  4 16:07:30 2013 /homes/dwolf/tmp/s=
isyphus=0D
dwolf-fbsd(9.2-P)[27] rm !$=0D=0D
rm ~/tmp/sisyphus=0D
dwolf-fbsd(9.2-P)[28] ^D=08=08exit=0D

Script done on Wed Sep  4 16:08:58 2013

--TlGginnuNEm5PkhK--

--flDc4cbvG5Y7qIjC
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.21 (FreeBSD)

iEYEARECAAYFAlIo2WgACgkQmprOCmdXAD0oSQCfS2+p16EKTrRFBT2gKcDKPPzS
QdQAn3f66BFxI2B4gtSPdbKpB3RWhaKG
=x2kd
-----END PGP SIGNATURE-----

--flDc4cbvG5Y7qIjC--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130905192010.GL1577>