9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] usbether
@ 2012-09-29 16:16 Richard Miller
  2012-09-29 16:39 ` Gorka Guardiola
  2012-09-30 23:29 ` Tristan
  0 siblings, 2 replies; 16+ messages in thread
From: Richard Miller @ 2012-09-29 16:16 UTC (permalink / raw)
  To: 9fans

I've been struggling to get the raspberry pi's built-in usb ethernet
adapter working.  I can send and receive packets reliably enough to
get a remote file system mounted, but with any kind of heavy use the
usbether input seems to be missing a lot of packets, and everything
gets horribly slow.

After running out of 9pi-specific things to debug, it occurred to me
to try a usb ethernet dongle on an x86 plan 9 machine.  There I
observed the same thing: so many dropped packets that the connection
is unusable.

So, has anyone had success using usbether to connect a plan 9 system
to the outside world?  I am hoping someone can give me an encouraging
report.  I'm a bit worried that it's a fundamental problem with the
plan 9 usb architecture, which is basically synchronous - the host
adapter driver in the kernel will poll a device for input only when
the user-level driver process does a read.  This is ok for things like
usbdisk which have an rpc-like protocol, but seems less well suited to
things like ethernet and serial interfaces, where the equivalent
non-usb kernel drivers use qio to read ahead into a queue of buffers
until the user-level consuming process gets around to reading them.

Would anyone like to share experiences or comments?




^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-10-01 19:20 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-29 16:16 [9fans] usbether Richard Miller
2012-09-29 16:39 ` Gorka Guardiola
2012-09-29 17:03   ` erik quanstrom
2012-09-29 18:01     ` Richard Miller
2012-09-29 18:19       ` Gorka Guardiola
2012-09-29 18:24         ` Richard Miller
2012-09-29 21:38           ` Gorka Guardiola
2012-09-29 21:46             ` Richard Miller
2012-09-29 21:48               ` erik quanstrom
2012-10-01 19:20                 ` Richard Miller
2012-09-30  9:20               ` Charles Forsyth
2012-09-30 10:24                 ` Richard Miller
2012-09-30 13:54                   ` Charles Forsyth
2012-09-29 18:41       ` erik quanstrom
2012-09-29 19:49         ` Charles Forsyth
2012-09-30 23:29 ` Tristan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).