Permanently Deleted

You are viewing a single thread.
View all comments View context
2 points

Never tried passing the GPU through. You use virtualbox or something else?

permalink
report
parent
reply
5 points

On Linux KVM is what people use for this. Not an option in VirtualBox.

permalink
report
parent
reply
4 points

Using VirtualBox is also how you get the impression virtual machines are slow and heavy. It served us well but it’s essentially obsolete at this point.

The virtio devices and drivers are much better overall and optimized for performance. VirtualBox is optimized to be user friendly and run most operating systems easily. It’s compatible but to do so, it relies a lot on emulating existing hardware. Virtio devices often rely on either shared memory for zero copy, or at least DMA and exposes higher level APIs. No point encoding and decoding SATA commands when you can just move raw data in and out of the VM.

We also have hardware with native VM support, so multiple VMs can talk directly to the network without going through the host at all. VirtualBox can’t make use of those either, as it requires IOMMU and the same stuff that powers VFIO.

KVM + QEMU is where it’s at. There’s also cloud-hypervisor which is supposed to be even better for cloud use cases.

permalink
report
parent
reply

General Programming Discussion

!programming@lemmy.ml

Create post

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

Community stats

  • 3

    Monthly active users

  • 242

    Posts

  • 140

    Comments