Man of pf.conf says:

tbrsize <size>
Adjusts the size, in bytes, of the token bucket regulator. If not specified, heuristics based on the interface bandwidth are used to determine the size.

So I tried to test different tbr sizes but...

when I set it in pf.conf:
altq on em0 cbq bandwidth 1Gb tbrsize 4K queue { q_lan }
queue q_lan bandwidth 950Mb cbq (default)

i got error:
root@router-test (/root)# pfctl -f /etc/pf.conf
/etc/pf.conf:9: syntax error
/etc/pf.conf:10: queue q_lan has no parent
/etc/pf.conf:10: errors in queue definition
pfctl: Syntax error in config file: pf rules not loaded

without tbrsize altq definition is ok.

I googled a little bit and found documents written by Mr. Kenjiro Cho:
1. Notes on ALTQ:
2. Interesting TIPS about using ALTQ

but he refers to tbrconfig command which is not present in OpenBSD (but it was in the past because there is file in src/sys/user.sbin).
I think it is in NetBSD.

So can anyone explain how to calculate and set it on OpenBSD for 100mbit and 1000mbit NICs?

I am asking this because i was writing to the misc group about low performance on lan bandtwith (http://marc.info/?l=openbsd-misc&m=128990880310013&w=2) and someone said there might be a TBR related problem.

For the more i found somebodys work on trying to make adaptive tbr:

Was it officially adapted?? or maybe there is some developer working on it?

best regards,

Reply via email to