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
4 changes: 3 additions & 1 deletion files/scripts/swss.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ TSA_TSB_SERVICE="startup_tsa_tsb.service"

function debug()
{
/usr/bin/logger $1
# Use --id=$$ so all messages from this script share the parent shell's PID,
# preventing rsyslog imuxsock ratelimiter memory growth.
/usr/bin/logger --id=$$ -- "$1"
/bin/echo `date` "- $1" >> ${DEBUGLOG}
}

Expand Down
4 changes: 3 additions & 1 deletion files/scripts/syncd_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

function debug()
{
/usr/bin/logger $1
# Use --id=$$ so all messages from this script share the parent shell's PID,
# preventing rsyslog imuxsock ratelimiter memory growth.
/usr/bin/logger --id=$$ -- "$1"
/bin/echo `date` "- $1" >> ${DEBUGLOG}
}

Expand Down
3 changes: 2 additions & 1 deletion platform/mellanox/docker-syncd-mlnx/phcsync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ while :; do

if [[ "$clock_name" != "mlx5_ptp" ]]; then
# set CLOCK_REALTIME
"$PHC_CTL" "$dev" set 2>/dev/null
# Keep successful syncs silent to avoid rsyslogd ratelimit memory issue due to PID churn.
"$PHC_CTL" -q -Q "$dev" set >/dev/null
PHC_CTL_EXIT_CODE=$?
if [[ $PHC_CTL_EXIT_CODE -ne 0 ]]; then
echo "Error: Failed to sync clock for $dev (phc_ctl exit code: $PHC_CTL_EXIT_CODE)" >&2
Expand Down
Loading