USB passthrough to VM dropping bytes

j1a2o

Member
Feb 14, 2021
34
4
13
38
I'm using rtl-sdr with a RTL USB dongle and testing with rtl_test program. On the host, it looks pretty stable with pretty much no bytes dropped. When the USB device is passed through to an Ubuntu VM, running the same rtl_test program results in lots of dropped bytes. Is this a known issue with USB passthrough? Is there a way to make it more stable / have better perofrmance?

Code:
Found 1 device(s):
  0:  Generic, RTL2832U, SN: 77771111153705700

Using device 0: Generic RTL2832U
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
[R82XX] PLL not locked!
Sampling at 2048000 S/s.

Info: This tool will continuously read from the device, and report if
samples get lost. If you observe no further output, everything is fine.

Reading samples in async mode...
Allocating 15 zero-copy buffers
lost at least 48 bytes
lost at least 172 bytes
lost at least 36 bytes
lost at least 52 bytes
lost at least 56 bytes
 
Last edited:
Adding usb3=1 helped for my USB keyboard: without it, it would often lose a key press or release but with it, it happens only rarely.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!