From: Patrick McHardy <kaber@trash.net>
To: Jarek Poplawski <jarkao2@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>,
Linux Netdev List <netdev@vger.kernel.org>
Subject: Re: [PATCH v2] pkt_sched: sch_drr: Fix drr_dequeue() loop
Date: Mon, 24 Nov 2008 14:17:32 +0100 [thread overview]
Message-ID: <492AA96C.6000807@trash.net> (raw)
In-Reply-To: <20081124125150.GB16755@ff.dom.local>
Jarek Poplawski wrote:
> On Mon, Nov 24, 2008 at 01:38:48PM +0100, Patrick McHardy wrote:
> ...
>> TBF with an inner DRR is fine. The other way around is broken
>> in the sense that the behaviour is undefined.
>
> IMHO, this other way (e.g. a class with TBF per user), should work too.
The behaviour undefined, so what does "work too" mean in this context?
The main question is: what should be done with the class when it
throttles?
You suggest moving it to the end of the active list. Should its deficit
be recharged in that case? Possible no because it didn't send packets -
but then again it might have handed out *some* packets (less than the
deficit) before it started throttling. Both ways would introduce
unfairness.
What could be done without harming the algorithm is to treat throttled
classes as inactive until they become unthrottled again, meaning they
would be added to the end of the active list with a full deficit. But
we have no indication for specific classes, unthrottling simply triggers
another dequeue of the root, so the implementation would get quite
complicated, leaving alone the fact that each TBF would potentially
start its own watchdog, causing excessive wakeups.
And I don't see much use for this, what is the advantage over using
HTB or HFSC?
> BTW, since this "broken" config isn't very apparent, maybe you should
> add some warning?
Yes, but I don't want to add this to the ->dequeue() path. It belongs
in the ->init() path and we currently don't have enough information
in there.
next prev parent reply other threads:[~2008-11-24 13:17 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-19 14:26 pkt_sched: add DRR scheduler Patrick McHardy
2008-11-20 11:35 ` Jarek Poplawski
2008-11-20 11:42 ` Patrick McHardy
2008-11-20 11:51 ` Jarek Poplawski
2008-11-20 11:58 ` Patrick McHardy
2008-11-20 12:06 ` Jarek Poplawski
2008-11-20 12:10 ` David Miller
2008-11-21 12:19 ` [PATCH] " Jarek Poplawski
2008-11-21 12:36 ` Patrick McHardy
2008-11-21 12:37 ` David Miller
2008-11-24 10:50 ` [PATCH] pkt_sched: sch_drr: Fix drr_dequeue() loop Jarek Poplawski
2008-11-24 10:53 ` [PATCH v2] " Jarek Poplawski
2008-11-24 12:15 ` Patrick McHardy
2008-11-24 12:33 ` Jarek Poplawski
2008-11-24 12:38 ` Patrick McHardy
2008-11-24 12:51 ` Jarek Poplawski
2008-11-24 13:17 ` Patrick McHardy [this message]
2008-11-24 13:45 ` Jarek Poplawski
2008-11-24 23:47 ` David Miller
2008-11-25 11:42 ` Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=492AA96C.6000807@trash.net \
--to=kaber@trash.net \
--cc=davem@davemloft.net \
--cc=jarkao2@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).