Contributed by jose on from the where-to-start? dept.
"Hi!I, too, have been looking at ways to tune PF. I expect it will take kernel recompiles and not simple sysctl changes. There is Daniel's PF performance talk, but it didn't have much info on tuning. Any advice?I just set up a bridged firewall with OpenBSD-3.1 stable. The outbound connection is an ADSL 1mbit line. Earlier other people on the network were able to see streaming video at 700kbps, while now only 300kbps seems to be possible. I have set up:
net.inet.tcp.recvspace=65535 net.inet.tcp.sendspace=65535anything else I can do?Thanx in advance!"
(Comments are closed)
By jose () on http://www.monkey.org/~jose/
#define PFFRAG_FRENT_HIWAT 5000 /* Number of fragment entries */
#define PFFRAG_FRAG_HIWAT 1000 /* Number of fragmented packets */
#define PFFRAG_FRCENT_HIWAT 50000 /* Number of fragment cache entries */
#define PFFRAG_FRCACHE_HIWAT 10000 /* Number of fragment descriptors */
would adjusting any of these values help?
By Anonymous () on
By Anonymous Coward () on
net.inet.tcp.sendspace=65535
From what I know, these only change the buffer space the kernel allocates for sockets. I don't think they'd play a role in speeding up pf.
By RC () on
I have a hard time believing that PF is causing any bottlnecks on your setup. The story was light on details, so I can't even suggest what the problem might be.
By Aasmund () on
1 Intel for the internal network
1. RealTek for the external network.
Should I look into buying a new network card then?
Regards & Thanks for all the suggestions,
Aasmund.
By Marco Brigham () on
You probably have a very high bandwidth difference on the bridge (1Mb 100/10 Mb), which is a perfect scenario for deploying ALTQ. With a good set of rules, clients and services behind/on the bridge should get consistent access times.
You can only use ALTQ for outgoing traffic. Since you're filtering in bridge mode, both incoming and outgoing traffic are outgoing in some interface, so you can use ALTQ for all traffic.
Try CBQ/RED.
Cheers
By obsd :: JGM () obsd@jgm.gov.ar on mailto:obsd@jgm.gov.ar
I supouse I have a bad config, but I donīt know what is...
if anybody know.. please.. mail me
**sorry my english
By Anonymous Coward () on
Either you're running some horribly slow hardware or you're experiencing some odd bug.
I'd try running -current, which has many pf optimizations over the release. Playing with some other networks cards may be a good idea as well. I doubt you'll find the solution hacking kernel defs and altering sysctls. Your machine just is not that busy. 110mhz)>
By Peter Hessler () spambox@theapt.org on http://www.sfobug.org
By Patrick Giagnocavo () patrick@zill.net on http://www.zill.net