Re: 2.6.11, USB: High latency?

From: Alan Stern (stern_at_rowland.harvard.edu)
Date: 03/30/05

  • Next message: Christoph Lameter: "Re: API changes to the slab allocator for NUMA memory allocation"
    Date:	Wed, 30 Mar 2005 10:55:36 -0500 (EST)
    To: kus Kusche Klaus <kus@keba.com>
    
    

    On Wed, 30 Mar 2005, kus Kusche Klaus wrote:

    > I'm performing realtime latency tests (for details about the hardware
    > and software, see my mail "[BUG] 2.6.11: Random SCSI/USB errors when
    > reading from USB memory stick" erlier today).
    >
    > Even when the errors described in my previous mail does not occur,
    > massive USB stick transfers cause latencies of 1 to 2 milliseconds,
    > which is way too much for realtime control systems.
    >
    > I observe these latencies on a vanilla 2.6.11 at any rtprio (even 99),
    > and on realtime-preempt-2.6.12-rc1-V0.7.41-11 at low rtprio (1). When
    > running the program on realtime-preempt-2.6.12-rc1-V0.7.41-11 with
    > rtprio 99, the latencies are gone, but using a rtprio higher than the
    > interrupt handlers is not realistic.
    >
    > Is there anything which can be done about it?

    The latencies are almost certainly caused by the USB host controller
    driver. I'm planning improvements to uhci-hcd which should help reduce
    the latency, but it will still be on the large side. And I won't have
    time to write the changes to the driver for several months.

    The best solution is to stop using uhci-hcd. Get a PCI card with an OHCI
    or EHCI (high-speed) controller. They do much more work in hardware,
    reducing the amount of time the driver needs to spend with interrupts
    disabled.

    Alan Stern

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Christoph Lameter: "Re: API changes to the slab allocator for NUMA memory allocation"

    Relevant Pages

    • Re: 0x0000007B
      ... I got past the Windows setup infinite loop by copying NTLDR and NTDETECT.COM ... to an empty USB memory stick. ... There is an autorun Intel installation program that can be used to install ... Warning:Could not find a driver for Video Controller ...
      (microsoft.public.windowsxp.embedded)
    • Re: SP3 and HD error
      ... USB memory stick plugged in the front of the computer). ... I can't be sure that it is related to SP3 so that is why I have asked but it ... like driver problems. ... problem with hard drive controllers. ...
      (microsoft.public.windowsxp.general)
    • When will MS fix the WinCE USB Mass Storage Problems?
      ... recently tested about 9 different USB memory stick devices from various ... To summarize what I have gleaned from the postings, ... told to fix the drivers ourselves or purchase a 3rd party driver. ... Which QFEs fix this problem? ...
      (microsoft.public.windowsce.platbuilder)
    • Re: How to I get a USB memory stick driver for Windows CE 5.0?
      ... Also when plug my memory stick in under XP and get its ... Did you include the partition driver for FAT? ... I am currently booting Windows CE 5.0 from a compact flash on a ... do in Platform Builder to have the OS realize USB memory sticks or do I ...
      (microsoft.public.windowsce.embedded)
    • 2.6.11, USB: High latency?
      ... I'm performing realtime latency tests (for details about the hardware ... reading from USB memory stick" erlier today). ... rtprio 99, the latencies are gone, but using a rtprio higher than the ...
      (Linux-Kernel)