[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
Fri Jan 24 12:41:53 UTC 2020


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

Kristof Provost <kp at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kp at freebsd.org

--- Comment #1 from Kristof Provost <kp at freebsd.org> ---
Yeah ... you're out of memory, there's not much we can do in that situation.

The allocation code for tables deliberately does not try forever to get memory
(i.e. it allocates with M_NOWAIT), because if it did you could lock up pf
accidentally by trying to allocate a far too large table.
A consequence of this is that if you're under heavy memory pressure you're
going to fail to allocate, and fail the reconfiguration.

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


More information about the freebsd-bugs mailing list