sonic-net / sonic-swss

SONiC Switch State Service (SwSS)
https://azure.github.io/SONiC
Other
175 stars 525 forks source link

[action] [PR:3201] Support allocate buffer pool based on ratio (#3201) #3246

Closed mssonicbld closed 3 months ago

mssonicbld commented 3 months ago

Support allocate buffer pool size based on percentage of available memory by percentage field in BUFFER_POOL table. It is used in the dynamic buffer model only and represents the percentage of a buffer pool's size compared to the available memory size. On Nvidia devices, if the percentage is defined, the buffer pool size is available memory * percentage.

mssonicbld commented 3 months ago

Original PR: https://github.com/sonic-net/sonic-swss/pull/3201