Re: net: cleanup_net is slow

From: Florian Westphal
Date: Mon Apr 24 2017 - 08:10:22 EST


Andrey Konovalov <andreyknvl@xxxxxxxxxx> wrote:
> On Fri, Apr 21, 2017 at 9:45 PM, Florian Westphal <fw@xxxxxxxxx> wrote:
> > Florian Westphal <fw@xxxxxxxxx> wrote:
> >> Indeed. Setting net.netfilter.nf_conntrack_default_on=0 cuts time
> >> cleanup time by 2/3 ...
> >>
> >> nf unregister is way too happy to issue synchronize_net(), I'll work on
> >> a fix.
> >
> > I'll test this patch as a start. Maybe we can also leverage exit_batch
> > more on netfilter side.
>
> Hi Florian,
>
> Your patch improves fuzzing speed at least twice, which is a great start!

Great. I'll try to push the patches i have to nf-next ASAP.