Skip to content

Comments

[action] [PR:4151] [countersyncd]: Add communication statistics recording and utilities#4222

Merged
mssonicbld merged 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/4151
Feb 16, 2026
Merged

[action] [PR:4151] [countersyncd]: Add communication statistics recording and utilities#4222
mssonicbld merged 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/4151

Conversation

@mssonicbld
Copy link
Collaborator

What I did
Add more debug and statistics logs for countersyncd

Why I did it
Used for analyzing online issues and performance.

How I verified it
Locally check

[2026-01-23 06:24:54.637] [crates/countersyncd/src/utilities/mod.rs:140] [INFO] Comm stats [data_netlink->ipfix_records]: count=1, avg_len=0.00, peak_len=0, min_len=0, last_len=0, rms_len=0.00, nonzero_count=0, capacity=1024, avg_util=0.00, peak_util=0.00
[2026-01-23 06:24:54.642] [crates/countersyncd/src/utilities/mod.rs:140] [INFO] Comm stats [ipfix->stats_reporter]: count=2339, avg_len=791.59, peak_len=1024, min_len=0, last_len=187, rms_len=853.35, nonzero_count=2338, capacity=1024, avg_util=0.77, peak_util=1.00

Details if related

<!--
Please make sure you have read and understood the contribution guildlines:
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

1. Make sure your commit includes a signature generted with `git commit -s`
2. Make sure your commit title follows the correct format: [component]: description
3. Make sure your commit message contains enough details about the change and related tests
4. Make sure your pull request adds related reviewers, asignees, labels

Please also provide the following information in this pull request:
-->

**What I did**
Add more debug and statistics logs for countersyncd

**Why I did it**
Used for analyzing online issues and performance.

**How I verified it**
Locally check
```
[2026-01-23 06:24:54.637] [crates/countersyncd/src/utilities/mod.rs:140] [INFO] Comm stats [data_netlink->ipfix_records]: count=1, avg_len=0.00, peak_len=0, min_len=0, last_len=0, rms_len=0.00, nonzero_count=0, capacity=1024, avg_util=0.00, peak_util=0.00
[2026-01-23 06:24:54.642] [crates/countersyncd/src/utilities/mod.rs:140] [INFO] Comm stats [ipfix->stats_reporter]: count=2339, avg_len=791.59, peak_len=1024, min_len=0, last_len=187, rms_len=853.35, nonzero_count=2338, capacity=1024, avg_util=0.77, peak_util=1.00
```

**Details if related**
@mssonicbld
Copy link
Collaborator Author

Original PR: #4151

@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit 13227d0 into sonic-net:202511 Feb 16, 2026
15 of 16 checks passed
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