Re: [REGRESSION] 6.18.14 netfilter/nftables consumes way more memory

From: Pablo Neira Ayuso

Date: Fri Mar 06 2026 - 19:15:26 EST


On Fri, Mar 06, 2026 at 12:20:16PM -0600, Chris Arges wrote:
> On 2026-03-06 13:25:44, Pablo Neira Ayuso wrote:
> <snip>
> > > I see what is going on, my resize logic is not correct. This is
> > > increasing the size for each new transaction, then the array is
> > > getting larger and larger on each transaction update.
> > >
> > > Could you please give a try to this patch?
> >
> > Scratch that.
> >
> > Please, give a try to this patch.
> >
> > Thanks.
>
> Pablo,
>
> Thanks, I'm getting this set up on a few machines. I will have:
> - 6.18.15 (original kernel version that repo'd the issue for us)
> - 6.18.15 + this patch
> - 6.18.15 + revert rbtree patchseries
>
> I'll compare memory usage with those 3 variants and give a response.

I posted a new patch version, see:

https://patchwork.ozlabs.org/project/netfilter-devel/patch/20260307001124.2897063-1-pablo@xxxxxxxxxxxxx/