Background: I am running Ubuntu 18.04 in a virtual machine, and I have a custom application which uses SocketCAN to transfer data as quickly as possible. I cannot achieve bus loads higher than ~20% or so with PCAN-USB, while PCAN-USB FD is easily able to reach ~85% bus load.
I then tried using cangen to generate maximum bus load:
Code: Select all
cangen can0 -g 0
I also have a Windows 10 virtual machine on the same physical machine. Using PCAN Explorer 6, I can generate 100% bus load with PCAN-USB. So PCAN-USB itself is clearly capable of maximum throughput on this machine, but something on the Linux side seems to be preventing higher bus loads.
I'm not sure where to look to diagnose this. Is there a known cause for this sort of issue?
My /etc/network/interfaces contains this interface config:
Code: Select all
allow-hotplug can0
iface can0 can static
restart-ms 100
bitrate 500000
up ip link set $IFACE txqueuelen 4000
Alex