Skip to contentSkip to conversation

USB performance bug since kernel 2.6.13 (CRITICAL???)

DISCUSSION Open Source 3 participants 3 messages Oct 12, 2006 – Oct 13, 2006

lore
Share & tools
lore
#0 lore raw

Yes, I am pretty sure you are right about the timing. But it shouldn't be that way. If it is, then there's a bug.

I'm fully willing to accept there is something else I should be doing driver-wise, but it shoudn't require recompiling the stock distribution kernels. Otherwise, Linux is not competitive with Microsoft Windows in this regard!

I'll try a recompile and report back. In the meantime, if anyone else has any ideas, please let me know!

Gopal

----- Original Message ----
From: Lee Revell <[email protected]>
To: Open Source <[email protected]>
Cc: [email protected]; [email protected]
Sent: Thursday, October 12, 2006 1:19:12 PM
Subject: Re: USB performance bug since kernel 2.6.13 (CRITICAL???)

Quoted 4 lines · Open Source

Hi,

Thanks for the rapid response! But...I'm a bit confused. Why is there any software OS timer involved at all? Bulk messages should be scheduled by the host controller and for USB 2.0 the microframe period is 125 us. When I submit an URB, it should be sent to the host controller and scheduled for the next microframe. When the URB completes I should get an interrupt from the hardware. Hence, my transactions (WRITE followed by READ) should at worst be approximately 250 us plus some overhead to process the transaction itself, provided there aren't any other time consuming processes running on my OS. My overhead is less than 250 us. I was willing to tolerate 1 ms per transaction, but 4 ms just doesn't make any sense. Therefore I'm not sure if CONFIG_HZ is an appropriate excuse for this issue.

I don't know, it just seemed likely because 1ms vs 4ms is close to the change in the timer tick rate. Try it.

Lee

#1 lore raw
Quoted 6 lines · Open Source

Yes, I am pretty sure you are right about the timing. But it shouldn't be that way. If it is, then there's a bug.

I'm fully willing to accept there is something else I should be doing driver-wise, but it shoudn't require recompiling the stock distribution kernels. Otherwise, Linux is not competitive with Microsoft Windows in this regard!

I'll try a recompile and report back. In the meantime, if anyone else has any ideas, please let me know!

Yes, I agree that it would be a bug. If it turns out to be related to CONFIG_HZ, ask your distro why they rolled it back from 1000 to 250Hz.

Lee

#2 lore raw
Quoted 10 lines · Lee Revell
Quoted 6 lines · Open Source

Yes, I am pretty sure you are right about the timing. But it shouldn't be that way. If it is, then there's a bug.

I'm fully willing to accept there is something else I should be doing driver-wise, but it shoudn't require recompiling the stock distribution kernels. Otherwise, Linux is not competitive with Microsoft Windows in this regard!

I'll try a recompile and report back. In the meantime, if anyone else has any ideas, please let me know!

Yes, I agree that it would be a bug. If it turns out to be related to CONFIG_HZ, ask your distro why they rolled it back from 1000 to 250Hz.

If this turns out to be tied to the HZ rate its a bug. It _should_ not be using this timing to do this ergo bug. You may be able to bypass by using 1000Hz but this is not a fix...

Ed Tomlinson