Skip to content

[Cisco] Rate limit QSFP port state machine update log - #1512

Open
asrouji wants to merge 1 commit into
facebook:mainfrom
asrouji:asrouji/rate-limit-qsfp-port-state-machine-log
Open

[Cisco] Rate limit QSFP port state machine update log#1512
asrouji wants to merge 1 commit into
facebook:mainfrom
asrouji:asrouji/rate-limit-qsfp-port-state-machine-log

Conversation

@asrouji

@asrouji asrouji commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Pre-submission checklist

  • I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running pip install -r requirements-dev.txt && pre-commit install
  • pre-commit run

Summary

PortManager::handlePendingUpdates() logs that it is trying to update every port state machine on each periodic update pass, even when there is no noteworthy state change. On a 64-port system this single message accounted for more than 10,000 lines in a 100,000-line qsfp_service log sample.

Log the periodic message at DBG2 at most once every 30 seconds. The existing [SM] prefix is preserved.

Test Plan

  • Ran the upstream pre-commit hooks against fboss/qsfp_service/PortManager.cpp; clang-format and all applicable checks passed.
  • Rebuilt qsfp_service with this change and hot-swapped the binary on a live Cisco C8501 (MORGAN800CC). The service remained active and the standard FBOSS service and routing health checks remained clean.
  • Compared 100,000-line qsfp_service log samples before and after the change. Occurrences of this message fell from 10,797 to 16.

@meta-cla meta-cla Bot added the CLA Signed label Aug 12, 2026
@github-actions github-actions Bot added the cisco label Aug 12, 2026
@asrouji
asrouji marked this pull request as ready for review August 12, 2026 23:30
@asrouji
asrouji requested a review from a team as a code owner August 12, 2026 23:30
@asrouji
asrouji force-pushed the asrouji/rate-limit-qsfp-port-state-machine-log branch from 7cf620e to 5530691 Compare August 12, 2026 23:50
Demote and rate limit the periodic all-port state machine update message while preserving its state-machine log prefix.
@asrouji
asrouji force-pushed the asrouji/rate-limit-qsfp-port-state-machine-log branch from 5530691 to 90a3fe4 Compare August 13, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant