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

[Mellanox] Update the buffer setting #4989

Merged
merged 2 commits into from
Jul 30, 2020

Conversation

stephenxs
Copy link
Collaborator

@stephenxs stephenxs commented Jul 17, 2020

Update the buffer size.
Signed-off-by: Stephen Sun [email protected]

- Why I did it
Recently buffer configuration has been updated:

  • The way the headroom size calculated has been improved.
  • Adjust dynamic_th of profiles used for BUFFER_PORT_INGRESS_PROFILE_LIST/BUFFER_PORT_EGRESS_PROFILE_LIST which represent per port ingress/egress reserved buffer respectively.
  • Buffer pool sizes for all ingress pools and egress lossy pool are adjusted accordingly since we calculate them by subtracting accumulative reserved buffers for ports, PGs, and queues from total available memory.

This update is applied to all Mellanox platforms and SKUs. It is enforced by the db_migrator which will check the buffer configuration after a switch undergoes a SONiC-to-SONiC upgrade from an old image to a new one. If the buffer configuration matches the default value it will be upgraded to the new one. The granularity of matching is:

  • For buffer pool, the configuration of all pools is compared as a whole, which means the update is performed only if the configuration of all pools matches the default value.
  • For buffer profile for per port reserved ingress/egress buffer, the configuration of all profiles are compared as a whole, which means the update is performed only if the configuration of all that kind of profiles matches the default value
  • For profile for lossless PGs, each profile of a speed, cable length pair is compared separately.

It depends on sonic-utilities PR #993 which includes the db_migrator part.

- How I did it

- How to verify it

- Description for the changelog

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

@stephenxs
Copy link
Collaborator Author

retest this please

@stephenxs stephenxs requested a review from keboliu July 19, 2020 02:25
keboliu
keboliu previously approved these changes Jul 20, 2020
@keboliu
Copy link
Collaborator

keboliu commented Jul 20, 2020

retest this please

Copy link
Collaborator

@liat-grozovik liat-grozovik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please extend your PR message with more information about motivation, which SKUs are affected and how to have this new values enforced. Add relation to the db migrator PR as well

@stephenxs
Copy link
Collaborator Author

Please extend your PR message with more information about motivation, which SKUs are affected and how to have this new values enforced. Add relation to the db migrator PR as well

Done.

@stephenxs
Copy link
Collaborator Author

retest this please

Stephen Sun added 2 commits July 29, 2020 15:32
- reduce redundant "*2" in formula
- use port MTU for local sending the PFC frame and peer lossless MTU for peer sending lossless traffic

Buffer pool size updated accordingly.

Signed-off-by: Stephen Sun <[email protected]>
@liat-grozovik
Copy link
Collaborator

This PR was tested by QoS community test and all is passing for the different ASICs/platforms.
As long as the db migration is not merged, a user will be able to do reload minigraph and get those values.
This PR is needed for 201911 as well (as marked on the labels).

@liat-grozovik liat-grozovik merged commit 0db7e88 into sonic-net:master Jul 30, 2020
@stephenxs stephenxs deleted the new-buffer-setting branch July 30, 2020 11:39
abdosi pushed a commit that referenced this pull request Aug 4, 2020
* Update the buffer size based on the latest excel

Signed-off-by: Stephen Sun <[email protected]>

* Align the buffer configuration with the latest formula:

- reduce redundant "*2" in formula
- use port MTU for local sending the PFC frame and peer lossless MTU for peer sending lossless traffic

Buffer pool size updated accordingly.

Signed-off-by: Stephen Sun <[email protected]>
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
* Update the buffer size based on the latest excel

Signed-off-by: Stephen Sun <[email protected]>

* Align the buffer configuration with the latest formula:

- reduce redundant "*2" in formula
- use port MTU for local sending the PFC frame and peer lossless MTU for peer sending lossless traffic

Buffer pool size updated accordingly.

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