"How much bandwidth can PF handle?"
There are no easy answers to those questions.
For a simple home connection, most hardware should be more than enough.
Other applications may require a faster machine with high-end NICs.
PF is used in some very large, high-traffic applications, and the developers
are power users of PF.
Odds are it will do very well for most people.
"How much computing power do I need to handle my internet connection?"
PF performance is determined by several variables:
- Number of packets per second.
Almost the same amount of processing needs to be done on a packet with
1500 byte payload as for a packet with a one byte payload.
The number of packets per second determines the number of times the state
table and filter rules have to be evaluated every second, determining
the effective demand on the system.
- Efficiency of the network card.
Some network adapters are just more efficient than others.
Older rl(4) NICs tend to be
relatively poor performers, while
ix(4) NICs tend to perform
- Complexity and design of the ruleset.
More lines being evaluated for each packet will result in slower
More packets being filtered by
quick rules will result in
- Barely worth mentioning: CPU and RAM.
As PF is a kernel-based process, it will not use swap space.
So, if the system enough RAM, it runs.
If not, it panics due to
Huge amounts of RAM are not needed.
Will multiple processors help?
PF will only use one processor, so multiple processors (or multiple cores)
will not improve PF performance.
However, under some circumstances, running the SMP version of OpenBSD
bsd.mp) instead of
bsd will give better performance
due to differences in how interrupt handling is done.
Most users will never hit any limits to worry about it.