sonic-net / sonic-swss

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

Support allocate buffer pool size based on percentage of available memory #3201

Closed stephenxs closed 3 weeks ago

stephenxs commented 2 months ago

What I did

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.

Why I did it

How I verified it

Mock test

Details if related

dprital commented 3 weeks ago

@bingwang-ms , Can you please cherry pick to 202405 ?

mssonicbld commented 3 weeks ago

Cherry-pick PR to 202405: https://github.com/sonic-net/sonic-swss/pull/3246