WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] pvusb performance

James,

Okay maybe I'm a bit confused then.

When Windows gave me a URB with 65536 bytes of data, I set buffer_length
to 65536 and filled up the SG registers accordingly, but usbback gave me
an error. When I break it into 512 byte (packet size) chunks it works
okay. I just assumed that you have to give usbback requests with less
that 'max packet size' of data.

Maybe the cause of my error was somewhere else? I'll try it again.

If you transfer 65536 bytes of data, you should change the
USBIF_MAX_SEGMENTS_PER_REQUESTS value to 16 or more.
It is defined in include/xen/interface/io/usbif.h
You need to recompile the drivers.

Request size and MAX_RING_SIZE are trade-off.
I defined this value empirically.
If the value is about up to 20, it doesn't affect the performance
of memory stick.

Regards,
Noboru



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>