[Spice-devel] [master PATCH 2/2] server: netstat: send random data not zeros

Uri Lublin uril at redhat.com
Wed Oct 19 04:29:19 PDT 2011


On 10/18/2011 11:50 PM, Yaniv Kaul wrote:
> On 18/10/2011 19:20, Uri Lublin wrote:
>> WAN accelerators may compress the zeros which results with a
>> wrong bandwidth calculation.
>
> Is this really the right approach? Why not calculate the latency based on the
> time it takes to send the first image?
> That image is not using the WAN feature anyway, regardless of its being set or not.
> A waste of 256K, and possibly several seconds on WAN. Hundreds of packets, for
> sure.
> Y.

That seems like a good idea.
Note that if the first image is not compressed, we may have a similar problem 
with WAN accelerators. Also maybe it is better to always compress it.

This random buffer was intended as a quick fix.
In the long run, we would like to measure network statistics dynamically, e.g. 
when sending large images (as you suggested for the first one).


Uri.


More information about the Spice-devel mailing list