public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Erik Rull <erik.rull@rdsoftware.de>
To: kvm@vger.kernel.org
Subject: usb-linux.c - delay between USB URBs
Date: Wed, 18 Mar 2009 22:41:44 +0100	[thread overview]
Message-ID: <49C16A98.8040708@rdsoftware.de> (raw)

Hello,

my problem is still the same - the USB key has only a transfer rate of ~ 2 
MB / min through the virtualization.

So I did some debugging in usb-linux.c - first I switched on debugging.
The debug output was way to much so I added a timestamp calculation between 
a) start and end of async transfer and b) end of one and start of the next 
block (each block is 64 bytes large).
The transfer rate of the driver itself is ~ 200kByte / sec - quite fine and 
much faster than the complete chain (only ~32kByte / sec).
The delay between one and the next packet is ~2msec (transfer of 2MByte 
from USB key to HDD measured)! that means, 64 bytes are transferred then a 
pause of nearly 2msec is placed and then the next 64 bytes are sent to the 
driver. This fits nearly exactly my measured transfer rate of 32kByte /sec 
(64 Bytes / 2msec => 32kByte / sec).

Where do the 2 msec come from? I have no real other processes running that 
could interfere here. In the Windows guest there is nothing else but the 
windows explorer and some other standard processes running.
Any Idea where to continue searching for these 2msecs??

Best regards,

Erik


             reply	other threads:[~2009-03-18 21:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-18 21:41 Erik Rull [this message]
2009-03-19  1:37 ` usb-linux.c - delay between USB URBs Xin, Xiaohui
2009-03-19 22:32   ` Erik Rull

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49C16A98.8040708@rdsoftware.de \
    --to=erik.rull@rdsoftware.de \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox