<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-09-13 16:43 GMT+02:00 Christophe Fergeau <span dir="ltr"><<a href="mailto:cfergeau@redhat.com" target="_blank">cfergeau@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey,<br><span><br>
On Tue, Sep 13, 2016 at 08:47:18AM +0200, Rob Verduijn wrote:<br>
> Hello,<br>
><br>
> I'm trying to improve my spice performance on a kvm host/guest.<br>
> It's currently rather slow and I can see screens beeing build up, and<br>
> delays when draging windows.<br>
><br>
> It's being tunneled through openvpn, which is set to use tcp.<br>
> tcp required because of the firewall which is maintained by 3rd party.<br>
><br>
> I have full access to the kvm host, kvm guest and openvpn server.<br>
><br>
> Have you got any tips so that I can improve spice performance ?<br>
> I alrready am running tuned with the virtual-guest profile for guests and<br>
> host profile for the host.<br>
> All systems are runnning CentOS 7<br>
><br>
> Any tips for :<br>
> - the KVM host ?<br>
> - the KVM guest ?<br>
> - the openvpn server ?<br>
<br>
</span>I would try to minimize latency, and to get as much bandwidth as<br>
possible, probably some tweaks can be done for that on the openvpn side?<br>
Regarding QEMU, make sure you are using the QXL video driver as well as<br>
the SPICE agent in the guest. There are also a bunch of compression<br>
options that you can try to tweak, see<br><a href="https://libvirt.org/formatdomain.html#elementsGraphics" rel="noreferrer" target="_blank">https://libvirt.org/formatdomain.html#elementsGraphics</a><br><span><span style="color: #888888;" data-mce-style="color: #888888;" color="#888888"><br>
Christophe<br></span></span></blockquote><div>bandwith and latency are not mine to decide about</div></div></div></div></blockquote><div>You could tweak OpenVPN settings too.<br></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br>QXL-driver check<br></div><div>spice-agent check<br></div><div>tweaks in guest definition :<br> <graphics type='spice' port='5999' autoport='no' listen='0.0.0.0'><br> <listen type='address' address='0.0.0.0'/><br></div><div> <image compression='glz'/><br> <jpeg compression='always'/><br> <zlib compression='always'/><br><span style="font-family:arial,helvetica,sans-serif"><streaming mode='all'/><br></graphics><br><div><br></div></span></div><div><span style="font-family:arial,helvetica,sans-serif">I tried them on auto_glz,auto,auto,filter (tried every combo)<span style="font-size: small;" data-mce-style="font-size: small;" size="2"><br></span></span></div><div><span style="font-family:arial,helvetica,sans-serif"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">But I guess my bandwith is not stable and since setting them like this gives the best performance.</span><span style="font-size: small;" data-mce-style="font-size: small;" size="2"><br><div><br></div><gl enable='yes'/> gets an error if I add that to the config.</span><span style="font-size: small;" data-mce-style="font-size: small;" size="2"><br>It says this option is included since 1.3.3 and centos has qemu-kvm 1.5.3</span><span style="font-size: small;" data-mce-style="font-size: small;" size="2"><br>Did I forget something to enable this ?<br></span></span></div><div><span style="font-family:arial,helvetica,sans-serif"><br></span></div></div><br></div><div class="gmail_extra">Rob Verduijn<br></div></div></blockquote><div>Frediano</div><div><br></div></div></body></html>