Community discussions

MikroTik App
 
dpetrov
just joined
Topic Author
Posts: 1
Joined: Sun Sep 25, 2022 11:03 am

RouterOS on x86 running via kvm - bandwidth issues (20-25Mbps)

Sun Sep 25, 2022 11:21 am

G'day,

I tried to search for that in the forum but I couldn't find anything related.

I have a setup where I am using kvm to run RouterOS for testing purposes on SuperMicro E-300-D server. The server is equipped with 6x1G and 2x10G NICs.

For the RouterOS I have provisioned two dedicated 1G links via OVS. I have requested a DEMO license which I installed on the device. The problem is however, that I cannot do more than 10Mbps in/out for a device that I have routed through the Mikrotik. The device is configured with masquerading (more details below). I couldn't read anything about demo license restrictions of bandwidth (this is not CHR image where there seem to be such limitations). Speedtest from the physical host where I run the KVM on does 800+ Mbps. No errors on physical nics, etc.

Could this be a limitation from the license or should I be looking for a problem elsewhere? I am providing some additional details below in case I am doing something wrong.

This is how I run the KVM:
/usr/bin/kvm -id 100 -name vm100 -no-shutdown -chardev socket,id=qmp,path=/var/run/qemu-server/100.qmp,server=on,wait=off -mon chardev=qmp,mode=control -chardev socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect=5 -mon chardev=qmp-event,mode=control -pidfile /var/run/qemu-server/100.pid -daemonize -smbios type=1,uuid=26602670-f482-44dc-9a09-9f1d98289aac -smp 4,sockets=2,cores=2,maxcpus=4 -nodefaults -boot menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg -vnc unix:/var/run/qemu-server/100.vnc,password=on -cpu kvm64,enforce,+kvm_pv_eoi,+kvm_pv_unhalt,+lahf_lm,+sep -m 8000 -device pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e -device pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f -device vmgenid,guid=0265d578-b54e-406b-859c-6b24bc0c0714 -device piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2 -device usb-tablet,id=tablet,bus=uhci.0,port=1 -device VGA,id=vga,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3,free-page-reporting=on -iscsi initiator-name=iqn.1993-08.org.debian:01:a9cae523ef33 -drive file=/dev/pve/vm-100-disk-0,if=none,id=drive-ide0,format=raw,cache=none,aio=io_uring,detect-zeroes=on -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100 -drive file=/var/lib/vz/template/iso/mikrotik-7.5.iso,if=none,id=drive-ide2,media=cdrom,aio=io_uring -device ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=101 -netdev type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown -device e1000,mac=EA:96:E5:5D:C4:FF,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=102 -netdev type=tap,id=net1,ifname=tap100i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown -device e1000,mac=1E:7F:6D:E3:68:1F,netdev=net1,bus=pci.0,addr=0x13,id=net1 -machine type=pc+pve0

# ovs-vsctl show
e721894a-f5e0-4c38-b9ca-d159c30f84a0
    Bridge vmbr2
        Port fwln100o1
            tag: 10
            Interface fwln100o1
                type: internal
        Port eno6
            Interface eno6
        Port vmbr2
            Interface vmbr2
                type: internal
        Port vlan10
            tag: 10
            Interface vlan10
                type: internal
    Bridge vmbr1
        Port eno3
            Interface eno3
        Port vmbr1
            Interface vmbr1
                type: internal
        Port vlan3
            tag: 3
            Interface vlan3
                type: internal
        Port fwln100o0
            tag: 3
            Interface fwln100o0
                type: internal
    ovs_version: "2.15.0"
    
 # ethtool eno3
Settings for eno3:
	Supported ports: [ TP ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Full
	Supported pause frame use: Symmetric
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Full
	Advertised pause frame use: Symmetric
	Advertised auto-negotiation: Yes
	Advertised FEC modes: Not reported
	Speed: 1000Mb/s
	Duplex: Full
	Auto-negotiation: on
	Port: Twisted Pair
	PHYAD: 1
	Transceiver: internal
	MDI-X: off (auto)
	Supports Wake-on: pumbg
	Wake-on: g
        Current message level: 0x00000007 (7)
                               drv probe link
	Link detected: yes

# ethtool eno6
Settings for eno6:
	Supported ports: [ TP ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Full
	Supported pause frame use: Symmetric
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Full
	Advertised pause frame use: Symmetric
	Advertised auto-negotiation: Yes
	Advertised FEC modes: Not reported
	Speed: 1000Mb/s
	Duplex: Full
	Auto-negotiation: on
	Port: Twisted Pair
	PHYAD: 1
	Transceiver: internal
	MDI-X: off (auto)
	Supports Wake-on: d
	Wake-on: d
        Current message level: 0x00000007 (7)
                               drv probe link
	Link detected: yes
	
	
This is my current license:
[admin@router] /system/license> print
  software-id: XXXX-XXXX
       nlevel: 1
     features:
And here is what resources seems to be during the test
[admin@router] /system/license> /system/resource/print
                   uptime: 1h26m18s
                  version: 7.5 (stable)
               build-time: Aug/30/2022 09:25:53
         factory-software: 7.1
              free-memory: 7.5GiB
             total-memory: 7.6GiB
                      cpu: Common
                cpu-count: 4
            cpu-frequency: 2199MHz
                 cpu-load: 4%
           free-hdd-space: 1916.4MiB
          total-hdd-space: 1934.1MiB
  write-sect-since-reboot: 992
         write-sect-total: 992
        architecture-name: x86_64
               board-name: x86
                 platform: MikroTik
  [admin@router] /interface/ethernet> /interface/monitor-traffic public,inside
                         name:     public    inside
        rx-packets-per-second:        815     1 608
           rx-bits-per-second:  436.2kbps  19.0Mbps
     fp-rx-packets-per-second:          0         0
        fp-rx-bits-per-second:       0bps      0bps
          rx-drops-per-second:          0         0
         rx-errors-per-second:          0         0
        tx-packets-per-second:      1 601       816
           tx-bits-per-second:   24.3Mbps 456.7kbps
     fp-tx-packets-per-second:          0         0
        fp-tx-bits-per-second:       0bps      0bps
          tx-drops-per-second:          0         0
    tx-queue-drops-per-second:          0         0
         tx-errors-per-second:          0         0
-- [Q quit|D dump|C-z pause]               
                 

Who is online

Users browsing this forum: anav, Bing [Bot], menyarito and 74 guests