sonic-net / sonic-sairedis

SAI object interface to Redis database, as used in the SONiC project
Other
56 stars 273 forks source link

[syncd] Make sure notification queue release memory when drained #1427

Closed kcudnik closed 1 month ago

kcudnik commented 1 month ago

Since there could be burst of notifications, that allocated memory can be over 2GB, but when queue will be drained that memory will not be automatically released. Underlying deque container contains function shrink_to_fit but that is just a request, and usually this function does nothing.