Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dynamic buffer calc][Mellanox] Fix bug: buffer over subscription in buffer pool size calculation #1706

Merged
merged 1 commit into from
Apr 15, 2021

Conversation

stephenxs
Copy link
Collaborator

@stephenxs stephenxs commented Apr 13, 2021

What I did
Fix buffer over subscription in the buffer pool calculation.

Signed-off-by: Stephen Sun stephens@nvidia.com

Why I did it

How I verified it
Run regression and manual test

Details if related
To calculate the buffer pool size, we need to accumulate all reserved memory and than subtract the sum from total available memory. In the current implementation, one part hasn’t been added to reserved memory, which causes the buffer pool size larger than it should be.
To fix it, we need to add it to reserved memory.

@stephenxs stephenxs closed this Apr 13, 2021
@stephenxs stephenxs reopened this Apr 13, 2021
@stephenxs stephenxs marked this pull request as draft April 13, 2021 07:51
Signed-off-by: Stephen Sun <stephens@nvidia.com>
@stephenxs stephenxs changed the title [Dynamic buffer calc] Bug fixes in buffer pool calculation [Dynamic buffer calc][Mellanox] Fix a bug in buffer pool calculation Apr 13, 2021
@stephenxs stephenxs changed the title [Dynamic buffer calc][Mellanox] Fix a bug in buffer pool calculation [Dynamic buffer calc][Mellanox] Fix bug: buffer over subscription in buffer pool size calculation Apr 13, 2021
@stephenxs stephenxs marked this pull request as ready for review April 13, 2021 22:29
@liat-grozovik liat-grozovik merged commit d0dd6ee into sonic-net:master Apr 15, 2021
@stephenxs stephenxs deleted the fix-mgmt-pool branch April 15, 2021 22:47
daall pushed a commit that referenced this pull request Apr 21, 2021
…buffer pool size calculation (#1706)

To calculate the buffer pool size, we need to accumulate all reserved memory and than subtract the sum from total available memory. In the current implementation, one part hasn’t been added to reserved memory, which causes the buffer pool size larger than it should be.
To fix it, we need to add it to reserved memory.

- What I did
Fix buffer over subscription in the buffer pool calculation.

- How I verified it
Run regression and manual test

Signed-off-by: Stephen Sun <stephens@nvidia.com>
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-swss that referenced this pull request Oct 5, 2021
…buffer pool size calculation (sonic-net#1706)

To calculate the buffer pool size, we need to accumulate all reserved memory and than subtract the sum from total available memory. In the current implementation, one part hasn’t been added to reserved memory, which causes the buffer pool size larger than it should be.
To fix it, we need to add it to reserved memory.

- What I did
Fix buffer over subscription in the buffer pool calculation.

- How I verified it
Run regression and manual test

Signed-off-by: Stephen Sun <stephens@nvidia.com>
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
…et#1706)

- What I did
Remove redundant mellanox dumps now that Mellanox SAI is taking care of that.

- How I did it
Deleted the part related to mstdumps from the generate_script

- How to verify it
Run 'show techsupport' see we no have mstdump folder but the actual dump available under the saisdk dump
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