lock contention problem?
Hans Petter Selasky
hselasky at c2i.net
Thu Jan 13 21:24:54 UTC 2011
On Thursday 13 January 2011 21:28:15 dieterbsd at engineer.com wrote:
> I suspect that I have a problem with lock/mutex contention.
> Reading from a USB disk appears to lock out the firewire driver
> for too long, causing data transfer (writing to firewire bus) to fail
> with EAGAIN. Once it fails it does not recover.
> kernel: fwohci1: IT DMA underrun (0x40308011) (stat &
> last message repeated 63 times
> This is from the end of the fwohci_itxbuf_enable() function in
> I added LOCK_PROFILING to the kernel and gathered some data.
> The data is quite verbose, so I sorted by "max" and am including
> the first 40 lines. This is a true real-time task, so I am concerned
> with the worst case rather than the average.
It might be a hardware resource starvation problem. It is possible to nice
umass by simply adding a line like:
.interval = 2, /* 2 milliseconds */
Inside the following structure in /sys/dev/usb/storage/umass.c :
More information about the freebsd-usb