Re: Low umass performance with USB 2.0 ports

From: Scott Long (scottl_at_samsco.org)
Date: 08/31/05

  • Next message: Scott Long: "Re: Low umass performance with USB 2.0 ports"
    Date: Wed, 31 Aug 2005 13:21:24 -0600
    To: Ian Dowse <iedowse@iedowse.com>
    
    

    Ian Dowse wrote:
    > In message <20050830125031.GA775@rea.mbslab.kiae.ru>, "Eygene A. Ryabinkin" wri
    > tes:
    >
    >>>What is filesystem has your USB drive?
    >>
    >>The one I was extensively testing has FAT, but I've checked the UFS2 --
    >>just a bit better -- 1.8 Mb/second. But you're right -- no wdrains at all.
    >>
    >>>FreeBSD 4.x had very low performance with FAT filesystem,
    >>>writing process spent lots of time in the wdrain state too.
    >>
    >>Yes, it has. But here the same flash drive gives different results for
    >>ehci and uhci devices, and the total speed of echi is lower due to wdrains:
    >>300 Kb/sec versus 500 Kb/sec. And I sometimes write my data to the Windows
    >>partition with FAT to my home HDD -- it has no wdrains. At least, I've not
    >>noticed them. For flash I can.
    >
    >
    > The patch in from the email below may help with the wdrain state -
    > can you see if it makes any difference?

    Is the problem that the interrupt gets fired but not all of the status
    information has made it's way back to host memory when the driver gets
    there? Would it make a difference to instead read back the EHCI_USBSTS
    register after writing to it in ehci_intr1? That way all transactions
    down to the controller would be guaranteed to be flushed before you
    continue on. I wonder if this is a remnant of the famous problems with
    VIA chipsets doing bad things under medium-to-high PCI contention. I
    don't see any obvious workarounds for this in the Linux EHCI code, so
    I wonder if it's a case of them not encountering it, or doing something
    different that avoids the problem.

    Scott
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Scott Long: "Re: Low umass performance with USB 2.0 ports"

    Relevant Pages

    • Re: fix/workaround for usb probe lockups on nForce2 mbs
      ... >Ian Dowse wrote: ... >> interrupts in polling mode. ... I haven't tried either patch ... So the more important question is what could be lowering the cpl ...
      (freebsd-stable)
    • Re: USB patch for better bus_dma and detachment support
      ... On Sun, 23 May 2004, Ian Dowse wrote: ... > In case anybody is interested in testing or helping with this, ... > there's a patch at ...
      (freebsd-current)
    • Re: ad WRITE_DMA timing out frequently
      ... On Sat, 2005-02-19 at 15:56 +0000, Ian Dowse wrote: ... > to clean up the handling of timeouts in the ATA code by using the ... > WRITE_DMA timeout messages for me. ... I've been using the patch Ian posted for a week or so now and have not ...
      (freebsd-current)
    • Re:Detaching USB stick crashes BETA4/BETA5
      ... > Ian Dowse also is having problems in this area. ... I have some concerns about the patch, ... when reattaching the usb hub / devices. ... Permissions set in /etc/devfs.conf do not take effect any more. ...
      (freebsd-current)