From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 19 23:20: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 CF543106566C for ; Mon, 19 Mar 2012 23:20: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 B91978FC0C for ; Mon, 19 Mar 2012 23:20: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 q2JNKD1U014173 for ; Mon, 19 Mar 2012 23:20:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2JNKDeD014172; Mon, 19 Mar 2012 23:20:13 GMT (envelope-from gnats) Date: Mon, 19 Mar 2012 23:20:13 GMT Message-Id: <201203192320.q2JNKDeD014172@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: Vincent Hoffman 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: Vincent Hoffman 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:20:13 -0000 The following reply was made to PR kern/166190; it has been noted by GNATS. From: Vincent Hoffman To: Adrian Chadd Cc: "bug-followup@freebsd.org" Subject: Re: kern/166190: [ath] TX hangs and frames stuck in TX queue Date: Mon, 19 Mar 2012 23:12:42 +0000 This is a multi-part message in MIME format. --------------060900020802060605060409 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Oops sorry missed the important bit off. Yes then they returned to 512 and have continued returning to 512. Vince On 19/03/2012 23:09, Adrian Chadd wrote: > Then they returned to 512, right? > > > Adrian > > > > Sent from my Palm Pre on AT&T > > ------------------------------------------------------------------------ > On Mar 19, 2012 3:11 PM, Vincent Hoffman 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: 7811 3: 5690 > 4: 5077 5: 4509 6: 4675 7: 4546 > 8: 5255 9: 5061 10: 4796 11: 9393 > 12: 3094 13: 2604 14: 2647 15: 2301 > 16: 4372 17: 2440 18: 4558 19: 8300 > 20: 6962 21: 4679 22: 2404 23: 1270 > 24: 1076 25: 929 26: 866 27: 856 > 28: 835 29: 895 30: 1033 31: 1016 > 32: 10037 33: 0 34: 0 35: 0 > 36: 0 37: 0 38: 0 39: 0 > 40: 0 41: 0 42: 0 43: 0 > 44: 0 45: 0 46: 0 47: 0 > 48: 0 49: 0 50: 0 51: 0 > 52: 0 53: 0 54: 0 55: 0 > 56: 0 57: 0 58: 0 59: 0 > 60: 0 61: 0 62: 0 63: 0 > > HW TXQ 0: axq_depth=0, axq_aggr_depth=0 > HW TXQ 1: axq_depth=0, axq_aggr_depth=0 > HW TXQ 2: axq_depth=0, axq_aggr_depth=0 > HW TXQ 3: axq_depth=0, axq_aggr_depth=0 > HW TXQ 8: axq_depth=0, axq_aggr_depth=0 > 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: 7931 3: 5744 > 4: 5116 5: 4554 6: 4716 7: 4577 > 8: 5284 9: 5097 10: 4822 11: 9425 > 12: 3123 13: 2628 14: 2671 15: 2322 > 16: 5036 17: 2442 18: 4558 19: 8300 > 20: 6962 21: 4679 22: 2404 23: 1270 > 24: 1076 25: 929 26: 866 27: 856 > 28: 835 29: 895 30: 1033 31: 1016 > 32: 10037 33: 0 34: 0 35: 0 > 36: 0 37: 0 38: 0 39: 0 > 40: 0 41: 0 42: 0 43: 0 > 44: 0 45: 0 46: 0 47: 0 > 48: 0 49: 0 50: 0 51: 0 > 52: 0 53: 0 54: 0 55: 0 > 56: 0 57: 0 58: 0 59: 0 > 60: 0 61: 0 62: 0 63: 0 > > HW TXQ 0: axq_depth=0, axq_aggr_depth=0 > HW TXQ 1: axq_depth=2, axq_aggr_depth=2 > HW TXQ 2: axq_depth=0, axq_aggr_depth=0 > HW TXQ 3: axq_depth=0, axq_aggr_depth=0 > HW TXQ 8: axq_depth=0, axq_aggr_depth=0 > 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: 8187 3: 5884 > 4: 5230 5: 4653 6: 4801 7: 4649 > 8: 5347 9: 5168 10: 4891 11: 9496 > 12: 3305 13: 2715 14: 2753 15: 2399 > 16: 7473 17: 2464 18: 4565 19: 8304 > 20: 6966 21: 4681 22: 2405 23: 1270 > 24: 1077 25: 929 26: 866 27: 856 > 28: 835 29: 895 30: 1033 31: 1016 > 32: 10037 33: 0 34: 0 35: 0 > 36: 0 37: 0 38: 0 39: 0 > 40: 0 41: 0 42: 0 43: 0 > 44: 0 45: 0 46: 0 47: 0 > 48: 0 49: 0 50: 0 51: 0 > 52: 0 53: 0 54: 0 55: 0 > 56: 0 57: 0 58: 0 59: 0 > 60: 0 61: 0 62: 0 63: 0 > > HW TXQ 0: axq_depth=0, axq_aggr_depth=0 > HW TXQ 1: axq_depth=2, axq_aggr_depth=1 > HW TXQ 2: axq_depth=0, axq_aggr_depth=0 > HW TXQ 3: axq_depth=0, axq_aggr_depth=0 > HW TXQ 8: axq_depth=0, axq_aggr_depth=0 > 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: 8360 3: 5998 > 4: 5304 5: 4703 6: 4846 7: 4701 > 8: 5377 9: 5216 10: 4935 11: 9544 > 12: 3383 13: 2753 14: 2811 15: 2441 > 16: 8822 17: 2474 18: 4566 19: 8304 > 20: 6966 21: 4681 22: 2406 23: 1270 > 24: 1077 25: 929 26: 866 27: 856 > 28: 835 29: 895 30: 1033 31: 1016 > 32: 10037 33: 0 34: 0 35: 0 > 36: 0 37: 0 38: 0 39: 0 > 40: 0 41: 0 42: 0 43: 0 > 44: 0 45: 0 46: 0 47: 0 > 48: 0 49: 0 50: 0 51: 0 > 52: 0 53: 0 54: 0 55: 0 > 56: 0 57: 0 58: 0 59: 0 > 60: 0 61: 0 62: 0 63: 0 > > HW TXQ 0: axq_depth=0, axq_aggr_depth=0 > HW TXQ 1: axq_depth=2, axq_aggr_depth=2 > HW TXQ 2: axq_depth=0, axq_aggr_depth=0 > HW TXQ 3: axq_depth=0, axq_aggr_depth=0 > HW TXQ 8: axq_depth=0, axq_aggr_depth=0 > 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 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 > --------------060900020802060605060409 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Oops sorry missed the important bit off. Yes then they returned to 512 and have continued returning to 512.

Vince

On 19/03/2012 23:09, Adrian Chadd wrote:
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:       7811  3:       5690
 4:       5077  5:       4509  6:       4675  7:       4546
 8:       5255  9:       5061 10:       4796 11:       9393
12:       3094 13:       2604 14:       2647 15:       2301
16:       4372 17:       2440 18:       4558 19:       8300
20:       6962 21:       4679 22:       2404 23:       1270
24:       1076 25:        929 26:        866 27:        856
28:        835 29:        895 30:       1033 31:       1016
32:      10037 33:          0 34:          0 35:          0
36:          0 37:          0 38:          0 39:          0
40:          0 41:          0 42:          0 43:          0
44:          0 45:          0 46:          0 47:          0
48:          0 49:          0 50:          0 51:          0
52:          0 53:          0 54:          0 55:          0
56:          0 57:          0 58:          0 59:          0
60:          0 61:          0 62:          0 63:          0

HW TXQ 0: axq_depth=0, axq_aggr_depth=0
HW TXQ 1: axq_depth=0, axq_aggr_depth=0
HW TXQ 2: axq_depth=0, axq_aggr_depth=0
HW TXQ 3: axq_depth=0, axq_aggr_depth=0
HW TXQ 8: axq_depth=0, axq_aggr_depth=0
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:       7931  3:       5744
 4:       5116  5:       4554  6:       4716  7:       4577
 8:       5284  9:       5097 10:       4822 11:       9425
12:       3123 13:       2628 14:       2671 15:       2322
16:       5036 17:       2442 18:       4558 19:       8300
20:       6962 21:       4679 22:       2404 23:       1270
24:       1076 25:        929 26:        866 27:        856
28:        835 29:        895 30:       1033 31:       1016
32:      10037 33:          0 34:          0 35:          0
36:          0 37:          0 38:          0 39:          0
40:          0 41:          0 42:          0 43:          0
44:          0 45:          0 46:          0 47:          0
48:          0 49:          0 50:          0 51:          0
52:          0 53:          0 54:          0 55:          0
56:          0 57:          0 58:          0 59:          0
60:          0 61:          0 62:          0 63:          0

HW TXQ 0: axq_depth=0, axq_aggr_depth=0
HW TXQ 1: axq_depth=2, axq_aggr_depth=2
HW TXQ 2: axq_depth=0, axq_aggr_depth=0
HW TXQ 3: axq_depth=0, axq_aggr_depth=0
HW TXQ 8: axq_depth=0, axq_aggr_depth=0
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:       8187  3:       5884
 4:       5230  5:       4653  6:       4801  7:       4649
 8:       5347  9:       5168 10:       4891 11:       9496
12:       3305 13:       2715 14:       2753 15:       2399
16:       7473 17:       2464 18:       4565 19:       8304
20:       6966 21:       4681 22:       2405 23:       1270
24:       1077 25:        929 26:        866 27:        856
28:        835 29:        895 30:       1033 31:       1016
32:      10037 33:          0 34:          0 35:          0
36:          0 37:          0 38:          0 39:          0
40:          0 41:          0 42:          0 43:          0
44:          0 45:          0 46:          0 47:          0
48:          0 49:          0 50:          0 51:          0
52:          0 53:          0 54:          0 55:          0
56:          0 57:          0 58:          0 59:          0
60:          0 61:          0 62:          0 63:          0

HW TXQ 0: axq_depth=0, axq_aggr_depth=0
HW TXQ 1: axq_depth=2, axq_aggr_depth=1
HW TXQ 2: axq_depth=0, axq_aggr_depth=0
HW TXQ 3: axq_depth=0, axq_aggr_depth=0
HW TXQ 8: axq_depth=0, axq_aggr_depth=0
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:       8360  3:       5998
 4:       5304  5:       4703  6:       4846  7:       4701
 8:       5377  9:       5216 10:       4935 11:       9544
12:       3383 13:       2753 14:       2811 15:       2441
16:       8822 17:       2474 18:       4566 19:       8304
20:       6966 21:       4681 22:       2406 23:       1270
24:       1077 25:        929 26:        866 27:        856
28:        835 29:        895 30:       1033 31:       1016
32:      10037 33:          0 34:          0 35:          0
36:          0 37:          0 38:          0 39:          0
40:          0 41:          0 42:          0 43:          0
44:          0 45:          0 46:          0 47:          0
48:          0 49:          0 50:          0 51:          0
52:          0 53:          0 54:          0 55:          0
56:          0 57:          0 58:          0 59:          0
60:          0 61:          0 62:          0 63:          0

HW TXQ 0: axq_depth=0, axq_aggr_depth=0
HW TXQ 1: axq_depth=2, axq_aggr_depth=2
HW TXQ 2: axq_depth=0, axq_aggr_depth=0
HW TXQ 3: axq_depth=0, axq_aggr_depth=0
HW TXQ 8: axq_depth=0, axq_aggr_depth=0
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


--------------060900020802060605060409--