On 2021-05-25 2:21 p.m., Alexei Starovoitov wrote:
On Mon, May 24, 2021 at 9:59 PM Cong Wang <xiyou.wangcong@xxxxxxxxx> wrote:
[..]
In general the garbage collection in any form doesn't scale. The conntrack logic doesn't need it. The cillium conntrack is a great example of how to implement a conntrack without GC.
For our use case, we need to collect info on all the flows for various reasons (one of which is accounting of every byte and packet). So as a consequence - built-in GC (such as imposed by LRU) cant interfere without our consent. cheers, jamal