🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.openbsd-pf
Article #53

question about tbrsize

#53
From: RLW
Date: Thu, 10 Feb 2011 15:09
54 lines
2407 bytes
Hello,


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:
http://www.sonycsl.co.jp/~kjc/software/altq-new-design.txt
2. Interesting TIPS about using ALTQ
http://www.sonycsl.co.jp/~kjc/software/TIPS.txt

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:
http://www.junkpile.org/openbsd/base/altq_tbradapt.diff

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


-------------
best regards,
RLW
Technical Details
Message-ID: <4D53C7BE.7070008@o2.pl>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrn

Show Full Headers
Complete Article Headers
X-Google-Thread: ff4ef,dcfee21d64d2f845,start
X-Google-NewGroupId: yes
X-Google-Attributes: gidbffa70e3,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrn
From: serandom@o2.pl (RLW)
Newsgroups: bit.listserv.openbsd-pf
Subject: question about tbrsize
Date: 10 Feb 2011 07:09:17 -0800
Organization: None
Lines: 54
Message-ID: <4D53C7BE.7070008@o2.pl>
Reply-To: RL <serandom@o2.pl>
NNTP-Posting-Host: unknown
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Date: 10 Feb 2011 15:09:17 GMT