[Bug 243561] pfctl -f fails on tables if system is swapping: cannot define table ${table_name}: Cannot allocate memory

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jun 2 14:36:48 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243561

Mark Johnston <markj at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markj at FreeBSD.org
         Resolution|---                         |Overcome By Events
             Status|New                         |Closed

--- Comment #2 from Mark Johnston <markj at FreeBSD.org> ---
I'm not sure there is much we can do here.  I recently made some changes to
reduce memory usage for large pf tables, but as Kristof pointed out, we can't
realistically use M_WAITOK since the tables can use an arbitrary amount of
memory (subject to a sysctl which can be changed).

I would suggest seeing if you can still reproduce the problem on the latest
HEAD or stable/12, though.  r345177 increased the memory footprint of large
tables, especially on systems with many CPUs.  r360903 and r361095 restore the
previous behaviour if you are not using per-entry counters (the default).

I will thus close the bug for now.  Please re-open if you are still able to
trigger the failure with the above-mentioned revisions.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list