KVM Rate Limit does not work with UDP

Dzung

Well-Known Member
Feb 20, 2019
84
2
48
33
KVM Rate Limit does not work with UDP, I limit 25MB but VM is still over 300MB, does anyone have a method to solve this problem ?
my server running pve-manager/6.4-6/be2fa32c (running kernel: 5.4.114-1-pve)
 
yes, it running on TCP, but UDP not working, I was limit 25MB but bandwidth out over 2400Mbps.(300MB)
 
this is my pve version
Code:
proxmox-ve: 6.4-1 (running kernel: 5.4.114-1-pve)
pve-manager: 6.4-6 (running version: 6.4-6/be2fa32c)
pve-kernel-5.4: 6.4-2
pve-kernel-helper: 6.4-2
pve-kernel-5.4.114-1-pve: 5.4.114-1
pve-kernel-5.4.73-1-pve: 5.4.73-1
ceph-fuse: 14.2.20-pve1
corosync: 3.1.2-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: residual config
ifupdown2: 3.0.0-1+pve3
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.20-pve1
libproxmox-acme-perl: 1.1.0
libproxmox-backup-qemu0: 1.0.3-1
libpve-access-control: 6.4-1
libpve-apiclient-perl: 3.1-3
libpve-common-perl: 6.4-3
libpve-guest-common-perl: 3.1-5
libpve-http-server-perl: 3.2-2
libpve-storage-perl: 6.4-1
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.6-2
lxcfs: 4.0.6-pve1
novnc-pve: 1.1.0-1
openvswitch-switch: 2.12.3-1
proxmox-backup-client: 1.1.6-2
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.5-5
pve-cluster: 6.4-1
pve-container: 3.3-5
pve-docs: 6.4-2
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-3
pve-firmware: 3.2-3
pve-ha-manager: 3.1-1
pve-i18n: 2.3-1
pve-qemu-kvm: 5.2.0-6
pve-xtermjs: 4.7.0-3
qemu-server: 6.4-2
smartmontools: 7.2-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 2.0.4-pve1
 
can you post your vm config?
it worked here without problems (confirmed via iperf -u )
 
this is my vm config. and attach bandwidth
Code:
#Client%3A Martun Fields (NateVPN)  (ID%3A 6552)
#Email%3A marfields@yahoo.com
#Service ID%3A 986
#Hostname%3A hostvm
#Main IP%3A 10.10.100.6
#Product%3A  VPS 01 (ID%3A 271)
agent: 1
bootdisk: virtio0
cipassword: $5$jW//qTmY$r7igFW0nMnAJ7D7nFd.3JhMfSUKCkHyBzQNnIouZUG9
ciuser: root
cores: 1
cpu: host,flags=+md-clear
ide0: data:vm-8092-cloudinit,media=cdrom,size=4M
ide2: none,media=cdrom
ipconfig0: ip=10.10.100.6/24,gw=10.10.100.1
kvm: 1
memory: 1024
name: host1623244366
nameserver: 8.8.8.8 8.8.4.4
net0: virtio=FA:75:A7:66:40:92,bridge=vmbr1,rate=25,tag=100
numa: 0
ostype: l26
scsihw: virtio-scsi-pci
serial0: socket
smbios1: uuid=2c90f469-a9b0-4066-80c1-eab01f32fa93
sockets: 1
vga: std
virtio0: data:vm-8092-disk-0,cache=none,format=raw,size=20G
vmgenid: fa9aff9a-09fa-4a77-8659-023174707460
 

Attachments

  • screenshot_1623943537.png
    screenshot_1623943537.png
    36 KB · Views: 5
ok, so what happens is that qemu counts the outgoing udp traffic (seemingly) but it does not arrive at the destination

in my iperf tests it looks like this:

server (outside the vm):

[ 5] 0.00-120.00 sec 590 MBytes 41.2 Mbits/sec 0.008 ms 9932128/10359075 (96%) receiver

client (inside vm)

[ 5] 0.00-120.00 sec 14.0 GBytes 1000 Mbits/sec 0.000 ms 0/10359108 (0%) sender
[ 5] 0.00-120.00 sec 590 MBytes 41.2 Mbits/sec 0.008 ms 9932128/10359075 (96%) receiver
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!