Network device Rate limit on VM

_seb_

Member
May 12, 2022
13
1
8
Hello,

On my tests I have a random behavior o_O

If I activate the 200Mb (for example) limitation IN/OUT bandwidth on the network interface of the VM hosted on the PVE-2 host and I migrate the VM to the PVE-3 host, the speed limitation is no longer applied...

Should something more be done (Multiqueue is empty) ?

Thanks !
 
Output of pveversion :

Code:
proxmox-ve: 7.2-1 (running kernel: 5.15.35-1-pve)
pve-manager: 7.2-3 (running version: 7.2-3/c743d6c1)
pve-kernel-5.15: 7.2-3
pve-kernel-helper: 7.2-3
pve-kernel-5.13: 7.1-9
pve-kernel-5.15.35-1-pve: 5.15.35-2
pve-kernel-5.13.19-6-pve: 5.13.19-15
pve-kernel-5.13.19-2-pve: 5.13.19-4
ceph: 16.2.7
ceph-fuse: 16.2.7
corosync: 3.1.5-pve2
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.22-pve2
libproxmox-acme-perl: 1.4.2
libproxmox-backup-qemu0: 1.2.0-1
libpve-access-control: 7.1-8
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.1-6
libpve-guest-common-perl: 4.1-2
libpve-http-server-perl: 4.1-1
libpve-storage-perl: 7.2-2
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 4.0.12-1
lxcfs: 4.0.12-pve1
novnc-pve: 1.3.0-3
proxmox-backup-client: 2.1.8-1
proxmox-backup-file-restore: 2.1.8-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.4-10
pve-cluster: 7.2-1
pve-container: 4.2-1
pve-docs: 7.2-2
pve-edk2-firmware: 3.20210831-2
pve-firewall: 4.2-5
pve-firmware: 3.4-2
pve-ha-manager: 3.3-4
pve-i18n: 2.7-1
pve-qemu-kvm: 6.2.0-5
pve-xtermjs: 4.16.0-1
qemu-server: 7.2-2
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.7.1~bpo11+1
vncterm: 1.7-1
zfsutils-linux: 2.1.4-pve1

Here is the configuration I use on my network interfaces of the PVE servers :

Code:
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual
        bond-master bond0

auto eno2
iface eno2 inet manual
        bond-master bond1

auto enp1s0f0
iface enp1s0f0 inet manual
        bond-master bond0

auto enp1s0f1
iface enp1s0f1 inet manual
        bond-master bond1

auto bond0
iface bond0 inet static
        address 10.20.1.1/24
        gateway 10.20.1.254
        bond-slaves eno1 enp1s0f0
        bond-miimon 100
        bond-mode 802.3ad
        bond-xmit-hash-policy layer2+3
#Internal Link [CLUSTER]

auto bond1
iface bond1 inet manual
        bond-slaves eno2 enp1s0f1
        bond-miimon 100
        bond-mode 802.3ad
        bond-xmit-hash-policy layer2+3
#External Link [WAN]

auto vmbr0
iface vmbr0 inet manual
        bridge-ports bond1
        bridge-stp off
        bridge-fd 0
#VM Network Interface

An idea ? I couldn't find an answer in the given link.

Thnanks
 
Hi,

No idea ?

On file /etc/pve/qemu-server/101.conf (this VM) I have the limitation :

net0: virtio=D2:F3:D5:6E:1A:75,bridge=vmbr0,firewall=1,rate=200
 
I tried reproducing it here, but I couldn't.

Can you describe in detail how you're testing the rate limit?

Can you provide the output of tc class show dev tap<VMID>i<NUM> after the migration?
The VMID should match the VM you migrated and the interface number should match the one with the rate limit.
 
Last edited: