diff --git a/dockers/docker-orchagent/orchagent.sh b/dockers/docker-orchagent/orchagent.sh index aee9ecb1a5..3768b3d7b3 100755 --- a/dockers/docker-orchagent/orchagent.sh +++ b/dockers/docker-orchagent/orchagent.sh @@ -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 diff --git a/platform/vs/docker-sonic-vs/orchagent.sh b/platform/vs/docker-sonic-vs/orchagent.sh index 44667c0d12..b3b272c504 100755 --- a/platform/vs/docker-sonic-vs/orchagent.sh +++ b/platform/vs/docker-sonic-vs/orchagent.sh @@ -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