SPICE performance sluggish

kazi

Member
Jan 18, 2024
71
1
8
Hi,
Everything working fine except spice over vpn. It's really slow. The client VM is 32 GB memory. and How to resolve this issue?
Thanks
 
The problem is when I use inside the Network (LAN) , the spice is working fine but when I use over VPN then really slow. How to overcome this issue? Most of the users are using VPN to use their VM.
 
The problem is when I use inside the Network (LAN) , the spice is working fine but when I use over VPN then really slow. How to overcome this issue? Most of the users are using VPN to use their VM.
VPN needs CPU (for encryption etc.) and bandwidth; increase both for better performance. I fail to see how Proxmox is involved here.
 
  • Like
Reactions: gfngfn256
My vpn server is already setup

# TCP or UDP server?
;proto tcp
proto udp

But still slow. My all users are complaining about the slow spice behavior. please help me. I have over 300 VMs.
 
I am using Rocky 8 for OpenVPN server, I did not find the kmod-ovpn-dco and the dependency package dkms. Do you know the url?
 
My vpn server is already setup

# TCP or UDP server?
;proto tcp
proto udp

But still slow. My all users are complaining about the slow spice behavior. please help me. I have over 300 VMs.
This is okay, server using UDP.

Can you check on the Proxmox server the CPU performance and clock-speed settings?
Code:
cat /sys/devices/system/cpu/*/cpufreq/scaling_governor
cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_max_freq

It is possible, the "PowerSavings" options (C-States) downclocking the CPU performance, if true, then set to "perfomance" or disable all "PowerSavings" option in BIOS.
Code:
$> apt-get install cpufrequtils

$> cpufreq-info
$> cpufreq-set -g performance
$> cpufreq-info

/etc/init.d/cpufrequtils
GOVERNOR=performance

$> systemctl daemon-reload
 
Last edited:
I changed display driver to VirtIO-GPU and voila! My performance are great using virt-viewer. Basically zero input lag.

Ps. I'm testing now with Ubuntu 24.04, which is running Wayland by default.
 
Last edited:
  • Like
Reactions: itret
I changed display driver to VirtIO-GPU and voila! My performance are great using virt-viewer. Basically zero input lag.

Ps. I'm testing now with Ubuntu 24.04, which is running Wayland by default.
Sorry, are you saying that using VirtIO-GPU works better with SPICE then the SPICE display driver itself?
 
  • Like
Reactions: Docop2