File tree 4 files changed +27
-0
lines changed
platform/vs/docker-sonic-vs
tests/yang_model_tests/tests_config
4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -111,4 +111,10 @@ if [[ x"${MGMT_VRF_ENABLED}" == x"true" ]]; then
111
111
ORCHAGENT_ARGS+=" -v mgmt"
112
112
fi
113
113
114
+ # Enable ring buffer
115
+ ORCHDAEMON_RING_ENABLED=` sonic-db-cli CONFIG_DB hget " DEVICE_METADATA|localhost" " ring_thread_enabled" `
116
+ if [[ x" ${ORCHDAEMON_RING_ENABLED} " == x" true" ]]; then
117
+ ORCHAGENT_ARGS+=" -R"
118
+ fi
119
+
114
120
exec /usr/bin/orchagent ${ORCHAGENT_ARGS}
Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ if [ "$SYNC_MODE" == "enable" ]; then
46
46
ORCHAGENT_ARGS+=" -s "
47
47
fi
48
48
49
+ # Enable ring buffer
50
+ ORCHDAEMON_RING_ENABLED=` sonic-db-cli CONFIG_DB hget " DEVICE_METADATA|localhost" " ring_thread_enabled" `
51
+ if [[ x" ${ORCHDAEMON_RING_ENABLED} " == x" true" ]]; then
52
+ ORCHAGENT_ARGS+=" -R "
53
+ fi
54
+
49
55
# Set mac address
50
56
ORCHAGENT_ARGS+=" -m $MAC_ADDRESS "
51
57
Original file line number Diff line number Diff line change 545
545
}
546
546
}
547
547
}
548
+ },
549
+ "DEVICE_METADATA_RING_THREAD_ENABLED" : {
550
+ "sonic-device_metadata:sonic-device_metadata" : {
551
+ "sonic-device_metadata:DEVICE_METADATA" : {
552
+ "sonic-device_metadata:localhost" : {
553
+ "ring_thread_enabled" : true
554
+ }
555
+ }
556
+ }
548
557
}
549
558
}
Original file line number Diff line number Diff line change @@ -279,6 +279,12 @@ module sonic-device_metadata {
279
279
default disabled;
280
280
}
281
281
282
+ leaf ring_thread_enabled {
283
+ type boolean ;
284
+ description "Enable gRingMode of OrchDaemon, which would set up its ring thread to accelerate task execution." ;
285
+ default "false" ;
286
+ }
287
+
282
288
}
283
289
/* end of container localhost */
284
290
}
You can’t perform that action at this time.
0 commit comments