From: Jonathan Morton <chromatix99@gmail.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: bloat@lists.bufferbloat.net
Subject: Re: [Bloat] RED against bufferbloat
Date: Wed, 25 Feb 2015 22:00:28 +0200 [thread overview]
Message-ID: <45F96412-5317-42A0-A426-E342DD221C7C@gmail.com> (raw)
In-Reply-To: <20150225192515.1D738406057@ip-64-139-1-69.sjc.megapath.net>
> On 25 Feb, 2015, at 21:25, Hal Murray <hmurray@megapathdsl.net> wrote:
>
>> That's easy enough. You can fit an awful lot of linked list pointers into
>> the space of a single IP packet. Even if you're only assigning 64KB per
>> subscriber, you can store 43 full packets and still have pointers to spare.
>> A properly functioning AQM should mostly keep the queue smaller than that.
>
> Is a slot for the head-of-list pointer all the information you need to
> remember for an empty queue? Or do you need some memory of recent traffic?
The Linux implementation of fq_codel uses DRR for the FQ bit.
For that, you need a head pointer (for fast dequeue), a tail pointer (for fast enqueue), and a deficit counter (to implement the fairness) per flow. With some granularity in the pointers, or else with a fixed queue arena of some tens of megabytes maximum, you can squeeze all that into 8 bytes per flow quite comfortably.
You also need a set of codel variables per flow (these are not large), a free-list of spaces to put new packets, and a ‘next’ pointer per enqueued packet. The latter two might already be present in some form, depending on the FIFO implementation - that is, if it’s not just a ring buffer.
With these taken into account, I think we’re still looking at 40+ full-size packets in a 64KB arena, or a larger number if smaller packets are mixed in. DRR will tend to service flows with smaller packets more often, leading to bandwidth fairness.
- Jonathan Morton
next prev parent reply other threads:[~2015-02-25 20:00 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-25 19:25 Hal Murray
2015-02-25 20:00 ` Jonathan Morton [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-02-24 15:43 sahil grover
2015-02-24 16:13 ` Matt Mathis
2015-02-24 22:39 ` Kathleen Nichols
2015-02-25 6:46 ` Mikael Abrahamsson
2015-02-25 6:54 ` David Lang
2015-02-25 6:59 ` Mikael Abrahamsson
2015-02-25 8:29 ` Alex Elsayed
2015-02-25 8:06 ` Bob Briscoe
2015-02-25 8:42 ` Alex Elsayed
2015-02-25 9:18 ` Michael Welzl
2015-02-25 9:29 ` Sebastian Moeller
2015-02-25 10:10 ` Michael Welzl
2015-02-25 10:24 ` Toke Høiland-Jørgensen
2015-02-25 10:47 ` Mikael Abrahamsson
2015-02-25 11:04 ` Toke Høiland-Jørgensen
2015-02-25 18:39 ` Bill Ver Steeg (versteb)
2015-02-26 9:01 ` MUSCARIELLO Luca IMT/OLN
2015-02-26 10:39 ` Mikael Abrahamsson
2015-02-26 10:41 ` Toke Høiland-Jørgensen
2015-02-26 10:44 ` Mikael Abrahamsson
2015-02-26 10:51 ` Toke Høiland-Jørgensen
2015-02-26 10:59 ` Sebastian Moeller
2015-02-26 11:12 ` Jonathan Morton
2015-02-27 0:26 ` Dave Taht
2015-02-26 10:45 ` Sebastian Moeller
2015-02-26 11:34 ` Jonathan Morton
2015-02-26 12:59 ` Mikael Abrahamsson
2015-02-26 11:26 ` MUSCARIELLO Luca IMT/OLN
2015-02-26 12:57 ` Mikael Abrahamsson
2015-02-25 13:25 ` Sebastian Moeller
2015-02-25 13:36 ` Mikael Abrahamsson
2015-02-25 13:38 ` Toke Høiland-Jørgensen
2015-02-25 14:05 ` Mikael Abrahamsson
2015-02-25 18:51 ` Bill Ver Steeg (versteb)
2015-02-25 14:16 ` MUSCARIELLO Luca IMT/OLN
2015-02-25 16:09 ` Mikael Abrahamsson
2015-02-25 17:34 ` MUSCARIELLO Luca IMT/OLN
2015-02-25 17:56 ` Jonathan Morton
2015-02-26 12:54 ` Mikael Abrahamsson
2015-02-26 14:06 ` MUSCARIELLO Luca IMT/OLN
2015-02-26 14:18 ` Mikael Abrahamsson
2015-02-26 15:18 ` MUSCARIELLO Luca IMT/OLN
2015-02-26 17:04 ` Dave Taht
2015-02-26 18:07 ` Dave Taht
2015-02-26 18:59 ` Mikael Abrahamsson
2015-02-26 19:44 ` Bill Ver Steeg (versteb)
2015-02-26 20:42 ` Jonathan Morton
2015-02-26 21:50 ` Dave Taht
2015-02-25 16:54 ` Sebastian Moeller
2015-02-25 10:54 ` Michael Welzl
2015-02-25 11:24 ` Toke Høiland-Jørgensen
2015-02-25 12:08 ` Jonathan Morton
2015-02-25 19:04 ` David Lang
2015-02-25 19:30 ` Michael Welzl
2015-02-25 9:31 ` Alex Elsayed
2015-02-25 10:37 ` Michael Welzl
2015-02-25 10:54 ` Alex Elsayed
2015-02-25 17:28 ` Bob Briscoe
2015-02-25 18:03 ` Dave Taht
2015-02-26 9:36 ` Sebastian Moeller
2015-02-25 17:57 ` Dave Taht
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/bloat.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45F96412-5317-42A0-A426-E342DD221C7C@gmail.com \
--to=chromatix99@gmail.com \
--cc=bloat@lists.bufferbloat.net \
--cc=hmurray@megapathdsl.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