FS#41162 - [linux] 3.15.x USB3 extremely slow, sometimes system freezes completely

Attached to Project: Arch Linux
Opened by Markus N. (Markus.N) - Friday, 11 July 2014, 00:01 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 30 July 2016, 15:37 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Access to a USB3 harddisk is extremely slow (reading and writing), sometimes the system freezes completely.
The problem occurs when running on linux 3.15.4-1, but not when running on linux-lts 3.14.11-1. This rules out all possible causes other than the kernel.

When testing this, one thing was eye-catching: I used one terminal to copy files to the USB3 disk, and anoter one to "watch ls -l" in the target directory. Looking at the file sizes, they were changing for a while, then frozen, then changing again etc. Sometimes, while the file sizes were frozen, the whole system was frozen: The time in the top right corner of the watch command, the desktop clock, even the mouse pointer and keyboard. And sometimes, when the system was frozen completely, it did not recover. I was waiting for 30 minutes.

My Mainboard is a Gigabyte GA-890FXA-UD5 with a NEC D720200F1 USB3 Chip.

I am not sure if this is an upstream bug or if it was introduced by arch-specific patches.

Additional info:
* package version(s)
linux 3.15.4-1

* config and/or log files etc.
N/A

Steps to reproduce:
Copy several gigabytes of data to an external hdd, attached via USB3
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 30 July 2016, 15:37 GMT
Reason for closing:  Fixed
Comment by Carlo (arcieredorato) - Friday, 11 July 2014, 12:38 GMT
Have you tried to update to 3.15.5-1 ? Try to update and tell us if the problem persits.
Comment by Markus N. (Markus.N) - Saturday, 12 July 2014, 01:32 GMT
Yes, it persists.

Copying 10 GB from my internal RAID 5 to the USB3 HDD took over 24 minutes. With the lts kernel, it takes about 2 minutes. In this test, I did not notice a system freeze. But that does not necessarily mean it's gone, because it always occurred very randomly.

I think I should add the information that the first occurrence was a few weeks ago, but it took a while (and a few kernel updates) until I had the idea to cross-check with the lts kernel. So, I cannot exactly tell in which kernel version it was introduced.
Comment by Tom Moorman (tmoorman) - Tuesday, 15 July 2014, 23:24 GMT
usb 3.0 docking station (Thermaltake BlacX 5G) with Western Digital WD10EARS 1TB harddrive. The BlacX is plugged into a usb 3.0 port.
When I turn on the docking station, after a brief pause (a minute or so) I get a kernel panic and KDE freezes (no usb keyboard, no usb mouse, nothing). I need to do a hard reset.
I have a Vantec usb 2.0 hard drive enclosure that works fine.
I booted clonezilla live 2.2.3-25 (64bit) from a usb 2.0 flash drive (uses linux 3.14) and the BlacX works normally.
I have a Gigabyte GA-870A-UD3 motherboard.
Comment by Markus N. (Markus.N) - Wednesday, 16 July 2014, 01:21 GMT
I just looked at the Gigabyte homepage for the USB3 chip used on the GA-870A-UD3. Unfortunately, it is not exactly specified. They just write "NEC Chip". But this info is still valuable ... now we know that the chip manufacturer is the same. Maybe the bug only affects NEC USB3 Chips.

I also tested connecting my USB3 disk to an USB2 port (with the standard kernel, not lts). Works fine at normal USB2 speed.
Comment by Tom Moorman (tmoorman) - Wednesday, 16 July 2014, 01:54 GMT
The user manual for the GA-870A-UD3 has a Block Diagram.
The box labelled "2 USB 3.0/2.0" is connected to a box labelled "NEC D720200F1"
Comment by Tom Moorman (tmoorman) - Wednesday, 16 July 2014, 15:30 GMT
I found a work around on the Kernel and Hardware forum:
https://bbs.archlinux.org/viewtopic.php?id=183190&p=2
My comment is #27
Comment by Tobias Powalowski (tpowa) - Wednesday, 13 August 2014, 08:09 GMT
Status on 3.16?
Comment by Markus N. (Markus.N) - Wednesday, 03 September 2014, 21:51 GMT
I haven't tested it yet.

The external harddisk is my backup. And because the UAS problem causes system crashes (including data loss sometimes), I do not want to take the risk of losing my data and the backup at once for every new kernel release.

Currently, I'm living well with the ignore-uas quirk as described in the forum post mentioned by Tom Moorman. So, let's freeze this task for a while, and I will restest it with kernel 3.20 or so ...
Comment by Andreas Radke (AndyRTR) - Thursday, 28 July 2016, 12:30 GMT
Is this still an issue?
Comment by Tom Moorman (tmoorman) - Thursday, 28 July 2016, 15:17 GMT
No, for me, this is not still an issue.
I just copied 3GB to and from a harddrive attached to a usb 3.0 docking station with no problems.
I checked and I do not have the .conf file in /etc/modprobe.d, so, I guess, this has been fixed.

Loading...