Skip to content

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

Merged
liat-grozovik merged 1 commit intosonic-net:masterfrom
stephenxs:fix-mgmt-pool
Apr 15, 2021
Merged

[Dynamic buffer calc][Mellanox] Fix bug: buffer over subscription in buffer pool size calculation#1706
liat-grozovik merged 1 commit intosonic-net:masterfrom
stephenxs:fix-mgmt-pool

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 [email protected]

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
@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 <[email protected]>
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 <[email protected]>
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
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
…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 <[email protected]>
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