From: "Dave Täht" <dave.taht@bufferbloat.net>
To: codel@lists.bufferbloat.net
Cc: "Dave Täht" <dave.taht@bufferbloat.net>
Subject: [Codel] [PATCH 2/2] codel: The missing fourth state
Date: Mon, 7 May 2012 02:16:44 -0700 [thread overview]
Message-ID: <1336382204-24942-1-git-send-email-dave.taht@bufferbloat.net> (raw)
I'm not saying this is correct. But it would account for a quantum miss.
As for good queue vs bad queue... don't know.
In testing with 1 or 50 streams, at 100Mbit, it seems to do the job.
I look forward to reading the actual paper.
---
net/sched/sch_codel.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/net/sched/sch_codel.c b/net/sched/sch_codel.c
index a9e6383..55c75de 100644
--- a/net/sched/sch_codel.c
+++ b/net/sched/sch_codel.c
@@ -195,9 +195,11 @@ static u32 count_rescale(struct codel_sched_data *q, codel_time_t now) {
default:
c = q->count - 1;
}
- c = max(1U, c);
- }
- return (u32) c;
+ } else {
+ c = q->count >> 4;
+ }
+ c = max(1U, c);
+ return (u32) c;
}
static struct sk_buff *codel_dequeue(struct Qdisc *sch)
@@ -247,7 +249,7 @@ static struct sk_buff *codel_dequeue(struct Qdisc *sch)
}
} else if (drop &&
(codel_time_before(now - q->drop_next,
- 16 * q->interval) ||
+ 16 * q->interval) ||
codel_time_after_eq(now - q->first_above_time,
2 * q->interval))) {
codel_drop(sch, skb);
--
1.7.9.5
next reply other threads:[~2012-05-07 9:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-07 9:16 Dave Täht [this message]
2012-05-07 9:30 ` dave taht
2012-05-07 11:03 ` Eric Dumazet
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
List information: https://lists.bufferbloat.net/postorius/lists/codel.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1336382204-24942-1-git-send-email-dave.taht@bufferbloat.net \
--to=dave.taht@bufferbloat.net \
--cc=codel@lists.bufferbloat.net \
/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