Date: Mon, 16 Mar 2009 20:56:26 +0100 From: Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no> To: freebsd-usb@freebsd.org Subject: Xorg 7.4 and umass devices - a bad combination? Message-ID: <20090316205626.b0ed5027.torfinn.ingolfsen@broadpark.no>
next in thread | raw e-mail | index | archive | help
Hi, Have anyone seen bad performance when using umass devices (external hard drives) in combination with Xorg 7.4? The reason I ask is that I have this machine[1] which is both a test workstation, and cheap-ass fileserver. I am using external usb drives for storage (it was the cheapest option when I set this up). root@kg-quiet# dmesg | grep da[01234] da4 at sbp0 bus 0 target 0 lun 0 da4: <Maxtor OneTouch II 0310> Fixed Direct Access SCSI-4 device da4: 50.000MB/s transfers da4: 286188MB (586114704 512 byte sectors: 255H 63S/T 36483C) da3 at umass-sim3 bus 3 target 0 lun 0 da3: <WD 5000AAK External 1.06> Fixed Direct Access SCSI-0 device da3: 40.000MB/s transfers da3: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) da2 at umass-sim2 bus 2 target 0 lun 0 da2: <WD 5000AAK External 1.06> Fixed Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) da1 at umass-sim1 bus 1 target 0 lun 0 da1: <WD 5000AAV External 1.06> Fixed Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) da0 at umass-sim0 bus 0 target 0 lun 0 da0: <WD 5000AAK External 1.06> Fixed Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) Yes, there is a firewire drive in there too. The machine currently runs FreeBSD 6.4-stable / amd64, and have run through most releases sine 6.1-prerelease. I use Samba for file serving. root@kg-quiet# uname -a FreeBSD kg-quiet.kg4.no 6.4-STABLE FreeBSD 6.4-STABLE #27: Sun Mar 15 19:42:19 CET 2009 root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET amd64 The machine have always been in X when it is up (I use XFce) and this hasn't created any problems that I have noticed. However, after I upgraded Xorg to 7.4, I get lots of these messages in /var/log/messages if I try to do a simple 'ls' on any filesystem on a usb drive: Mar 16 17:09:02 kg-quiet kernel: umass2: BBB bulk-out clear stall failed, TIMEOUT Mar 16 17:09:31 kg-quiet kernel: umass1: BBB bulk-out clear stall failed, TIMEOUT Mar 16 17:10:00 kg-quiet kernel: umass3: BBB bulk-out clear stall failed, TIMEOUT Mar 16 17:10:43 kg-quiet kernel: umass0: BBB reset failed, TIMEOUT Mar 16 17:11:12 kg-quiet kernel: umass2: BBB reset failed, TIMEOUT Mar 16 17:11:41 kg-quiet kernel: umass1: BBB reset failed, TIMEOUT Mar 16 17:11:48 kg-quiet kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT Mar 16 17:12:10 kg-quiet kernel: umass3: BBB reset failed, TIMEOUT Followed by these: Mar 16 17:12:53 kg-quiet kernel: g_vfs_done():da0s1d[WRITE(offset=196864589824, length=16384)]error = 5 Mar 16 17:12:53 kg-quiet kernel: g_vfs_done():da0s1d[WRITE(offset=114688, length=16384)]error = 5 Mar 16 17:13:15 kg-quiet kernel: umass3: BBB bulk-in clear stall failed, TIMEOUT Mar 16 17:13:22 kg-quiet kernel: umass2: BBB bulk-out clear stall failed, TIMEOUT Mar 16 17:13:22 kg-quiet kernel: g_vfs_done():da2s1d[WRITE(offset=357707874304, length=16384)]error = 5 Mar 16 17:13:22 kg-quiet kernel: g_vfs_done():da2s1d[WRITE(offset=114688, length=16384)]error = 5 and the 'ls' takes several minutes to complete. Notice that the messages mention all umass drives (umass0 - umass3), even if I only do an ls on one of them. Also notice that the firewire drive is absent fom any messages. Note: hal is NOT running on this machine. What is my workaround? Reboot the machine (needing a forced reset, as the machine hangs on shutdown after the umass errors), let fsck do its thing and then don't start Xorg. But this is no solution. The funny thing is that It worked find before I upgraded Xorg from 7.3.2 to 7.4... Any hints on how I can debug this? More info: FreeBSD work log[2], dmesg output normal[3] and verbose[4]. References: 1) http://tingox.googlepages.com/rs480m2 2) http://tingox.googlepages.com/rs480m2_freebsd 3) http://tingox.googlepages.com/quiet-dmesg-6.4-stable-20090315.txt 4) http://tingox.googlepages.com/quiet-dmesg-6.4-stable-20090315_verb.txt -- Regards, Torfinn Ingolfsen, Norway
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090316205626.b0ed5027.torfinn.ingolfsen>