• UltimateBachson@alien.topOPB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    Win11, Z690, 13700k, 32GB DDR4, 2.5Gbit Realtek Ethernet NIC, Samsung 980 PRO NVMe.

    I just installed Debian 12 on both VMWare Workstation (10.1.2.60) and VirtualBox (10.1.2.108), both using 4 “CPUs”, 4GB RAM, both using a bridged network to my one and only Realtek NIC. Everything else is default (even though I also tried with “vmxnet3” on VMWare, no difference). Running iperf3 on my Windows Host (10.1.2.15) and testing from both VMs produces these results.

    I host my media server as a VM on VMWare and I don’t understand why Virtualbox is this much faster.

    Hyper-V is disabled, Open-VM-Tools installed on Workstation VM.

    If you could help me trying to figure out what’s appening or pointing me in the right direction to debug this I’d be grateful.

    • cbugk@alien.topB
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      I’m more familiar with this on linux, but the answer is bridged networking. It must be, as you have surpassed 2.5Gbit theoretical limit of the NIC, and that is before packet overheads. Basically your networking never leaves the “virtual switch” onto real NIC, so it can be a lot faster.

      At one instance, I had seen around 35-40Gbps over iperf3 on a beefy PC with around 100GB free RAM and a proper Gen4 NVMe SSD. I think it was due to free RAM being able to accomodate any packet sent/recieved on cache, could not be replicated on prod probably.

      So, test again with another LAN-connected machine (2.5Gbps if posaible) and you should be bound by the laws of physics once again ; )

      • UltimateBachson@alien.topOPB
        link
        fedilink
        English
        arrow-up
        1
        ·
        11 months ago

        Yes, testing iperf from those VMs to another LAN machine machine unsurprisingly never exceeds 1Gbps (my other LAN machine doesn’t support 2.5), but VMWare is still slower. Maybe it’s due to Workstation using the 13700k e-cores, as someone else commented.

        The thing is since my Win11 PC is hosting those 2 VMs I’d expect VM-HOST/HOST-VM network transfers to be faster, even using NAT instead of bridged, yes, it does improve the transfer speeds. but VMWare is still behind Vbox, even with vmxnet3 instead of e1000.

        Anyway, thanks for the reply, it might as well come down to being a “Windows thing”, I never had these inconsistencies on a proxmox host, for example.

        • cbugk@alien.topB
          link
          fedilink
          English
          arrow-up
          1
          ·
          11 months ago

          Ok a bit of trivia out of my chest first [source][1]:

          • Para-virtualization is guest being aware to call high level command to hypervisor, rather than calling hardware commands.
          • Hardware assisted virtualization: Silicon having instructions to fasten virtualization.

          I thought those two were inseperable for some time, turns out they were not.

          This seems irrelevant, but VMXNET3 could be paravirtualized but not hardware assisted by virtue (emulated E1000)

          While [PVRDMA][2] (allowing shared memory between VMs which have PVRDMA) does similar to what Ilinux bridges does by defauit (IPTABLES forwarding without emulation). Hardware assisted para-virtualization by virtue :D

          This has the potential to run above 1Gbit, could you try?

          1 2