Skip to content

[SmartSwitch] Add RSHIM version info to get_component_version.py#6

Closed
croos12 wants to merge 7 commits intomasterfrom
rshim-version
Closed

[SmartSwitch] Add RSHIM version info to get_component_version.py#6
croos12 wants to merge 7 commits intomasterfrom
rshim-version

Conversation

@croos12
Copy link
Owner

@croos12 croos12 commented Dec 30, 2025

Why I did it

The rshim interface version was not previously included in the get_component_versions output. Including it with the other Mellanox components is helpful in SmartSwitch for debugging version mismatches. DPUs will not be able to be managed from the NPU if the rshim version is not compatible with the BFSOC package on the DPU

How I did it

Added similar logic to exiting components to populate the version in get_component_versions.py output

How to verify it

root@sonic:/home/admin# get_component_versions.py
COMPONENT      COMPILATION           ACTUAL
-------------  --------------------  -----------------------
SDK            4.8.2112              4.8.2112
FW             2016.2112             2016.2112
SAI            SAIBuild2505.34.0.15  SAIBuild2505.34.0.15
HW_MANAGEMENT  7.0050.2002           7.0050.2002
MFT            4.34.0-145            4.34.0-145
KERNEL         6.12.41+deb13-sonic   6.12.41+deb13-sonic
RSHIM          2.5.7                 2.5.7
ONIE           -                     2025.05-5.3.0017-9600
SSD            -                     SBR15004
BIOS           -                     0ACLH004_02.02.010_9600
CPLD1          -                     CPLD000120_REV0900
CPLD2          -                     CPLD000254_REV0600
CPLD3          -                     `CPLD000191_REV0102

Which release branch to backport (provide reason below if selected)

Tested branch (Please provide the tested image version)

  • 202511

Description for the changelog

Add RSHIM version info to get_component_version.py

A picture of a cute animal (not mandatory but encouraged)

@croos12 croos12 changed the title Add RSHIM version info to get_component_version.py [SmartSwitch] Add RSHIM version info to get_component_version.py Dec 30, 2025
@croos12 croos12 marked this pull request as ready for review December 30, 2025 23:10
@croos12 croos12 closed this Jan 2, 2026
croos12 pushed a commit that referenced this pull request Mar 19, 2026
…net#25643)

* [build] Add build timing report and dependency analysis tools

Add three scripts for build performance instrumentation:

- scripts/build-timing-report.sh: Parse per-package timing from build
  logs (HEADER/FOOTER timestamps), generate sorted duration table,
  phase breakdown, parallelism timeline, and CSV export.

- scripts/build-dep-graph.py: Parse rules/*.mk dependency graph,
  compute critical path, fan-out/fan-in bottleneck analysis, and
  generate DOT/JSON output for visualization.

- scripts/build-resource-monitor.sh: Sample CPU, memory, disk I/O,
  and Docker container count during builds for resource utilization
  analysis.

Add "make build-report" target to slave.mk that runs the timing
report and dependency analysis after a build completes.

Example output from a VS build on 24-core/30GB machine:
- 210 packages built in 53m wall time (173m CPU)
- Max concurrency: 5 (with SONIC_CONFIG_BUILD_JOBS=4)
- Critical path: 14 packages deep (libnl -> libswsscommon -> utilities)
- Top bottleneck: LIBSWSSCOMMON with 48 downstream dependents

Signed-off-by: Rustiqly <[email protected]>

* Address Copilot review: fix 17 bugs in build analysis scripts

- Use free -m with division instead of free -g to avoid rounding (#1)
- Add = and ?= to Makefile dependency regex patterns (#2, #7)
- CPU calculation now uses /proc/stat delta (two reads) (#3, sonic-net#14)
- Fix misleading 'critical path estimate' comment (#4)
- Fix parallelism timeline comment (60s not 10s) (#5)
- Include after-relationship packages in fan stats (#6)
- Guard disk I/O division by zero when INTERVAL<=1 (#8)
- Remove unused elapsed_line variable (#9)
- Remove redundant LIBSWSSCOMMON_DBG check (#10)
- Remove active_make_jobs from CSV header comment (#11)
- Wire up _RDEPENDS parsing to build reverse deps (#12)
- Remove unnecessary 'if v' filter on rdeps JSON (#13)
- Remove unused REPORT_FORMAT parameter (sonic-net#15)
- Add cycle detection to critical path algorithm (sonic-net#16)
- Add execute permission check for companion scripts (sonic-net#17)

Signed-off-by: Rustiqly <[email protected]>

---------

Signed-off-by: Rustiqly <[email protected]>
Co-authored-by: Rustiqly <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants