Performance and troubleshooting
162
Alvium G1 User Guide V1.1.1
Avoiding dropped packets
•
Check the Ethernet cable. A damaged cable often causes the link to negotiate
a lower speed as fallback.
•
Windows
: Disable auto updates and telemetry.
•
Use the latest NIC driver from the NIC manufacturer.
•
Enable Jumbo Frames/Packets on the NIC. Larger packets result in less
overhead on the host CPU. See
•
Disable the firewall if no filter driver is used.
•
If possible, use a dedicated network infrastructure:
-
Ideally, each camera has a point-to-point connection to a dedicated
network adapter in the host.
-
Separate camera networks from other networks.
-
Avoid aggregating multiple cameras over a single network link if possible.
The more cameras use a common link, the lower becomes the usable total
system throughput, caused by packet losses or less effective processing on
the host side.
•
Linux only
: Run as root, allowing the OS to boost the priority of the Allied
Vision driver thread, and the driver to bind directly to the NIC adapter. Users
who feel running as root compromises their system security may find the
following implementation satisfactory:
-
Set the executable owner as root.
-
Set the “
setuid
” permission bit on the executable.
-
In code, when application starts use capset() to release all but these
privileges: CAP_SYS_NICE, CAP_NET_ADMIN, CAP_NET_BROADCAST,
CAP_NET_RAW. The application will start with all root privileges, but it will
drop them immediately after startup.
Available packet size
Be aware that the effective maximum packet size is limited to the biggest size
supported by all network devices on the path.