AW: AW: AW: axge0 and AX88179
Tom Huerlimann
office at thuinformatik.ch
Fri May 26 05:23:10 UTC 2017
Attached netstat-s.log2.txt after the box was up during the night.
From: Hans Petter Selasky [mailto:hps at selasky.org]
Hello HPS
> You can try to enable debugging:
> sysctl hw.usb.axge.debug=255
# sysctl hw.usb.axge.debug=255
sysctl: unknown oid 'hw.usb.axge.debug': No such file or directory
# sysctl hw.usb
hw.usb.ucom.cons_baud: 9600
hw.usb.ucom.cons_subunit: 0
hw.usb.ucom.cons_unit: -1
hw.usb.ucom.pps_mode: 0
hw.usb.uftdi.skip_jtag_interfaces: 1
hw.usb.urtw.preamble_mode: 2
hw.usb.uath.regdomain: 0
hw.usb.uath.countrycode: 0
hw.usb.full_ddesc: 0
hw.usb.no_cs_fail: 0
hw.usb.disable_port_power: 0
hw.usb.disable_enumeration: 0
hw.usb.power_timeout: 30
hw.usb.usb_lang_mask: 255
hw.usb.usb_lang_id: 9
hw.usb.template: 0
hw.usb.debug: 0
hw.usb.no_shutdown_wait: 0
hw.usb.no_suspend_wait: 0
hw.usb.no_boot_wait: 0
hw.usb.xhci.streams: 0
# sysctl hw.usb.debug=255
hw.usb.debug: 0 -> 255
# sysctl hw.usb.debug
hw.usb.debug: 255
There is nothing printed to the console and I searched for the DEBUG logs in
/var/logs/system.log.
I also tried with value '1' because I found a website saying value 1 is to
enable debug mode - just to exclude that.
# sysctl hw.usb.debug=1
hw.usb.debug: 255 -> 1
# sysctl hw.usb.debug
hw.usb.debug: 1
Same: Noting on console nor system.log.
There is nothing logged or I don't know where to find the logs. Do you know
where the logs are?
> Or:
> Try to log the USB traffic using "usbdump"
> usbdump -i usbusX -f y -s 65536
> And look for errors like "ERR".
# usbdump -i usbus0 -f 7 -s 65535 | grep -i ERR
(...)
23:44:41.604114 usbus0.7
DONE-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=1528,IVAL=0,ERR=0
23:44:41.604367 usbus0.7
DONE-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=1528,IVAL=0,ERR=0
23:44:41.605907 usbus0.7
DONE-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=1528,IVAL=0,ERR=0
23:44:41.606159 usbus0.7
DONE-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=1528,IVAL=0,ERR=0
23:44:41.606651 usbus0.7
DONE-BULK-EP=00000003,SPD=SUPER,NFR=1,SLEN=0,IVAL=0,ERR=0
23:44:41.606905 usbus0.7
DONE-BULK-EP=00000003,SPD=SUPER,NFR=1,SLEN=0,IVAL=0,ERR=0
23:44:41.608688 usbus0.7
DONE-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=1528,IVAL=0,ERR=0
23:44:41.608944 usbus0.7
DONE-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=6104,IVAL=0,ERR=0
23:44:41.609196 usbus0.7
DONE-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=4576,IVAL=0,ERR=0
23:44:41.609448 usbus0.7
DONE-BULK-EP=00000003,SPD=SUPER,NFR=1,SLEN=0,IVAL=0,ERR=0
23:44:41.609701 usbus0.7
DONE-BULK-EP=00000003,SPD=SUPER,NFR=1,SLEN=0,IVAL=0,ERR=0
23:44:41.609958 usbus0.7
DONE-BULK-EP=00000003,SPD=SUPER,NFR=2,SLEN=0,IVAL=0,ERR=0
# usbdump -i usbus0 -f 7 -s 65535 | grep -v ERR=0
(...)
23:48:07.877798 usbus0.7
SUBM-BULK-EP=00000003,SPD=SUPER,NFR=1,SLEN=64,IVAL=0
23:48:07.882190 usbus0.7 SUBM-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=0,IVAL=0
23:48:07.882438 usbus0.7
SUBM-BULK-EP=00000003,SPD=SUPER,NFR=1,SLEN=64,IVAL=0
23:48:07.882447 usbus0.7 SUBM-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=0,IVAL=0
23:48:07.882696 usbus0.7
SUBM-BULK-EP=00000003,SPD=SUPER,NFR=1,SLEN=64,IVAL=0
23:48:07.882708 usbus0.7 SUBM-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=0,IVAL=0
23:48:07.882952 usbus0.7
SUBM-BULK-EP=00000003,SPD=SUPER,NFR=1,SLEN=64,IVAL=0
23:48:07.882964 usbus0.7 SUBM-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=0,IVAL=0
Result: ERR is always = 0 or ERR=0 is not present in the output.
> Did you verify two such adapters back2back with iperf, for packetloss and
other issues?
On FreeBSD 10.3-RELEASE-p19 is one adapter and on my other box containing
FreeBSD 10.1-RELEASE-p25 is another adapter.
After I did some bandwith test with slow performance, I have those
statistics (full output off netstat -s attached):
# netstat -s | egrep -i 'loss|retran'
0 data packets (0 bytes) retransmitted
0 data packets unnecessarily retransmitted
0 retransmit timeouts
0 retransmitted
0 retransmitted DATA chunks
0 fast retransmitted DATA chunks
0 TSN's marked for Fast Retran
Is that the information you are asking for?
Thank you for your time, I'm very interested in finding the root cause for
this one.
Have a good day
Tom
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: netstat-s.log2.txt
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20170526/4dbd8a40/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6573 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20170526/4dbd8a40/attachment.bin>
More information about the freebsd-net
mailing list