[Bug 209475] pf didn't check if enough free RAM for net.pf.states_hashsize

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 16 01:12:53 UTC 2018


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

--- Comment #10 from fehmi noyan isi <fnoyanisi at yahoo.com> ---
(In reply to Kristof Provost from comment #9)
Hi Kristof,

>>> There are no guarantees that the memory would not be allocated for something else.

If my interpretation of your comment is correct (and if not please correct me),
you mean one should perform the memory check against the "free" memory rather
than the installed memory, which is hw.physmem in this case.

However, I could not find any sysctl tunables that I can get the correct amount
of free memory directly. Looking at top(1) source code, it requires extensive
calculations to come up with the amount of wired, free or active memory.

Sticking with hw.physmem was the best option I could think of. Any other
suggestions are welcome, so that I can work it out...

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


More information about the freebsd-pf mailing list