Allocating host buffers
To allocate host buffers on specific NUMA nodes, create an ntservice.ini file and restart ntservice.
Example 1
This example configures two connected NT200A02 SmartNICs to act separately.
For each NT200A02 SmartNIC in this example (0 and 1), the bonding type, PCI bus ID and the NUMA node are specified. Finally, four RX host buffers are defined for both NT200A02 SmartNICs, each 16 MB on their individual NUMA nodes.
[Adapter0] BondingType = Separate BusId = 0000:06:00.0 NumaNode = 0 [Adapter1] BondingType = Separate BusId = 0000:84:00.0 NumaNode = 1 [NT200A02_2X40] # Allocate four 16 MB host buffers on the local NUMA node. HostBuffersRx = [4,16,$Local$]
Finding the bus ID
To find the bus ID, start ntservice with the default configuration and use the adapterinfo tool to locate the bus ID for a specific SmartNIC.
Example 2
This example configures an NT40E3-4-PTP SmartNIC.
For the NT40E3-4-PTP SmartNIC in this example, the native UNIX time stamp is selected first. The SmartNIC is SmartNIC 0 and located on the PCI bus at 00:0b:00:00. Eight RX host buffers are defined, each 16 MB from NUMA node 0. Finally, the standard packet descriptor with extended descriptor 9 is selected.
[System] TimestampFormat=NATIVE_UNIX [Adapter0] AdapterType=NT40E3_4_PTP BusId=00:0b:00:00 HostBuffersRx=[8,16,0] PacketDescriptor=Ext9