From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 19 23:10:13 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 37B831065678 for ; Mon, 19 Mar 2012 23:10:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1FAD28FC17 for ; Mon, 19 Mar 2012 23:10:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2JNADGq004147 for ; Mon, 19 Mar 2012 23:10:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2JNADJX004144; Mon, 19 Mar 2012 23:10:13 GMT (envelope-from gnats) Date: Mon, 19 Mar 2012 23:10:13 GMT Message-Id: <201203192310.q2JNADJX004144@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: "Adrian Chadd" Cc: Subject: Re: kern/166190: [ath] TX hangs and frames stuck in TX queue X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Adrian Chadd List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2012 23:10:13 -0000 The following reply was made to PR kern/166190; it has been noted by GNATS. From: "Adrian Chadd" To: "Vincent Hoffman" Cc: "bug-followup@freebsd.org" Subject: Re: kern/166190: [ath] TX hangs and frames stuck in TX queue Date: Mon, 19 Mar 2012 16:09:05 -0700 --Alternative__boundary__1332198551683 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Then they returned to 512, right? Adrian Sent from my Palm Pre on AT&T On Mar 19, 2012 3:11 PM, Vincent Hoffman <vince@unsane.co.uk> wrote:= During an iperf test Total TX buffers went from  512 -> 356) =20 iperf output (tcp, sending form freebsd machine to osx laptop [ = 4]  0.0-60.2 sec   154 MBytes  21.4 Mbits/sec) =20 dmesg output: =20 no tx bufs (empty list): 0 no tx bufs (was busy): 0 aggr single packet: 14372 aggr single packet w/ BAW closed: 0 aggr non-baw packet: 1 aggr aggregate packet: 119987 aggr single packet low hwq: 641424 aggr sched, no work: 15333  0:          0 = 1:          0  2: &= nbsp;     7811  3:     &n= bsp; 5690=20  4:       5077  5:  &= nbsp;    4509  6:      = 4675  7:       4546=20  8:       5255  9:  &= nbsp;    5061 10:       4796= 11:       9393=20 12:       3094 13:    = ;   2604 14:       2647 15: &n= bsp;     2301=20 16:       4372 17:    = ;   2440 18:       4558 19: &n= bsp;     8300=20 20:       6962 21:    = ;   4679 22:       2404 23: &n= bsp;     1270=20 24:       1076 25:    = ;    929 26:        866= 27:        856=20 28:        835 29:   =      895 30:       1033= 31:       1016=20 32:      10037 33:    &nbs= p;     0 34:       &= nbsp;  0 35:          0=20 36:          0 37: &n= bsp;        0 38:    = ;      0 39:      &n= bsp;   0=20 40:          0 41: &n= bsp;        0 42:    = ;      0 43:      &n= bsp;   0=20 44:          0 45: &n= bsp;        0 46:    = ;      0 47:      &n= bsp;   0=20 48:          0 49: &n= bsp;        0 50:    = ;      0 51:      &n= bsp;   0=20 52:          0 53: &n= bsp;        0 54:    = ;      0 55:      &n= bsp;   0=20 56:          0 57: &n= bsp;        0 58:    = ;      0 59:      &n= bsp;   0=20 60:          0 61: &n= bsp;        0 62:    = ;      0 63:      &n= bsp;   0=20 =20 HW TXQ 0: axq_depth=3D0, axq_aggr_depth=3D0 HW TXQ 1: axq_depth=3D0, axq_aggr_depth=3D0 HW TXQ 2: axq_depth=3D0, axq_aggr_depth=3D0 HW TXQ 3: axq_depth=3D0, axq_aggr_depth=3D0 HW TXQ 8: axq_depth=3D0, axq_aggr_depth=3D0 Total TX buffers: 512; Total TX buffers busy: 0 no tx bufs (empty list): 0 no tx bufs (was busy): 0 aggr single packet: 14553 aggr single packet w/ BAW closed: 0 aggr non-baw packet: 1 aggr aggregate packet: 121203 aggr single packet low hwq: 643315 aggr sched, no work: 15414  0:          0 = 1:          0  2: &= nbsp;     7931  3:     &n= bsp; 5744=20  4:       5116  5:  &= nbsp;    4554  6:      = 4716  7:       4577=20  8:       5284  9:  &= nbsp;    5097 10:       4822= 11:       9425=20 12:       3123 13:    = ;   2628 14:       2671 15: &n= bsp;     2322=20 16:       5036 17:    = ;   2442 18:       4558 19: &n= bsp;     8300=20 20:       6962 21:    = ;   4679 22:       2404 23: &n= bsp;     1270=20 24:       1076 25:    = ;    929 26:        866= 27:        856=20 28:        835 29:   =      895 30:       1033= 31:       1016=20 32:      10037 33:    &nbs= p;     0 34:       &= nbsp;  0 35:          0=20 36:          0 37: &n= bsp;        0 38:    = ;      0 39:      &n= bsp;   0=20 40:          0 41: &n= bsp;        0 42:    = ;      0 43:      &n= bsp;   0=20 44:          0 45: &n= bsp;        0 46:    = ;      0 47:      &n= bsp;   0=20 48:          0 49: &n= bsp;        0 50:    = ;      0 51:      &n= bsp;   0=20 52:          0 53: &n= bsp;        0 54:    = ;      0 55:      &n= bsp;   0=20 56:          0 57: &n= bsp;        0 58:    = ;      0 59:      &n= bsp;   0=20 60:          0 61: &n= bsp;        0 62:    = ;      0 63:      &n= bsp;   0=20 =20 HW TXQ 0: axq_depth=3D0, axq_aggr_depth=3D0 HW TXQ 1: axq_depth=3D2, axq_aggr_depth=3D2 HW TXQ 2: axq_depth=3D0, axq_aggr_depth=3D0 HW TXQ 3: axq_depth=3D0, axq_aggr_depth=3D0 HW TXQ 8: axq_depth=3D0, axq_aggr_depth=3D0 Total TX buffers: 481; Total TX buffers busy: 0 no tx bufs (empty list): 0 no tx bufs (was busy): 0 aggr single packet: 14928 aggr single packet w/ BAW closed: 0 aggr non-baw packet: 1 aggr aggregate packet: 125149 aggr single packet low hwq: 645085 aggr sched, no work: 15673  0:          0 = 1:          0  2: &= nbsp;     8187  3:     &n= bsp; 5884=20  4:       5230  5:  &= nbsp;    4653  6:      = 4801  7:       4649=20  8:       5347  9:  &= nbsp;    5168 10:       4891= 11:       9496=20 12:       3305 13:    = ;   2715 14:       2753 15: &n= bsp;     2399=20 16:       7473 17:    = ;   2464 18:       4565 19: &n= bsp;     8304=20 20:       6966 21:    = ;   4681 22:       2405 23: &n= bsp;     1270=20 24:       1077 25:    = ;    929 26:        866= 27:        856=20 28:        835 29:   =      895 30:       1033= 31:       1016=20 32:      10037 33:    &nbs= p;     0 34:       &= nbsp;  0 35:          0=20 36:          0 37: &n= bsp;        0 38:    = ;      0 39:      &n= bsp;   0=20 40:          0 41: &n= bsp;        0 42:    = ;      0 43:      &n= bsp;   0=20 44:          0 45: &n= bsp;        0 46:    = ;      0 47:      &n= bsp;   0=20 48:          0 49: &n= bsp;        0 50:    = ;      0 51:      &n= bsp;   0=20 52:          0 53: &n= bsp;        0 54:    = ;      0 55:      &n= bsp;   0=20 56:          0 57: &n= bsp;        0 58:    = ;      0 59:      &n= bsp;   0=20 60:          0 61: &n= bsp;        0 62:    = ;      0 63:      &n= bsp;   0=20 =20 HW TXQ 0: axq_depth=3D0, axq_aggr_depth=3D0 HW TXQ 1: axq_depth=3D2, axq_aggr_depth=3D1 HW TXQ 2: axq_depth=3D0, axq_aggr_depth=3D0 HW TXQ 3: axq_depth=3D0, axq_aggr_depth=3D0 HW TXQ 8: axq_depth=3D0, axq_aggr_depth=3D0 Total TX buffers: 502; Total TX buffers busy: 0 no tx bufs (empty list): 0 no tx bufs (was busy): 0 aggr single packet: 15237 aggr single packet w/ BAW closed: 0 aggr non-baw packet: 1 aggr aggregate packet: 127403 aggr single packet low hwq: 646324 aggr sched, no work: 15851  0:          0 = 1:          0  2: &= nbsp;     8360  3:     &n= bsp; 5998=20  4:       5304  5:  &= nbsp;    4703  6:      = 4846  7:       4701=20  8:       5377  9:  &= nbsp;    5216 10:       4935= 11:       9544=20 12:       3383 13:    = ;   2753 14:       2811 15: &n= bsp;     2441=20 16:       8822 17:    = ;   2474 18:       4566 19: &n= bsp;     8304=20 20:       6966 21:    = ;   4681 22:       2406 23: &n= bsp;     1270=20 24:       1077 25:    = ;    929 26:        866= 27:        856=20 28:        835 29:   =      895 30:       1033= 31:       1016=20 32:      10037 33:    &nbs= p;     0 34:       &= nbsp;  0 35:          0=20 36:          0 37: &n= bsp;        0 38:    = ;      0 39:      &n= bsp;   0=20 40:          0 41: &n= bsp;        0 42:    = ;      0 43:      &n= bsp;   0=20 44:          0 45: &n= bsp;        0 46:    = ;      0 47:      &n= bsp;   0=20 48:          0 49: &n= bsp;        0 50:    = ;      0 51:      &n= bsp;   0=20 52:          0 53: &n= bsp;        0 54:    = ;      0 55:      &n= bsp;   0=20 56:          0 57: &n= bsp;        0 58:    = ;      0 59:      &n= bsp;   0=20 60:          0 61: &n= bsp;        0 62:    = ;      0 63:      &n= bsp;   0=20 =20 HW TXQ 0: axq_depth=3D0, axq_aggr_depth=3D0 HW TXQ 1: axq_depth=3D2, axq_aggr_depth=3D2 HW TXQ 2: axq_depth=3D0, axq_aggr_depth=3D0 HW TXQ 3: axq_depth=3D0, axq_aggr_depth=3D0 HW TXQ 8: axq_depth=3D0, axq_aggr_depth=3D0 Total TX buffers: 356; Total TX buffers busy: 0 =20 =20 On 19/03/2012 21:49, Adrian Chadd wrote: Just check the txagg sysctl and mae sure your buffer count stays up around 512. =20 I want to make sure that buffers aren't being leaked. =20 Thanks again! =20 =20 =20 =20 Sent from my Palm Pre on AT&T =20 =20 On Mar 19, 2012 2:38 PM, Vincent Hoffman <vince@unsane.co.uk> wrote:=20 =20 Hi Adrian, =20 =20 =20 This patch is looking good as yet, I've repeated tests that were =20 previously causing timeouts and as yet not been able cause a timeout =20 after applying this patch. =20 =20 Its not definitive but so far it appears to have resolved this issue =20 for me. =20 =20 =20 Regards, =20 Vince Hoffman =20 =20 =20 =20 =20 --Alternative__boundary__1332198551683 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Then they returned to 512, right?


Adrian



Sent from my Palm Pre on AT&T


On Mar 19, 2012 3:11 PM, Vincent Hoffman <vince@unsane.= co.uk> wrote:

During an iperf test
Total TX buffers went from  512 -> 356)

iperf output (tcp, sending form freebsd machine to osx laptop [ = 4]  0.0-60.2 sec   154 MBytes  21.4 Mbits/sec)

dmesg output:

no tx bufs (empty list): 0
no tx bufs (was busy): 0
aggr single packet: 14372
aggr single packet w/ BAW closed: 0
aggr non-baw packet: 1
aggr aggregate packet: 119987
aggr single packet low hwq: 641424
aggr sched, no work: 15333
 0:          0 = 1:          0  2: &= nbsp;     7811  3:     &n= bsp; 5690
 4:       5077  5:  &= nbsp;    4509  6:      = 4675  7:       4546
 8:       5255  9:  &= nbsp;    5061 10:       4796= 11:       9393
12:       3094 13:    = ;   2604 14:       2647 15: &n= bsp;     2301
16:       4372 17:    = ;   2440 18:       4558 19: &n= bsp;     8300
20:       6962 21:    = ;   4679 22:       2404 23: &n= bsp;     1270
24:       1076 25:    = ;    929 26:        866= 27:        856
28:        835 29:   =      895 30:       1033= 31:       1016
32:      10037 33:    &nbs= p;     0 34:       &= nbsp;  0 35:          0=
36:          0 37: &n= bsp;        0 38:    = ;      0 39:      &n= bsp;   0
40:          0 41: &n= bsp;        0 42:    = ;      0 43:      &n= bsp;   0
44:          0 45: &n= bsp;        0 46:    = ;      0 47:      &n= bsp;   0
48:          0 49: &n= bsp;        0 50:    = ;      0 51:      &n= bsp;   0
52:          0 53: &n= bsp;        0 54:    = ;      0 55:      &n= bsp;   0
56:          0 57: &n= bsp;        0 58:    = ;      0 59:      &n= bsp;   0
60:          0 61: &n= bsp;        0 62:    = ;      0 63:      &n= bsp;   0

HW TXQ 0: axq_depth=3D0, axq_aggr_depth=3D0
HW TXQ 1: axq_depth=3D0, axq_aggr_depth=3D0
HW TXQ 2: axq_depth=3D0, axq_aggr_depth=3D0
HW TXQ 3: axq_depth=3D0, axq_aggr_depth=3D0
HW TXQ 8: axq_depth=3D0, axq_aggr_depth=3D0
Total TX buffers: 512; Total TX buffers busy: 0
no tx bufs (empty list): 0
no tx bufs (was busy): 0
aggr single packet: 14553
aggr single packet w/ BAW closed: 0
aggr non-baw packet: 1
aggr aggregate packet: 121203
aggr single packet low hwq: 643315
aggr sched, no work: 15414
 0:          0 = 1:          0  2: &= nbsp;     7931  3:     &n= bsp; 5744
 4:       5116  5:  &= nbsp;    4554  6:      = 4716  7:       4577
 8:       5284  9:  &= nbsp;    5097 10:       4822= 11:       9425
12:       3123 13:    = ;   2628 14:       2671 15: &n= bsp;     2322
16:       5036 17:    = ;   2442 18:       4558 19: &n= bsp;     8300
20:       6962 21:    = ;   4679 22:       2404 23: &n= bsp;     1270
24:       1076 25:    = ;    929 26:        866= 27:        856
28:        835 29:   =      895 30:       1033= 31:       1016
32:      10037 33:    &nbs= p;     0 34:       &= nbsp;  0 35:          0=
36:          0 37: &n= bsp;        0 38:    = ;      0 39:      &n= bsp;   0
40:          0 41: &n= bsp;        0 42:    = ;      0 43:      &n= bsp;   0
44:          0 45: &n= bsp;        0 46:    = ;      0 47:      &n= bsp;   0
48:          0 49: &n= bsp;        0 50:    = ;      0 51:      &n= bsp;   0
52:          0 53: &n= bsp;        0 54:    = ;      0 55:      &n= bsp;   0
56:          0 57: &n= bsp;        0 58:    = ;      0 59:      &n= bsp;   0
60:          0 61: &n= bsp;        0 62:    = ;      0 63:      &n= bsp;   0

HW TXQ 0: axq_depth=3D0, axq_aggr_depth=3D0
HW TXQ 1: axq_depth=3D2, axq_aggr_depth=3D2
HW TXQ 2: axq_depth=3D0, axq_aggr_depth=3D0
HW TXQ 3: axq_depth=3D0, axq_aggr_depth=3D0
HW TXQ 8: axq_depth=3D0, axq_aggr_depth=3D0
Total TX buffers: 481; Total TX buffers busy: 0
no tx bufs (empty list): 0
no tx bufs (was busy): 0
aggr single packet: 14928
aggr single packet w/ BAW closed: 0
aggr non-baw packet: 1
aggr aggregate packet: 125149
aggr single packet low hwq: 645085
aggr sched, no work: 15673
 0:          0 = 1:          0  2: &= nbsp;     8187  3:     &n= bsp; 5884
 4:       5230  5:  &= nbsp;    4653  6:      = 4801  7:       4649
 8:       5347  9:  &= nbsp;    5168 10:       4891= 11:       9496
12:       3305 13:    = ;   2715 14:       2753 15: &n= bsp;     2399
16:       7473 17:    = ;   2464 18:       4565 19: &n= bsp;     8304
20:       6966 21:    = ;   4681 22:       2405 23: &n= bsp;     1270
24:       1077 25:    = ;    929 26:        866= 27:        856
28:        835 29:   =      895 30:       1033= 31:       1016
32:      10037 33:    &nbs= p;     0 34:       &= nbsp;  0 35:          0=
36:          0 37: &n= bsp;        0 38:    = ;      0 39:      &n= bsp;   0
40:          0 41: &n= bsp;        0 42:    = ;      0 43:      &n= bsp;   0
44:          0 45: &n= bsp;        0 46:    = ;      0 47:      &n= bsp;   0
48:          0 49: &n= bsp;        0 50:    = ;      0 51:      &n= bsp;   0
52:          0 53: &n= bsp;        0 54:    = ;      0 55:      &n= bsp;   0
56:          0 57: &n= bsp;        0 58:    = ;      0 59:      &n= bsp;   0
60:          0 61: &n= bsp;        0 62:    = ;      0 63:      &n= bsp;   0

HW TXQ 0: axq_depth=3D0, axq_aggr_depth=3D0
HW TXQ 1: axq_depth=3D2, axq_aggr_depth=3D1
HW TXQ 2: axq_depth=3D0, axq_aggr_depth=3D0
HW TXQ 3: axq_depth=3D0, axq_aggr_depth=3D0
HW TXQ 8: axq_depth=3D0, axq_aggr_depth=3D0
Total TX buffers: 502; Total TX buffers busy: 0
no tx bufs (empty list): 0
no tx bufs (was busy): 0
aggr single packet: 15237
aggr single packet w/ BAW closed: 0
aggr non-baw packet: 1
aggr aggregate packet: 127403
aggr single packet low hwq: 646324
aggr sched, no work: 15851
 0:          0 = 1:          0  2: &= nbsp;     8360  3:     &n= bsp; 5998
 4:       5304  5:  &= nbsp;    4703  6:      = 4846  7:       4701
 8:       5377  9:  &= nbsp;    5216 10:       4935= 11:       9544
12:       3383 13:    = ;   2753 14:       2811 15: &n= bsp;     2441
16:       8822 17:    = ;   2474 18:       4566 19: &n= bsp;     8304
20:       6966 21:    = ;   4681 22:       2406 23: &n= bsp;     1270
24:       1077 25:    = ;    929 26:        866= 27:        856
28:        835 29:   =      895 30:       1033= 31:       1016
32:      10037 33:    &nbs= p;     0 34:       &= nbsp;  0 35:          0=
36:          0 37: &n= bsp;        0 38:    = ;      0 39:      &n= bsp;   0
40:          0 41: &n= bsp;        0 42:    = ;      0 43:      &n= bsp;   0
44:          0 45: &n= bsp;        0 46:    = ;      0 47:      &n= bsp;   0
48:          0 49: &n= bsp;        0 50:    = ;      0 51:      &n= bsp;   0
52:          0 53: &n= bsp;        0 54:    = ;      0 55:      &n= bsp;   0
56:          0 57: &n= bsp;        0 58:    = ;      0 59:      &n= bsp;   0
60:          0 61: &n= bsp;        0 62:    = ;      0 63:      &n= bsp;   0

HW TXQ 0: axq_depth=3D0, axq_aggr_depth=3D0
HW TXQ 1: axq_depth=3D2, axq_aggr_depth=3D2
HW TXQ 2: axq_depth=3D0, axq_aggr_depth=3D0
HW TXQ 3: axq_depth=3D0, axq_aggr_depth=3D0
HW TXQ 8: axq_depth=3D0, axq_aggr_depth=3D0
Total TX buffers: 356; Total TX buffers busy: 0


On 19/03/2012 21:49, Adrian Chadd wrote:
Just check the txagg sysctl and mae sure your buffer count stays up around 512.

I want to make sure that buffers aren't being leaked.

Thanks again!



Sent from my Palm Pre on AT&T


On Mar 19, 2012 2:38 PM, Vincent Hoffman <vince@unsane.co.uk> wrote:

Hi Adrian,


This patch is looking good as yet, I've repeated tests that were
previously causing timeouts and as yet not been able cause a timeout
after applying this patch.

Its not definitive but so far it appears to have resolved this issue
for me.


Regards,
Vince Hoffman

=20
--Alternative__boundary__1332198551683--