Re: g_vfs_done() error=5 USB disk on raspberrypi. Decrease the speed of USB

2014-11-07 Thread Aurelien Martin
Hello,

The drive is healthy (SMART OK)

I played with hw.usb.umass.throttle, with value 10 and 100. It slow down
the USB transfert and decresase the %system load ~10%.
But I kept the normal value (0), the system succeed to dd 10GB  to the USB
drive without crashing

If it reoccur I'll rebuild a kernel with USB_DEBUG, and this thread will be
updated.

Thanks for your support Hans.

Cheers,Aurelien




2014-11-07 14:05 GMT+01:00 Hans Petter Selasky :

> Hi,
>
> If you set:
>
> hw.usb.umass.throttle=xxx
>
> Then it might have the same effect!
>
> Needs "options USB_DEBUG" in the kernel configuration file.
>
> SYSCTL_INT(_hw_usb_umass, OID_AUTO, throttle, CTLFLAG_RWTUN,
> &umass_throttle, 0, "Forced delay between commands in milliseconds");
>
> --HPS
>
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: g_vfs_done() error=5 USB disk on raspberrypi. Decrease the speed of USB

2014-11-07 Thread Hans Petter Selasky

Hi,

If you set:

hw.usb.umass.throttle=xxx

Then it might have the same effect!

Needs "options USB_DEBUG" in the kernel configuration file.

SYSCTL_INT(_hw_usb_umass, OID_AUTO, throttle, CTLFLAG_RWTUN,
&umass_throttle, 0, "Forced delay between commands in milliseconds");

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: g_vfs_done() error=5 USB disk on raspberrypi. Decrease the speed of USB

2014-11-07 Thread Hans Petter Selasky

On 11/07/14 13:25, Aurelien Martin wrote:

Dear all,

My raspberry-pi is crashing in g_vfs_done error 5 () when I'm trying to
copy data from the rpi (with dd) to my USB drive on UFS2
I can notice a high %system load ~100% on the rpi before the crash

Apparently people succeed to "fix it" by decreasing the speed of the USB
bus with sysctl hw.usb.ehci.no_hs = 1

But in my case I cannot set this sysctl. And I didn't succeed to fix it
with camcontrol

Can you guide me on my investigation to decrease the speed of USB ?



Hi,

If you connect your USB device through an external full speed USB HUB, 
it will go full speed.


It is possible to make all RPI-B devices enumerate at full speed too, 
but then you will have decreased network performance.


Is you external USB device known to be buggy?

--HPS

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"