sonic-net / DASH

Disaggregated APIs for SONiC Hosts
Apache License 2.0
77 stars 88 forks source link

what is the max scale supported by BMv2? #582

Open mgheorghe opened 1 month ago

mgheorghe commented 1 month ago

i thought BMv2 is a software solution and there is a limitation only on the memory amount i have in my PC

but when trying to load 240K mappings i got

Error when trying to add entry to table 'dash_ingress.outbound.outbound_mapping_stage.ca_to_pa': TABLE_FULL

it loaded ~1000 mapping or so before it failed

r12f commented 1 month ago

Hi Mircea, yea, although BMv2 is a software implementation, but it is not designed for handling large scale of objects or traffic. By default the table size in BMv2 is set to 1024. This limit can be found in the bmv2 backend in p4c repo.

Here is the screenshot of the key code, for your convenience:

image