Date: Mon, 19 Mar 2012 23:10:13 GMT From: "Adrian Chadd" <adrian.chadd@gmail.com> To: freebsd-wireless@FreeBSD.org Subject: Re: kern/166190: [ath] TX hangs and frames stuck in TX queue Message-ID: <201203192310.q2JNADJX004144@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/166190; it has been noted by GNATS. From: "Adrian Chadd" <adrian.chadd@gmail.com> To: "Vincent Hoffman" <vince@unsane.co.uk> Cc: "bug-followup@freebsd.org" <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?<br><br><br>Adrian<br><br><span style=3D"f= ont-family:Prelude, Verdana, san-serif;"><br><br></span><span id=3D"signatu= re"><div style=3D"font-family: arial, sans-serif; font-size: 12px;color: #9= 99999;">Sent from my Palm Pre on AT&T</div><br></span><span style=3D"co= lor:navy; font-family:Prelude, Verdana, san-serif; "><hr align=3D"left" sty= le=3D"width:75%">On Mar 19, 2012 3:11 PM, Vincent Hoffman <vince@unsane.= co.uk> wrote: <br><br> During an iperf test<br> Total TX buffers went from 512 -> 356)<br> <br> iperf output (tcp, sending form freebsd machine to osx laptop [ = 4] 0.0-60.2 sec 154 MBytes 21.4 Mbits/sec)<br> <br> dmesg output:<br> <br> no tx bufs (empty list): 0<br> no tx bufs (was busy): 0<br> aggr single packet: 14372<br> aggr single packet w/ BAW closed: 0<br> aggr non-baw packet: 1<br> aggr aggregate packet: 119987<br> aggr single packet low hwq: 641424<br> aggr sched, no work: 15333<br> 0: 0 = 1: 0 2: &= nbsp; 7811 3: &n= bsp; 5690 <br> 4: 5077 5: &= nbsp; 4509 6: = 4675 7: 4546 <br> 8: 5255 9: &= nbsp; 5061 10: 4796= 11: 9393 <br> 12: 3094 13:  = ; 2604 14: 2647 15: &n= bsp; 2301 <br> 16: 4372 17:  = ; 2440 18: 4558 19: &n= bsp; 8300 <br> 20: 6962 21:  = ; 4679 22: 2404 23: &n= bsp; 1270 <br> 24: 1076 25:  = ; 929 26: 866= 27: 856 <br> 28: 835 29: = 895 30: 1033= 31: 1016 <br> 32: 10037 33: &nbs= p; 0 34: &= nbsp; 0 35: 0= <br> 36: 0 37: &n= bsp; 0 38:  = ; 0 39: &n= bsp; 0 <br> 40: 0 41: &n= bsp; 0 42:  = ; 0 43: &n= bsp; 0 <br> 44: 0 45: &n= bsp; 0 46:  = ; 0 47: &n= bsp; 0 <br> 48: 0 49: &n= bsp; 0 50:  = ; 0 51: &n= bsp; 0 <br> 52: 0 53: &n= bsp; 0 54:  = ; 0 55: &n= bsp; 0 <br> 56: 0 57: &n= bsp; 0 58:  = ; 0 59: &n= bsp; 0 <br> 60: 0 61: &n= bsp; 0 62:  = ; 0 63: &n= bsp; 0 <br> <br> HW TXQ 0: axq_depth=3D0, axq_aggr_depth=3D0<br> HW TXQ 1: axq_depth=3D0, axq_aggr_depth=3D0<br> HW TXQ 2: axq_depth=3D0, axq_aggr_depth=3D0<br> HW TXQ 3: axq_depth=3D0, axq_aggr_depth=3D0<br> HW TXQ 8: axq_depth=3D0, axq_aggr_depth=3D0<br> Total TX buffers: 512; Total TX buffers busy: 0<br> no tx bufs (empty list): 0<br> no tx bufs (was busy): 0<br> aggr single packet: 14553<br> aggr single packet w/ BAW closed: 0<br> aggr non-baw packet: 1<br> aggr aggregate packet: 121203<br> aggr single packet low hwq: 643315<br> aggr sched, no work: 15414<br> 0: 0 = 1: 0 2: &= nbsp; 7931 3: &n= bsp; 5744 <br> 4: 5116 5: &= nbsp; 4554 6: = 4716 7: 4577 <br> 8: 5284 9: &= nbsp; 5097 10: 4822= 11: 9425 <br> 12: 3123 13:  = ; 2628 14: 2671 15: &n= bsp; 2322 <br> 16: 5036 17:  = ; 2442 18: 4558 19: &n= bsp; 8300 <br> 20: 6962 21:  = ; 4679 22: 2404 23: &n= bsp; 1270 <br> 24: 1076 25:  = ; 929 26: 866= 27: 856 <br> 28: 835 29: = 895 30: 1033= 31: 1016 <br> 32: 10037 33: &nbs= p; 0 34: &= nbsp; 0 35: 0= <br> 36: 0 37: &n= bsp; 0 38:  = ; 0 39: &n= bsp; 0 <br> 40: 0 41: &n= bsp; 0 42:  = ; 0 43: &n= bsp; 0 <br> 44: 0 45: &n= bsp; 0 46:  = ; 0 47: &n= bsp; 0 <br> 48: 0 49: &n= bsp; 0 50:  = ; 0 51: &n= bsp; 0 <br> 52: 0 53: &n= bsp; 0 54:  = ; 0 55: &n= bsp; 0 <br> 56: 0 57: &n= bsp; 0 58:  = ; 0 59: &n= bsp; 0 <br> 60: 0 61: &n= bsp; 0 62:  = ; 0 63: &n= bsp; 0 <br> <br> HW TXQ 0: axq_depth=3D0, axq_aggr_depth=3D0<br> HW TXQ 1: axq_depth=3D2, axq_aggr_depth=3D2<br> HW TXQ 2: axq_depth=3D0, axq_aggr_depth=3D0<br> HW TXQ 3: axq_depth=3D0, axq_aggr_depth=3D0<br> HW TXQ 8: axq_depth=3D0, axq_aggr_depth=3D0<br> Total TX buffers: 481; Total TX buffers busy: 0<br> no tx bufs (empty list): 0<br> no tx bufs (was busy): 0<br> aggr single packet: 14928<br> aggr single packet w/ BAW closed: 0<br> aggr non-baw packet: 1<br> aggr aggregate packet: 125149<br> aggr single packet low hwq: 645085<br> aggr sched, no work: 15673<br> 0: 0 = 1: 0 2: &= nbsp; 8187 3: &n= bsp; 5884 <br> 4: 5230 5: &= nbsp; 4653 6: = 4801 7: 4649 <br> 8: 5347 9: &= nbsp; 5168 10: 4891= 11: 9496 <br> 12: 3305 13:  = ; 2715 14: 2753 15: &n= bsp; 2399 <br> 16: 7473 17:  = ; 2464 18: 4565 19: &n= bsp; 8304 <br> 20: 6966 21:  = ; 4681 22: 2405 23: &n= bsp; 1270 <br> 24: 1077 25:  = ; 929 26: 866= 27: 856 <br> 28: 835 29: = 895 30: 1033= 31: 1016 <br> 32: 10037 33: &nbs= p; 0 34: &= nbsp; 0 35: 0= <br> 36: 0 37: &n= bsp; 0 38:  = ; 0 39: &n= bsp; 0 <br> 40: 0 41: &n= bsp; 0 42:  = ; 0 43: &n= bsp; 0 <br> 44: 0 45: &n= bsp; 0 46:  = ; 0 47: &n= bsp; 0 <br> 48: 0 49: &n= bsp; 0 50:  = ; 0 51: &n= bsp; 0 <br> 52: 0 53: &n= bsp; 0 54:  = ; 0 55: &n= bsp; 0 <br> 56: 0 57: &n= bsp; 0 58:  = ; 0 59: &n= bsp; 0 <br> 60: 0 61: &n= bsp; 0 62:  = ; 0 63: &n= bsp; 0 <br> <br> HW TXQ 0: axq_depth=3D0, axq_aggr_depth=3D0<br> HW TXQ 1: axq_depth=3D2, axq_aggr_depth=3D1<br> HW TXQ 2: axq_depth=3D0, axq_aggr_depth=3D0<br> HW TXQ 3: axq_depth=3D0, axq_aggr_depth=3D0<br> HW TXQ 8: axq_depth=3D0, axq_aggr_depth=3D0<br> Total TX buffers: 502; Total TX buffers busy: 0<br> no tx bufs (empty list): 0<br> no tx bufs (was busy): 0<br> aggr single packet: 15237<br> aggr single packet w/ BAW closed: 0<br> aggr non-baw packet: 1<br> aggr aggregate packet: 127403<br> aggr single packet low hwq: 646324<br> aggr sched, no work: 15851<br> 0: 0 = 1: 0 2: &= nbsp; 8360 3: &n= bsp; 5998 <br> 4: 5304 5: &= nbsp; 4703 6: = 4846 7: 4701 <br> 8: 5377 9: &= nbsp; 5216 10: 4935= 11: 9544 <br> 12: 3383 13:  = ; 2753 14: 2811 15: &n= bsp; 2441 <br> 16: 8822 17:  = ; 2474 18: 4566 19: &n= bsp; 8304 <br> 20: 6966 21:  = ; 4681 22: 2406 23: &n= bsp; 1270 <br> 24: 1077 25:  = ; 929 26: 866= 27: 856 <br> 28: 835 29: = 895 30: 1033= 31: 1016 <br> 32: 10037 33: &nbs= p; 0 34: &= nbsp; 0 35: 0= <br> 36: 0 37: &n= bsp; 0 38:  = ; 0 39: &n= bsp; 0 <br> 40: 0 41: &n= bsp; 0 42:  = ; 0 43: &n= bsp; 0 <br> 44: 0 45: &n= bsp; 0 46:  = ; 0 47: &n= bsp; 0 <br> 48: 0 49: &n= bsp; 0 50:  = ; 0 51: &n= bsp; 0 <br> 52: 0 53: &n= bsp; 0 54:  = ; 0 55: &n= bsp; 0 <br> 56: 0 57: &n= bsp; 0 58:  = ; 0 59: &n= bsp; 0 <br> 60: 0 61: &n= bsp; 0 62:  = ; 0 63: &n= bsp; 0 <br> <br> HW TXQ 0: axq_depth=3D0, axq_aggr_depth=3D0<br> HW TXQ 1: axq_depth=3D2, axq_aggr_depth=3D2<br> HW TXQ 2: axq_depth=3D0, axq_aggr_depth=3D0<br> HW TXQ 3: axq_depth=3D0, axq_aggr_depth=3D0<br> HW TXQ 8: axq_depth=3D0, axq_aggr_depth=3D0<br> Total TX buffers: 356; Total TX buffers busy: 0<br> <br> <br> On 19/03/2012 21:49, Adrian Chadd wrote: <blockquote cite=3D"mid:4f67a9ec.4105440a.1995.ffffecdf@mx.google.com"= type=3D"cite">Just check the txagg sysctl and mae sure your buffer count stays up around 512.<br> <br> I want to make sure that buffers aren't being leaked.<br> <br> Thanks again!<br> <br> <span style=3D"font-family:Prelude, Verdana, san-serif;"><br> <br> </span><span id=3D"signature"> <div style=3D"font-family: arial, sans-serif; font-size: 12px;color: #999999;">Sent from my Palm Pre on AT&T</div> <br> </span><span style=3D"color:navy; font-family:Prelude, Verdana, san-serif; "> <hr style=3D"width:75%" align=3D"left">On Mar 19, 2012 2:38 PM, Vincent Hoffman <a class=3D"moz-txt-link-rfc2396E" href=3D"mailto:v= ince@unsane.co.uk"><vince@unsane.co.uk></a> wrote: <br> <br> Hi Adrian, <br> <br> <br> This patch is looking good as yet, I've repeated tests that were <br> previously causing timeouts and as yet not been able cause a timeout <br> after applying this patch. <br> <br> Its not definitive but so far it appears to have resolved this issue <br> for me. <br> <br> <br> Regards, <br> Vince Hoffman <br> </span> </blockquote> <br> =20 </span> --Alternative__boundary__1332198551683--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203192310.q2JNADJX004144>