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
6 changes: 6 additions & 0 deletions dockers/docker-orchagent/orchagent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,10 @@ if [[ x"${MGMT_VRF_ENABLED}" == x"true" ]]; then
ORCHAGENT_ARGS+=" -v mgmt"
fi

# Enable ring buffer
ORCHDAEMON_RING_ENABLED=`sonic-db-cli CONFIG_DB hget "DEVICE_METADATA|localhost" "ring_thread_enabled"`
if [[ x"${ORCHDAEMON_RING_ENABLED}" == x"true" ]]; then
ORCHAGENT_ARGS+=" -R"
fi

exec /usr/bin/orchagent ${ORCHAGENT_ARGS}
6 changes: 6 additions & 0 deletions platform/vs/docker-sonic-vs/orchagent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ if [ "$SYNC_MODE" == "enable" ]; then
ORCHAGENT_ARGS+="-s "
fi

# Enable ring buffer
ORCHDAEMON_RING_ENABLED=`sonic-db-cli CONFIG_DB hget "DEVICE_METADATA|localhost" "ring_thread_enabled"`
if [[ x"${ORCHDAEMON_RING_ENABLED}" == x"true" ]]; then
ORCHAGENT_ARGS+="-R "
fi

# Set mac address
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -545,5 +545,14 @@
}
}
}
},
"DEVICE_METADATA_RING_THREAD_ENABLED": {
"sonic-device_metadata:sonic-device_metadata": {
"sonic-device_metadata:DEVICE_METADATA": {
"sonic-device_metadata:localhost": {
"ring_thread_enabled": true
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,12 @@ module sonic-device_metadata {
default disabled;
}

leaf ring_thread_enabled {
type boolean;
description "Enable gRingMode of OrchDaemon, which would set up its ring thread to accelerate task execution.";
default "false";
}

}
/* end of container localhost */
}
Expand Down
Loading