* [LARTC] pfifo_fast as leaf qdisc for htb classes
@ 2005-08-13 11:50 panca sorin
2005-08-14 18:13 ` Andy Furniss
0 siblings, 1 reply; 2+ messages in thread
From: panca sorin @ 2005-08-13 11:50 UTC (permalink / raw)
To: lartc
Thank you Andy! I did't find why I could't use the fw
match in ingress. Now it works.
Now I ran into another problem:
When I try to add a pfifo_fast leaf qdisc dor htb
classes it seg.-faults. Is pfifo_fast a special qdisc?
I can succesfully add other type of qdiscs.
I found that a similar problem was reported in
february on a MIPS architecture.
root@zefir:/usr/src# tc qdisc add dev eth0 root handle
1: htb default 10
root@zefir:/usr/src# tc class add dev eth0 parent 1:
classid 1:1 htb rate 100Mbit ceil 100Mbit burst 50k
cburst 150k
root@zefir:/usr/src# tc class del dev eth0 parent 1:
classid 1:1 htb rate 100Mbit ceil 100Mbit burst 50k
cburst 150k
root@zefir:/usr/src# tc class add dev eth0 parent 1:
classid 1:1 htb rate 90Mbit ceil 100Mbit burst 50k
cburst 150k
root@zefir:/usr/src# tc class add dev eth0 parent 1:
classid 1:10 htb rate 10Mbit ceil 100Mbit burst 50k
cburst 150k
root@zefir:/usr/src# tc qdisc add dev eth0 parent 1:1
handle 2: pfifo_fast
Segmentation fault
root@zefir:/usr/src# uname -a
Linux zefir 2.6.12.4 #1 Sun Aug 7 18:17:31 EEST 2005
i686 unknown unknown GNU/Linux
root@zefir:/usr/src# tc qdisc add dev eth0 parent 1:1
handle 2: sfq perturb 10
root@zefir:/usr/src#
I think htb and pfifo_fast assures a better QOS than
htb & sfq because I can priorize interactivity.
Thank you in advance for any sugestions.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [LARTC] pfifo_fast as leaf qdisc for htb classes
2005-08-13 11:50 [LARTC] pfifo_fast as leaf qdisc for htb classes panca sorin
@ 2005-08-14 18:13 ` Andy Furniss
0 siblings, 0 replies; 2+ messages in thread
From: Andy Furniss @ 2005-08-14 18:13 UTC (permalink / raw)
To: lartc
panca sorin wrote:
> Thank you Andy! I did't find why I could't use the fw
> match in ingress. Now it works.
It will work on marks set in prerouting if you don't select packet
action in your kernel config (near policer).
>
> Now I ran into another problem:
> When I try to add a pfifo_fast leaf qdisc dor htb
> classes it seg.-faults. Is pfifo_fast a special qdisc?
> I can succesfully add other type of qdiscs.
>
> I found that a similar problem was reported in
> february on a MIPS architecture.
Yes I think it's special - but the default behavior of prio is much the
same.
>
> root@zefir:/usr/src# tc qdisc add dev eth0 root handle
> 1: htb default 10
> root@zefir:/usr/src# tc class add dev eth0 parent 1:
> classid 1:1 htb rate 100Mbit ceil 100Mbit burst 50k
> cburst 150k
FWIW if you are shaping 100meg ethernet those settings would be too high
I would use -
... rate 99mbit ceil 99mbit mpu 84 overhead 38 ...
> I think htb and pfifo_fast assures a better QOS than
> htb & sfq because I can priorize interactivity.
>
> Thank you in advance for any sugestions.
Yes use prio if you are going to give one class for each user, you will
still have to set the tos bits/classify yourself as you can't rely on
apps/inbound having them set properly.
Also remember that if you are shaping inbound traffic you need to back
off from the link rates more than outbound so that a queue can build up.
If the link is slow then you'll need to keep the queues short aswell, so
you drop packets.
Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-14 18:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-13 11:50 [LARTC] pfifo_fast as leaf qdisc for htb classes panca sorin
2005-08-14 18:13 ` Andy Furniss
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.