Open tim-rj opened 4 years ago
Need help on scaling DMAC. @tim-rj, will you be able to contribute a fix on this? thanks.
Does scaling DMAC means large amount of DMAC? After communicating with developer team, they used jemalloc to resolve this problem. We want to confirm which solution you need. If you need the solution posted in this issue, we will work on it. -BTW, it seems unable to submit PR in 201803 release. Is this branch locked? Thanks a lot.
Description
Steps to reproduce the issue:
Describe the results you received: Memory continues to grow until memory runs out.
Describe the results you expected: Memory shouldn't run out.
Additional information you deem important (e.g. issue happens only occasionally):
From a dump out of memory information, the cause is that the SYNCD put the message of MAC address changes in the message queue, and start a thread to retrieve messages from the queue to updates Redis database. While Redis is busy, which leads to slow update Redis database. A backlog of messages in the message queue causes memory usage increasement. Shutdown the interface or stop the stream, and memory usage will slowly decrease to normal level. Solution: This problem can be solved by neutralizing MAC addition and aging messages.