[Spice-devel] [RFC] Spice channels compression

Christophe Fergeau cfergeau at redhat.com
Fri Mar 3 09:47:58 UTC 2017


Hey,

Do you have any measurements of how much bandwidth is saved on each
channel type on basic usage of linux/windows guests? Ideally, with
numbers about additional CPU usage and added latency?

Christophe

On Thu, Mar 02, 2017 at 06:53:23PM +0200, Snir Sheriber wrote:
> This series of patches allows compression of messages over
> selected spice channels
> 
> Few notes:
> 
> *Currently lz4 stream and regular compression are in use for small and large
> messages accordingly. packets are being sent in common msg type that was added,
> and it utilize previous compressed message structure.
> 
> *The stream compression & decompression dictionary is based on previous messages,
> there for messages that has compressed\decompressed in stream mode are being saved
> in continuous pre-allocated buffer and a pointer is used for tracking current
> position.
> 
> *Currently all channels are allowed to be compressed, we might want to avoid
> compression for some channels (for good or just in specific cases) ***please
> notice that usbredir compression was not revert yet so meanwhile i added 2 small
> patches to disable its compression caps.
> 
> *Multiple clients- basically it should work with more than one client, although adding
> compression/decompression to just part of the clients could theoretically make it
> worse (good for compression performance testing though)
> 
> -If someone has encountered issues with the combination of compression and other spice features please let me know
> -Suggestions and comments are welcome, especially for improving the messages sending  :)
> 
> Snir.
> 
> Spice components:
> server,client,spice-common,spice-protocol
> 
> -- 
> 2.9.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170303/b0a51782/attachment.sig>


More information about the Spice-devel mailing list