Cpu is high during iperf3 test

the guest vm’s ether driver is virtio_net , I test iperf3 between mac mini and the vm guest , from the host server ,I found the qemu process almost took 100% cpu . is it normal ?
thanks !

Need more details.

  • incus config show of vm
  • Guest OS
  • Nic speed / iperf result

Think thats all.

guest os : vyos

iperf result , if two nodes on the same incus network , speed looks good ,can up to 5Gb . only 1 cpu for this vm . during the test ,I found thread cpu/kvm took much cpu .

incus config show vyos-01
architecture: x86_64
config:
limits.cpu: 0-0
limits.memory: 4GB
security.secureboot: “false”
volatile.cloud-init.instance-id: 489aab93-2710-484d-be1a-463d579e39d8
volatile.eth0.host_name: mac7dc05c17
volatile.eth0.hwaddr: 10:66:6a:5f:91:ad
volatile.eth0.last_state.created: “false”
volatile.eth1.host_name: tap039543e6
volatile.eth1.hwaddr: 10:66:6a:0f:2d:87
volatile.last_state.power: RUNNING
volatile.last_state.ready: “false”
volatile.uuid: e2150c0a-5169-4c91-a45f-b1c46158a2c0
volatile.uuid.generation: e2150c0a-5169-4c91-a45f-b1c46158a2c0
volatile.vm.needs_reset: “true”
volatile.vm.rtc_adjustment: “9”
volatile.vm.rtc_offset: “33”
volatile.vsock_id: “58476365”
devices:
eth0:
network: macnet
type: nic
eth1:
nictype: bridged
parent: br0
type: nic
root:
boot.priority: “10”
path: /
pool: lvmpool
type: disk
ephemeral: false
profiles:

  • default
    stateful: false
    description: “”

I see this kind of issues only when using *BSD based distros, my 10G network doesn’t care else.

You could research hardware acceleration and if it is on.

incus is using qemu with kvm acceleration under the hood, same as others like Proxmox, oVirt and so on.

Else wait for answer from someone deeper into that.

Please also give the Nic Type and Speed.