Mellanox / docker-sriov-plugin

Docker networking plugin for SRIOV and passthrough interfaces
Apache License 2.0
79 stars 17 forks source link

Any way I can limit the bandwidth of VF in a container? #19

Open IgorZan opened 2 years ago

IgorZan commented 2 years ago

Hi, I wanna limit the network bandwidth usage of any VF container and VF is in SRIOV mod。Is there way to do this? Thanks for answer.

susol-hjkim commented 1 year ago

Hi https://docs.nvidia.com/networking/pages/viewpage.action?pageId=89154407

I think support only VF's bandwidth limits with link type : Ethernet.

/sys/class/net/enp8s0f0/device/sriov/[VF]

+-- [VF] | +-- config | +-- link_state | +-- mac | +-- mac_list | +-- max_tx_rate | +-- min_tx_rate | +-- spoofcheck | +-- stats | +-- trunk | +-- trust | +-- vlan

If link type is Infiniband I can't find configration files.

/sys/class/infiniband/mlx5_/device/sriov +-- 0 | +-- node | +-- policy | +-- port +-- 1 | +-- node | +-- policy | +-- port +-- 2 +-- node +-- policy +-- port

Thanks.