Bug 218237
Summary: | performance regression in ASIX AX88179 USB ethernet adapter adds 400ms to resume | ||
---|---|---|---|
Product: | Drivers | Reporter: | Todd Brandt (todd.e.brandt) |
Component: | Network | Assignee: | drivers_network (drivers_network) |
Status: | RESOLVED WILL_NOT_FIX | ||
Severity: | normal | CC: | jtornosm, lenb |
Priority: | P3 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 6.7.0-rc3 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | 0739af07d1d947af27c877f797cb82ceee702515 |
Bug Depends on: | |||
Bug Blocks: | 178231 | ||
Attachments: |
thinkpad-x1_s2idle_6.7-rc2.html
thinkpad-x1_s2idle_6.7-rc3.html ASIX-vs-Realtek-resume-performance.png otcpl-dell-9320-rpl_freeze-ASIX-AX88179-USB-dongle.html otcpl-dell-9320-rpl_freeze-Realtek-RTL8153-USB-dongle.html |
Description
Todd Brandt
2023-12-06 21:01:35 UTC
Created attachment 305553 [details]
thinkpad-x1_s2idle_6.7-rc3.html
after timeline showing the additional 400ms of resume time.
Yes, it is necessary because of the commented issue in the commit. At this moment there is no more information about how to do it in a better way. Indeed the manufacturer driver is using sleeps. As you say full functionality should come first before performance, otherwise the device may not be initialized properly. How do reliability and speed compare if the driver is unloaded on suspend and loaded on resume? If this situation persists, then we need to replace all of the AX** devices from our lab -- because they'll mask useful testing of other devices... Realize that reset operation is needed as well when the device is resumed, and in this way we avoid possible problems. I guess it is due to your scenario or the way you test, but I do not understand how it can mask useful testing of other devices if all the drivers/devices in the machine are resumed. Anyway, let me try to confirm if reset operation is strictly necessary when this device is resumed. (In reply to José Ignacio Tornos Martínez from comment #5) > Realize that reset operation is needed as well when the device is resumed, > and in this way we avoid possible problems. > I guess it is due to your scenario or the way you test, but I do not > understand how it can mask useful testing of other devices if all the > drivers/devices in the machine are resumed. Len just means it affects our ability to see at a glance other devices' effects on total resume time. Any machine with this dongle will have a constant extra 400ms in total resume that masks performance issues in any other devices that run in parallel. Reset is strictly necessary and with no more information I think it is better to keep like this to avoid the problems mentioned. Created attachment 306527 [details]
ASIX-vs-Realtek-resume-performance.png
See the massive difference in resume time in 6.10.0-rc5 and 6.10.0-rc6 as a result of switching from ASIX to Realtek. The original ASIX regression appeared upstream in 6.8.0
Created attachment 306528 [details]
otcpl-dell-9320-rpl_freeze-ASIX-AX88179-USB-dongle.html
Dell 9320 S2idle resume with the ASIX AX88170 dongle, lots of msleeps.
Created attachment 306529 [details]
otcpl-dell-9320-rpl_freeze-Realtek-RTL8153-USB-dongle.html
Dell 9320 S2idle resume with the Realtex RTL8153 dongle. Notice an improvement in resume time of 540ms!
I'm happy to say that we've just thrown out all 31 of our ASIX AX88??? USB ethernet dongles and have replaced them all with Realtex RTL8153 USB ethernet dongles. The Realtek dongles have caused a tremendous resume time drop of up to 600ms in 7 of our machines and removed a major barrier to our performance analysis. I've included an image showing the median resume time for the Dell 9320 over the past year and you can see the massive 540ms improvement in performance from the switchover to the RTL8253 in 6.10.0-rc5. The machine has never run faster. The kernel regression that caused this in the ASIX dongle appeared upstream in 6.8.0 and you can see the huge increase in resume time. I've included two timelines demonstrating just how much better the Realtek RTL8153 is over the ASIX AX88179. I STRONGLY recommend to anyone needing a USB-ethernet dongle: if you care about performance, choose the Realtek version or at least avoid the ASIX version if at all possible. WHen you buy on Amazon be sure to check the stats, some dongle manufacturers will stick ASIX chips in there and not tell you. Our personal pick is the USB-A Uni RJ45. Don't buy the USB-C version of the Uni RJ45 as they use the ASIX chipset in that one for some reason (probably because it's cheaper). |