[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/55892: npf cannot handle large tables
>Synopsis: npf cannot handle large tables
>Arrival-Date: Tue Dec 22 13:40:00 +0000 2020
>Release: NetBSD 9.1
NetBSD apu4ed.home.lan 9.1 NetBSD 9.1 (GENERIC) #0: Sun Oct 18 19:24:30 UTC 2020 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
On attempting to load a npf(7) ruleset which references a table with tens of thousands of entries, npfctl(8) silently runs for a very long time, and then emits some garbage output. At this point, the npf is left in an operable state.
The failure to properly load the ruleset is one bad behaviour.
That loading a ruleset takes minutes is another bad behavior.
Here you can download a minimal npf.conf which tries to load a table of about 52,000 subnets.
On a 4-core machine with 4GB of memory, this command:
# npfctl reload
chewed in silence for about 7 minutes, and then produced this output:
With a larger table, the run time is longer, and the garbage output is different, being longer.
Main Index |
Thread Index |