Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Mar 2011 23:33:27 GMT
From:      Marcin Wisnicki <mwisnicki+freebsd@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/155736: [pf] [altq] borrow from parent queue does not work with cbq
Message-ID:  <201103202333.p2KNXRqd033269@red.freebsd.org>
Resent-Message-ID: <201103202340.p2KNe1UX035090@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         155736
>Category:       kern
>Synopsis:       [pf] [altq] borrow from parent queue does not work with cbq
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 20 23:40:01 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Marcin Wisnicki
>Release:        8.2-STABLE
>Organization:
>Environment:
FreeBSD ghost.pnet.one.pl 8.2-STABLE FreeBSD 8.2-STABLE #1: Wed Mar  2 17:18:23 CET 2011     root@ghost.pnet.one.pl:/home/obj/usr/src/sys/SERWER_DDB  i386

>Description:
I have queues like this:

altq on $lan_if cbq bandwidth 100Mb queue { qLocal, qExt }
queue qLocal bandwidth 0b cbq(default borrow)
queue qExt bandwidth 10Mb cbq { qExtFast, qExtSlow }
queue  qExtFast priority 7 bandwidth 80% cbq(borrow)
queue  qExtSlow priority 1 bandwidth 20% cbq(borrow red)

pass on $lan_if from <slow> to $internet queue qExtSlow
pass on $lan_if from $internet to <slow> queue qExtSlow
pass on $lan_if from !<slow> to $internet queue qExtFast

Lan is 100Mbps and Wan is 10Mbps. Above rules are supposed to slow down traffic coming from internet to <slow> hosts.

Unfortunately it seems that borrowing does not work when parent queue (qExt) does not also borrow. But it should according to man and PF FAQ.
pfctl -sq -v shows 0 packets in qExt. If I reduce eg. qExtFast to 10% it goes down as if there was no borrow.

Googling reveals many similar posts dating back to FreeBSD-6, possibly bug is there since ALTQ introduction.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103202333.p2KNXRqd033269>