txqueuelen on interfaces

tessus

Member
Oct 5, 2020
34
4
13
Toronto, Canada
I know that I can set the txqueuelen for an interface via the ip command. But I do have a few questions with regards to bonding and/or the bridge adapter, and the interfaces that are created for every VM.

Here is my /etc/network/interfaces (basically a VLAN aware bridge on a bonded interface):

Code:
auto lo
iface lo inet loopback

iface enp4s0 inet manual

iface enp6s0 inet manual

auto bond0
iface bond0 inet manual
    bond-slaves enp4s0 enp6s0
    bond-miimon 100
    bond-mode 802.3ad
    bond-xmit-hash-policy layer2

auto vmbr0.64
iface vmbr0.64 inet static
    address  192.168.64.10/20
    gateway  192.168.64.1

auto vmbr0
iface vmbr0 inet manual
    bridge-ports bond0
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 2-4094

And this is the partial output of ip a:

Code:
2: enp4s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP group default qlen 1000
    link/ether a8:a1:59:13:f5:6f brd ff:ff:ff:ff:ff:ff
3: enp6s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP group default qlen 1000
    link/ether a8:a1:59:13:f5:6f brd ff:ff:ff:ff:ff:ff permaddr a8:a1:59:13:f5:6d
4: wlp5s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 0c:7a:15:0f:71:ca brd ff:ff:ff:ff:ff:ff
5: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000
    link/ether a8:a1:59:13:f5:6f brd ff:ff:ff:ff:ff:ff
6: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 2a:4f:35:47:42:c0 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::284f:35ff:fe47:42c0/64 scope link
       valid_lft forever preferred_lft forever
7: vmbr0.64@vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 2a:4f:35:47:42:c0 brd ff:ff:ff:ff:ff:ff
    inet 192.168.64.10/20 brd 192.168.79.255 scope global vmbr0.64
       valid_lft forever preferred_lft forever
    inet6 fe80::284f:35ff:fe47:42c0/64 scope link
       valid_lft forever preferred_lft forever
8: tap130i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master fwbr130i0 state UNKNOWN group default qlen 1000
    link/ether 82:8e:b3:95:13:70 brd ff:ff:ff:ff:ff:ff
9: fwbr130i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 4e:01:7a:d8:60:c2 brd ff:ff:ff:ff:ff:ff
10: fwpr130p0@fwln130i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000
    link/ether fe:bf:c7:b7:0d:97 brd ff:ff:ff:ff:ff:ff
11: fwln130i0@fwpr130p0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master fwbr130i0 state UP group default qlen 1000
    link/ether 3a:47:68:5f:02:01 brd ff:ff:ff:ff:ff:ff

I want to set the txqueuelen to 10,000, but the only interface that has an IP is vmbr0.64@vmbr0. Do I set it only for this adapter or on all the underlaying ones as well (vmbr0, bond0, enp6s0, enp4s0)?

It seems that 4 interfaces (8 - 11) are created per running VM (analogously to 8-11), but I am not sure if they are even used, because I think that all traffic is handled by the vmbr0.64@vmbr0 interface. However, if these interfaces are used, what are they used for and how can someone make Proxmox use another value than 1000 for the qlen by default when these are created?
 

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!