[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: size of a state table entry for pf?



* Jason Crawford <jasonrcrawford_(_at_)_gmail_(_dot_)_com> [2005-04-21 22:09]:
> I was wondering, how does one determine exactly how much memory one
> state table entry uses for pf? I was looking at some code, and
> printing sizeof(struct pf_state) looks like it might be what I want,
> however I'm not positive. I wouldn't want to get it wrong, and make
> the state table bigger than the actual memory of a firewall can
> handle, and suddenly it's panicing due to pool exhaustion. I am just
> trying to get an idea about the maximum number of states that a
> firewall can handle, depending on how much ram it has.

if it was that easy pf would do the math itself, don't ya think.

-- 
BS Web Services, http://www.bsws.de/
OpenBSD-based Webhosting, Mail Services, Managed Servers, ...
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Visit your host, monkey.org