Skip to main content

select_optimal_ibv_devices

Function select_optimal_ibv_devices 

Source
pub fn select_optimal_ibv_devices<I: IbvDeviceImpl>(
    location: MemoryLocation,
) -> Vec<IbvDeviceInfo>
Expand description

The NIC(s) of backend I with the best path to location, ranked by PciPath::is_better_than (most local, then highest port-capped bandwidth) and returning all that tie for best.

A NIC’s path bandwidth is the lesser of its PCIe-chain bottleneck and its RDMA port speed. Results are cached per (backend, location) since the PCI/NUMA topology is fixed for the process lifetime.