Skip to content

[DT2] Update Arista 7060x6 port utils#19179

Merged
bingwang-ms merged 1 commit intosonic-net:masterfrom
auspham:austinpham/internal/33493893-update-disagt2-port-map
Jun 26, 2025
Merged

[DT2] Update Arista 7060x6 port utils#19179
bingwang-ms merged 1 commit intosonic-net:masterfrom
auspham:austinpham/internal/33493893-update-disagt2-port-map

Conversation

@auspham
Copy link
Copy Markdown
Contributor

@auspham auspham commented Jun 25, 2025

Description of PR

Summary: 33493893
Fixes # (issue) Update Arista 7060x6 port utils based on https://github.com/sonic-net/sonic-buildimage/pull/22955/files

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

Update arista 7060x6 ports utils

How did you do it?

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@auspham
Copy link
Copy Markdown
Contributor Author

auspham commented Jun 25, 2025

@sdszhang for viz for TH5 skus

@bingwang-ms
Copy link
Copy Markdown
Collaborator

Please hold on merging this PR until new image is built

@bingwang-ms bingwang-ms merged commit 43b72da into sonic-net:master Jun 26, 2025
20 of 21 checks passed
@mssonicbld
Copy link
Copy Markdown
Collaborator

@auspham PR conflicts with 202505 branch

bingwang-ms added a commit to Azure/sonic-mgmt.msft that referenced this pull request Jun 27, 2025
nissampa pushed a commit to nissampa/sonic-mgmt_dpu_test that referenced this pull request Aug 7, 2025
vidyac86 pushed a commit to vidyac86/sonic-mgmt that referenced this pull request Oct 23, 2025
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…sonic-net#19179)

### Why I did it
We need to restrict memory usage of container specifically, and the reliable option is to read cgroup subsystem files instead of using "docker stats" commands, since the commands will be no response if containers hits hard limit.

### How I did it
Instead of depending on the output of docker stats, the background script memory_checker will calculate the memory usage of a container based on values reading from the cgroup subsystem files /sys/fs/cgroup/memory/docker/<container_name>/memory.usage_in_bytes and /sys/fs/cgroup/memory/docker/<container_name>/memory.stats.

Refer to this Docker official document (https://docs.docker.com/engine/reference/commandline/stats/#extended-description) to make sure the memory usage of a specific container reading from command output of docker stats is equal to the value subtracting cache usage from the total memory usage.

#### How to verify it
Local verified, since it's just internal enhancement for getting memory usage of container, below are comparison between new memory_check and previous implementation based on "docker stats --no-stream --format {{.MemUsage}} telemetry"

<img width="799" alt="image" src="https://github.com/sonic-net/sonic-buildimage/assets/97083744/3807fc7f-cfc2-4e2f-a078-eaf08b68f803">


Added Unit test code, since there's no build time UT available in this repo currently so verified manually as below:
<img width="1121" alt="image" src="https://github.com/user-attachments/assets/2c7ce241-7967-41ee-a2e9-4bdb2e43f8c2">
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
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.

4 participants