Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jan 2011 00:04:29 -0500
From:      dieterbsd@engineer.com
To:        hselasky@c2i.net, freebsd-questions@freebsd.org, freebsd-usb@freebsd.org,  freebsd-firewire@freebsd.org
Cc:        freebsd@sopwith.solgatos.com
Subject:   Re: lock contention problem?
Message-ID:  <8CD8288D3167A65-FC4-3504F@web-mmc-m06.sysops.aol.com>

next in thread | raw e-mail | index | archive | help
> It might be a hardware resource starvation problem. It is possible to=20
nice
> umass by simply adding a line like:
>
>                .interval =3D 2,        /* 2 milliseconds */

Thanks, but it didn't help.  Also tried setting it to 1, 4, and 20.

> http://svn.freebsd.org/changeset/base/217350

Is this supposed to work for 8.0?  Is there more to it than a
couple line change in a .h file?

/usr/src/sys/dev/usb/controller/usb_controller.c: In function=20
'usb_attach_sub':
/usr/src/sys/dev/usb/controller/usb_controller.c:434: warning: implicit=20
declaration of function 'PI_SWI'
/usr/src/sys/dev/usb/controller/usb_controller.c:434: warning: nested=20
extern declaration of 'PI_SWI'

I'm feeding "fwcontrol -u 1 -S /dev/stdin" from a pipe.   The write()
to the pipe took over a second.  Perhaps connected to the lock=20
contention
of over a second?  The EAGAIN comes from the writev() roughly 20 lines
from the end of /usr/src/usr.sbin/fwcontrol/fwdv.c.

CPU is 98% idle.  Data rate is only 3.4 MiB/second.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8CD8288D3167A65-FC4-3504F>