You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 202405 and above, two extra steps are added before the start of every container which checks NUM_DPU and IS_DPU_DEVICE by parsing the platform.json file using the jq tool. This is only relevant for Smartswitch. However, this is adding some delay during the reconciliation phase of WR/FR resulting
# Parse the platform.json file to get the platform specific information
PLATFORM_JSON=/usr/share/sonic/device/$PLATFORM/platform.json
if [ -f "$PLATFORM_JSON" ]; then
NUM_DPU=$(jq -r '.DPUS | length' $PLATFORM_JSON 2>/dev/null)
jq -e '.DPU' $PLATFORM_JSON >/dev/null
if [[ $? -eq 0 ]]; then
IS_DPU_DEVICE="true"
else
IS_DPU_DEVICE="false"
fi
fi
When there is load on CPU, both the jq calls are adding > 1 sec to the start of swss and almost 0.5 sec to the start of syncd. There are also present in teamd and bgp container start flow which may cause extra contention on the CPU.
swss start
syncd start
These 1.5 - 2 sec can be avoided as this can be optimized. Ideally, this should be read once maybe in the rc.local script and the values must be saved in some file like sonic-environment etc and should be read during the start of every container
Note: All the values were taken from MSN2700 platform, Intel Celeron 2 core CPU
The text was updated successfully, but these errors were encountered:
Description
In 202405 and above, two extra steps are added before the start of every container which checks NUM_DPU and IS_DPU_DEVICE by parsing the platform.json file using the jq tool. This is only relevant for Smartswitch. However, this is adding some delay during the reconciliation phase of WR/FR resulting
When there is load on CPU, both the jq calls are adding > 1 sec to the start of swss and almost 0.5 sec to the start of syncd. There are also present in teamd and bgp container start flow which may cause extra contention on the CPU.
swss start
syncd start
These 1.5 - 2 sec can be avoided as this can be optimized. Ideally, this should be read once maybe in the rc.local script and the values must be saved in some file like sonic-environment etc and should be read during the start of every container
Note: All the values were taken from MSN2700 platform, Intel Celeron 2 core CPU
The text was updated successfully, but these errors were encountered: