How to change virtio-pci tx/rx queue size

Discussion in 'Proxmox VE: Networking and Firewall' started by Faisal Reza, May 23, 2019.

  1. Faisal Reza

    Faisal Reza New Member

    Joined:
    May 23, 2019
    Messages:
    3
    Likes Received:
    0
    Hello everyone,

    i'm having issue with RX drop on the guest vm ifconfig interface
    after do some searching, it might caused by the virtual interface ring buffer because default value is 256,

    i want to try to change the value to 1024 as suggested at Intel Networking Documentation

    i also already tried to edit the /etc/pve/qemu-server/<vmid>.conf manually with this following configuration, also not working
    Code:
    agent: 1
    boot: cda
    bootdisk: sata0
    cores: 4
    ide0: none,media=cdrom
    memory: 2048
    name: balancer
    net0: virtio=00:16:3e:50:5c:69,bridge=vmbr0,tx_queue_size=1024,rx_queue_size=1024
    net1: virtio=D2:26:9E:99:0D:8E,bridge=vmbr0,tx_queue_size=1024,rx_queue_size=1024,tag=2247
    numa: 0
    onboot: 1
    sata0: datastore-4tb-sas:2247/vm-2247-disk-1.raw,cache=writeback,size=40G
    smbios1: uuid=dc60b7a5-5001-4a68-9949-595346c5ea6f
    sockets: 1
    is there any way to change this tx/rx queue size parameter?
    many thanks

    Regards
     
    #1 Faisal Reza, May 23, 2019
    Last edited: May 23, 2019
  2. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,447
    Likes Received:
    304
    For testing, you can start qemu manually with modified parameters. You can get the exact qemu command line with:

    # qm showcmd <vmid>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Faisal Reza

    Faisal Reza New Member

    Joined:
    May 23, 2019
    Messages:
    3
    Likes Received:
    0
    hi dietmar, thanks for responding
    here's the result
    Code:
    root@jkt-host04:~# qm showcmd 2247
    vm 2247 - unable to parse value of 'net0' - format error
    rx_queue_size: property is not defined in schema and the schema does not allow additional properties
    tx_queue_size: property is not defined in schema and the schema does not allow additional properties
    /usr/bin/kvm -id 2247 -chardev 'socket,id=qmp,path=/var/run/qemu-server/2247.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -pidfile /var/run/qemu-server/2247.pid -daemonize -smbios 'type=1,uuid=dc60b7a5-5001-4a68-9949-595346c5ea6f' -name balancer -smp '4,sockets=1,cores=4,maxcpus=4' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vga std -vnc unix:/var/run/qemu-server/2247.vnc,x509,password -cpu kvm64,+lahf_lm,+sep,+kvm_pv_unhalt,+kvm_pv_eoi,enforce -m 2048 -k en-us -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -chardev 'socket,path=/var/run/qemu-server/2247.qga,server,nowait,id=qga0' -device 'virtio-serial,id=qga0,bus=pci.0,addr=0x8' -device 'virtserialport,chardev=qga0,name=org.qemu.guest_agent.0' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:fd3d37ef938' -drive 'if=none,id=drive-ide0,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=200' -device 'ahci,id=ahci0,multifunction=on,bus=pci.0,addr=0x7' -drive 'file=/var/lib/vz2/images/2247/vm-2247-disk-1.raw,if=none,id=drive-sata0,cache=writeback,format=raw,aio=threads,detect-zeroes=on' -device 'ide-drive,bus=ahci0.0,drive=drive-sata0,id=sata0,bootindex=100' -netdev 'type=tap,id=net1,ifname=tap2247i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=D2:26:9E:99:0D:8E,netdev=net1,bus=pci.0,addr=0x13,id=net1'
    i'm also trying to start the vm manually using following command
    root@jkt-host04:~# qm stop 2247
    and then start with
    Code:
    root@jkt-host04:~#/usr/bin/kvm -id 2247 -chardev 'socket,id=qmp,path=/var/run/qemu-server/2247.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -pidfile /var/run/qemu-server/2247.pid -daemonize -smbios 'type=1,uuid=dc60b7a5-5001-4a68-9949-595346c5ea6f' -name balancer -smp '4,sockets=1,cores=4,maxcpus=4' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vga std -vnc unix:/var/run/qemu-server/2247.vnc,x509,password -cpu kvm64,+lahf_lm,+sep,+kvm_pv_unhalt,+kvm_pv_eoi,enforce -m 2048 -k en-us -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -chardev 'socket,path=/var/run/qemu-server/2247.qga,server,nowait,id=qga0' -device 'virtio-serial,id=qga0,bus=pci.0,addr=0x8' -device 'virtserialport,chardev=qga0,name=org.qemu.guest_agent.0' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:fd3d37ef938' -drive 'if=none,id=drive-ide0,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=200' -device 'ahci,id=ahci0,multifunction=on,bus=pci.0,addr=0x7' -drive 'file=/var/lib/vz2/images/2247/vm-2247-disk-1.raw,if=none,id=drive-sata0,cache=writeback,format=raw,aio=threads,detect-zeroes=on' -device 'ide-drive,bus=ahci0.0,drive=drive-sata0,id=sata0,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap2247i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=00:16:3e:50:5c:69,rx_queue_size=1024,tx_queue_size=1024,netdev=net0,bus=pci.0,addr=0x12,id=net0' -netdev 'type=tap,id=net1,ifname=tap2247i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=D2:26:9E:99:0D:8E,rx_queue_size=1024,tx_queue_size=1024,netdev=net1,bus=pci.0,addr=0x13,id=net1'
    kvm: -device virtio-net-pci,mac=00:16:3e:50:5c:69,rx_queue_size=1024,tx_queue_size=1024,netdev=net0,bus=pci.0,addr=0x12,id=net0: Property '.tx_queue_size' not found
    
    the result is
    Property '.tx_queue_size' not found

    any clue on this?
     
  4. Faisal Reza

    Faisal Reza New Member

    Joined:
    May 23, 2019
    Messages:
    3
    Likes Received:
    0
    is the kvm used by proxmox support to change tx_queue_size and rx_queue size parameters?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice