Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions dockers/docker-orchagent/orchagent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,19 @@ if [[ x"${LOCALHOST_SWITCHTYPE}" == x"chassis-packet" ]]; then
# Set orchagent pop batch size to 128 for faster link notification handling
# during route-churn
ORCHAGENT_ARGS+="-b 128 "
elif [[ x"$LOCALHOST_SWITCHTYPE" == x"dpu" ]]; then
# To handle high volume of objects in DPU
ORCHAGENT_ARGS+="-b 65536 "
else
# Set orchagent pop batch size to 1024
ORCHAGENT_ARGS+="-b 1024 "
fi

# Set zmq mode by default for smartswitch DPU
# Set zmq mode by default for smartswitch DPU and increase the max bulk limit
# Otherwise, set synchronous mode if it is enabled in CONFIG_DB
SYNC_MODE=$(echo $SWSS_VARS | jq -r '.synchronous_mode')
SWITCH_TYPE=$(echo $SWSS_VARS | jq -r '.switch_type')
if [ "$SWITCH_TYPE" == "dpu" ]; then
ORCHAGENT_ARGS+="-z zmq_sync "
if [ "$LOCALHOST_SWITCHTYPE" == "dpu" ]; then
ORCHAGENT_ARGS+="-z zmq_sync -k 65536 "
elif [ "$SYNC_MODE" == "enable" ]; then
ORCHAGENT_ARGS+="-s "
fi
Expand Down
14 changes: 10 additions & 4 deletions platform/vs/docker-sonic-vs/orchagent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,21 @@ fi
mkdir -p /var/log/swss
ORCHAGENT_ARGS="-d /var/log/swss "

# Set orchagent pop batch size to 8192
ORCHAGENT_ARGS+="-b 8192 "
SWITCH_TYPE=$(echo $SWSS_VARS | jq -r '.switch_type')

if [ "$SWITCH_TYPE" == "dpu" ]; then
ORCHAGENT_ARGS+="-b 65536 "
else
# Set orchagent pop batch size to 8192
ORCHAGENT_ARGS+="-b 8192 "
fi

# Set zmq mode by default for DPU vs
# Otherwise, set synchronous mode if it is enabled in CONFIG_DB
SYNC_MODE=$(echo $SWSS_VARS | jq -r '.synchronous_mode')
SWITCH_TYPE=$(echo $SWSS_VARS | jq -r '.switch_type')

if [ "$SWITCH_TYPE" == "dpu" ]; then
ORCHAGENT_ARGS+="-z zmq_sync "
ORCHAGENT_ARGS+="-z zmq_sync -k 65536 "
elif [ "$SYNC_MODE" == "enable" ]; then
ORCHAGENT_ARGS+="-s "
fi
Expand Down