dummynet -- changing scheduler resets pipe bw ?
Rudy
crapsh at monkeybrains.net
Wed Nov 17 08:20:09 UTC 2010
I have been reading the ipfw man pages and
/usr/src/sys/netinet/ipfw/dummynet.txt to try to better understand how
to set up queues/pipes/schedulars/flows. I noticed something odd...
changing the sched type
[a] doesn't seem to change the type away from WF2Q+
[b] resets the bw to 'unlimited'
Maybe I don't have qfq?
Rudy
Output:
158> ipfw -v pipe 5 show
answer for cmd 130, len 4096
00005: 6.000 Mbit/s 0 ms burst 0
q131077 50 sl. 0 flows (1 buckets) sched 65541 weight 0 lmax 0 pri 0
droptail
sched 65541 type FIFO flags 0x0 0 buckets 0 active
159> ipfw pipe 5 config sched qfq
160> ipfw -v pipe 5 show
answer for cmd 130, len 4096
00005: unlimited 0 ms burst 0
q131077 50 sl. 0 flows (1 buckets) sched 65541 weight 0 lmax 0 pri 0
droptail
sched 65541 type FIFO flags 0x0 0 buckets 0 active
161> ipfw pipe 5 config bw 6Mbit/s
162> ipfw -v pipe 5 show
answer for cmd 130, len 4096
00005: 6.000 Mbit/s 0 ms burst 0
q131077 50 sl. 0 flows (1 buckets) sched 65541 weight 0 lmax 0 pri 0
droptail
sched 65541 type FIFO flags 0x0 0 buckets 0 active
166> ipfw sched list
00001: 21.000 Mbit/s 0 ms burst 0
sched 1 type WF2Q+ flags 0x0 0 buckets 0 active
00002: 21.000 Mbit/s 0 ms burst 0
sched 2 type WF2Q+ flags 0x0 0 buckets 0 active
00003: 6.000 Mbit/s 0 ms burst 0
sched 3 type WF2Q+ flags 0x0 0 buckets 0 active
00004: 12.000 Mbit/s 0 ms burst 0
sched 4 type WF2Q+ flags 0x0 0 buckets 0 active
00005: 6.000 Mbit/s 0 ms burst 0
sched 5 type WF2Q+ flags 0x0 0 buckets 1 active
Children flowsets: 5
0 ip 0.0.0.0/0 0.0.0.0/0 19389008
15491784384 204 174119 1090892
00022: 12.000 Mbit/s 0 ms burst 0
sched 22 type WF2Q+ flags 0x0 0 buckets 0 active
Children flowsets: 23
167> ipfw pipe 5 config sched qfq
168> ipfw sched list
00001: 21.000 Mbit/s 0 ms burst 0
sched 1 type WF2Q+ flags 0x0 0 buckets 0 active
00002: 21.000 Mbit/s 0 ms burst 0
sched 2 type WF2Q+ flags 0x0 0 buckets 0 active
00003: 6.000 Mbit/s 0 ms burst 0
sched 3 type WF2Q+ flags 0x0 0 buckets 0 active
00004: 12.000 Mbit/s 0 ms burst 0
sched 4 type WF2Q+ flags 0x0 0 buckets 0 active
00005: unlimited 0 ms burst 0
sched 5 type WF2Q+ flags 0x0 0 buckets 1 active
Children flowsets: 5
0 ip 0.0.0.0/0 0.0.0.0/0 19449511
15527760672 0 0 1095037
00022: 12.000 Mbit/s 0 ms burst 0
sched 22 type WF2Q+ flags 0x0 0 buckets 0 active
Children flowsets: 23
FreeBSD jejen.monkeybrains.net 8.1-STABLE FreeBSD 8.1-STABLE #2: Wed Oct
20 15:55:41 PDT 2010
root at pulga.monkeybrains.net:/usr/obj/usr/src/sys/JEJEN amd64
strings /boot/kernel/dummynet.ko.symbols | head -1
$FreeBSD: src/sys/netinet/ipfw/ip_dummynet.c,v 1.5.2.3 2010/03/23
09:58:59 luigi Exp $
More information about the freebsd-stable
mailing list