Actions

How to Get Rid of Sub Optimal


This page shows how to remove the warning of "Sub optimal config sbc list" in the SBC status

"Sub optimal" Waning

Gateway -> Routes


SBC Status

Reason for the Waning

The reason for this is that some Nics (Azure, vmxnet3, e1000, ixgbe vf) report a RETA size of 0 while reporting multiple rx queues, meaning they can not support multiple CPUs. However TBRouter is not aware of this limit on those Nics then initiate the Cores on the Nics

Solutions

We have ticket 23762 to improve the tbrouter to support RSS when we have a RETA table of 0. You will experience this warning before the fix. You can: 1-Just simply ignore the warning. 2- Change the nic.json to remove the section with the extra cores (so those cores can be used for something else) by following the below steps.

Steps to Get Rid of The Warning

1. ssh to the SBC host and do shell command:

locate nic.json Output: /usr/lib/tb/toolpack/setup/12358/3.0/dynamic_nic.json /usr/lib/tb/toolpack/setup/12358/3.0/nic.json /usr/lib/tb/toolpack/setup/12358/3.0/validated_nic.json /usr/lib/tb/toolpack/setup/12358/3.1/current_nic.json /usr/lib/tb/toolpack/setup/12358/3.1/dynamic_nic.json /usr/lib/tb/toolpack/setup/12358/3.1/nic.json /usr/lib/tb/toolpack/setup/12358/3.1/validated_nic.json /usr/lib/tb/toolpack/tbrouter/current_nic.json

2. Do a copy of the existing nic.json (only need to operate the version your SBC is running)

e.g. cp /usr/lib/tb/toolpack/setup/12358/3.1/nic.json /usr/lib/tb/toolpack/setup/12358/3.1/nic_bak.json


3. Edit nic.json

e.g. vim /usr/lib/tb/toolpack/setup/12358/3.1/nic.json

4. Remove the section with the extra cores

e.g. below is the section for one Nic with 2 cores, simply remove the section of "core": 2,

       "00:50:56:95:ba:0e": {
           "cores": [
               {
                   "core": 1,
                   "rx_nb_queues": 2
               },
               {
                   "core": 2,
                   "rx_nb_queues": 2
               }
           ],

Make it simply like this:

       "00:50:56:95:ba:0e": {
           "cores": [
               {
                   "core": 1,
                   "rx_nb_queues": 2
               }
           ],