Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jan 2018 01:12:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-pf@FreeBSD.org
Subject:   [Bug 209475] pf didn't check if enough free RAM for net.pf.states_hashsize
Message-ID:  <bug-209475-17777-7p3dqF0GYj@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-209475-17777@https.bugs.freebsd.org/bugzilla/>
References:  <bug-209475-17777@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209475

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

>>> There are no guarantees that the memory would not be allocated for some=
thing 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 rath=
er
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 am=
ount
of free memory directly. Looking at top(1) source code, it requires extensi=
ve
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...

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209475-17777-7p3dqF0GYj>