netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pkt_sched: add DRR scheduler, any idea how to use it?
@ 2009-02-26 16:26 Denys Fedoryschenko
  2009-02-27 10:51 ` Jarek Poplawski
  0 siblings, 1 reply; 2+ messages in thread
From: Denys Fedoryschenko @ 2009-02-26 16:26 UTC (permalink / raw)
  To: netdev

I tried

c qdisc add dev ifb0 handle 1 root htb

tc class add dev ifb0 classid 1:100 parent 1:0 htb rate 100Kbit ceil 100Kbit
tc qdisc add dev ifb0 parent 1:100 handle 2 drr

Packets directed by filter to 1:100, all gots dropped. And even i am adding
tc class add dev ifb0 parent 2:0 classid 2:1 drr quantum 16384

or 

tc class add dev ifb0 parent 2:0 classid 2:0 drr quantum 16384

or 

tc class add dev ifb0 parent 2:0 classid 2:1 drr quantum 16384
tc qdisc add dev ifb0 parent 2:1 handle 3 bfifo limit 10000


Always it is 
qdisc drr 2: parent 1:100
 Sent 0 bytes 0 pkt (dropped 32, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0

Any simple example how to use it?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pkt_sched: add DRR scheduler, any idea how to use it?
  2009-02-26 16:26 pkt_sched: add DRR scheduler, any idea how to use it? Denys Fedoryschenko
@ 2009-02-27 10:51 ` Jarek Poplawski
  0 siblings, 0 replies; 2+ messages in thread
From: Jarek Poplawski @ 2009-02-27 10:51 UTC (permalink / raw)
  To: Denys Fedoryschenko; +Cc: netdev

On 26-02-2009 17:26, Denys Fedoryschenko wrote:
> I tried
> 
> c qdisc add dev ifb0 handle 1 root htb
> 
> tc class add dev ifb0 classid 1:100 parent 1:0 htb rate 100Kbit ceil 100Kbit
> tc qdisc add dev ifb0 parent 1:100 handle 2 drr
> 
> Packets directed by filter to 1:100, all gots dropped. And even i am adding
> tc class add dev ifb0 parent 2:0 classid 2:1 drr quantum 16384
> 
> or 
> 
> tc class add dev ifb0 parent 2:0 classid 2:0 drr quantum 16384
> 
> or 
> 
> tc class add dev ifb0 parent 2:0 classid 2:1 drr quantum 16384
> tc qdisc add dev ifb0 parent 2:1 handle 3 bfifo limit 10000
> 
> 
> Always it is 
> qdisc drr 2: parent 1:100
>  Sent 0 bytes 0 pkt (dropped 32, overlimits 0 requeues 0)
>  rate 0bit 0pps backlog 0b 0p requeues 0
> 
> Any simple example how to use it?

Something like above plus filters to these classes, so similarly to
HFSC or HTB (but no defaults). You could try to simulate sch_sfq()
behaviour using cls_flow (one class per flow).

Jarek P.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-27 10:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-26 16:26 pkt_sched: add DRR scheduler, any idea how to use it? Denys Fedoryschenko
2009-02-27 10:51 ` Jarek Poplawski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).