canonical / charm-sysconfig

A subordinate charm to apply system settings like grub configurations or systemd configurations.
Apache License 2.0
0 stars 5 forks source link

[feature request] Add Mellanox ConnectX Tx / Rx buffer ringsize support #30

Open dashmage opened 8 months ago

dashmage commented 8 months ago

This is a feature request for adding support to the sysconfig charm to do tuning of the Tx/Rx buffer size settings on Mellanox ConnectX devices.

Tx/Rx buffers are memory spaces allocated by a network adapter to handle traffic bursts. Buffering takes place when the traffic exceeds physical capacity of network adapter. Increasing the buffer size helps to avoid packet loss when adapter is overloaded.

The only way I know of to make this change is with the ethtool command:

ethtool -G rx tx

The sysconfig charm should have a mellanox-connectx-ringsize option that will run this command on the hosts which it is related to, and make sure that the change survives across reboots (systemd unit?).


Imported from Launchpad using lp2gh.

dashmage commented 8 months ago

(by rober546) +1 for this request, but you make this generic please for any given NIC. Same required for Intel NICs in our case.

dashmage commented 8 months ago

(by rober546) (and also multiple NICs)