From: "John W. Linville" <linville@tuxdriver.com>
To: Jonathan Morton <chromatix99@gmail.com>
Cc: bloat@lists.bufferbloat.net
Subject: Re: [Bloat] Random idea in reaction to all the discussion of TCP flavours - timestamps?
Date: Tue, 15 Mar 2011 20:47:22 -0400 [thread overview]
Message-ID: <20110316004722.GD28663@tuxdriver.com> (raw)
In-Reply-To: <219C7840-ED79-49EA-929D-96C5A6200401@gmail.com>
On Wed, Mar 16, 2011 at 12:01:41AM +0200, Jonathan Morton wrote:
>
> On 15 Mar, 2011, at 10:51 pm, John W. Linville wrote:
>
> >>> If you don't throttle _both_
> >>> the _enqueue_ and the _dequeue_, then you could be keeping a nice,
> >>> near-empty tx queue on the host and still have a long, bloated queue
> >>> building at the device.
> >>
> >> Don't devices at least let you query how full their queue is?
> >
> > I suppose it depends on what you mean? Presumably drivers know that,
> > or at least can figure it out. The accuracy of that might depend on
> > the exact mechanism, how often the tx rings are replinished, etc.
> >
> > However, I'm not aware of any API that would let something in the
> > stack (e.g. a qdisc) query the device driver for the current device
> > queue depth. At least, I don't think Linux has one -- do other
> > kernels/stacks provide that?
>
> I get the impression that eBDP is supposed to work relatively
> close to the device driver, rather than in the core network stack.
> As such it's not a qdisc, but instead manages a parameter used by
> a well-behaved device driver. (The number of well-behaved device
> drivers appears to be small at present.)
If you count mac80211 as part of the "driver", what is between the
qdisc and the "driver"? I wouldn't consider the bottom of the qdisc
as the core of the stack.
I would really like to see eBDP (or ALT or A* or something similar)
implemented in a single place if possible, rather than reimplemented
(perhaps poorly) in a series of drivers. I know Felix and others think
that 802.11n aggregation makes that impossible, but I'm inclined to
think that is still at least partly from a bias towards throughput
at the expense of latency -- I could be wrong! :-)
Someone suggested that perhaps eBDP/ALT/A*/whatever could be
implemented as a library for drivers to call -- that still requires
individual driver hacking, but maybe it is reasonable? I'd have to
see the code.
> So there's a queue in the qdisc, and there's a queue in the hardware,
> and eBDP tries to make the latter smaller when possible, allowing the
> former (which is potentially much more intelligent) to do more work.
So that is a possible implementation -- limit the tx queue length
in the driver, similar to manually doing 'ethtool -G'. But on the
other hand, you can achieve a similar effect by throttling the input
to the driver/hardware tx queue no matter how many hardware tx slots
are physically allowed.
<snip>
> Knowing the occupancy of the hardware buffer is useful if the
> size of the buffer cannot be changed, because it is then possible
> to simply decline to fill the buffer more than a certain amount.
> If you can also assume that packets are sent in order of submission,
> or by some other easy rule, then you can also infer the time that
> the oldest packet has spent there, and use it to tune the future
> occupancy limit even if you can't cancel the old packet.
Yes, I think we agree.
> Cancelling old packets is potentially desirable because it allows
> TCPs and applications to retransmit (which they will do anyway)
> without fear of exacerbating a wireless congestion collapse. I do
> appreciate that not all hardware will support this, however, and it
> should be totally unnecessary for wired links.
As other said later in the queue, I think trying to reach down into the
driver/hardware to cancel an already posted packet would be difficult,
slow, etc.
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
next prev parent reply other threads:[~2011-03-16 1:00 UTC|newest]
Thread overview: 70+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-15 10:36 Jim Gettys
2011-03-15 14:40 ` Jim Gettys
2011-03-15 16:47 ` Jonathan Morton
2011-03-15 17:59 ` Don Marti
2011-03-15 18:14 ` Rick Jones
2011-03-15 18:31 ` John W. Linville
2011-03-15 19:40 ` Jonathan Morton
2011-03-15 19:59 ` Rick Jones
2011-03-15 20:51 ` John W. Linville
2011-03-15 21:31 ` Rick Jones
2011-03-16 0:32 ` John W. Linville
2011-03-16 1:02 ` Rick Jones
2011-03-15 22:01 ` Jonathan Morton
2011-03-15 22:19 ` Stephen Hemminger
2011-03-15 22:26 ` Jonathan Morton
2011-03-15 22:36 ` Rick Jones
2011-03-15 22:40 ` Jonathan Morton
2011-03-15 22:42 ` Stephen Hemminger
2011-03-15 22:52 ` Eric Dumazet
2011-03-15 23:02 ` Rick Jones
2011-03-15 23:12 ` Jonathan Morton
2011-03-15 23:25 ` Rick Jones
2011-03-15 23:33 ` Jonathan Morton
2011-03-15 23:46 ` Dave Täht
2011-03-16 0:49 ` Jonathan Morton
2011-03-16 1:02 ` Dave Täht
2011-03-16 1:28 ` Jonathan Morton
2011-03-16 1:59 ` Dave Täht
2011-03-16 2:23 ` Jonathan Morton
2011-03-16 22:22 ` [Bloat] Random idea in reaction to all the discussion of TCPflavours " Richard Scheffenegger
2011-03-16 23:38 ` richard
2011-03-16 23:50 ` Rick Jones
2011-03-17 12:05 ` Fred Baker
2011-03-17 12:18 ` Fred Baker
2011-03-17 17:27 ` Dave Täht
2011-03-18 18:30 ` Richard Scheffenegger
2011-03-18 18:49 ` Fred Baker
2011-03-20 11:40 ` Jonathan Morton
2011-03-20 22:18 ` david
2011-03-20 22:45 ` Jonathan Morton
2011-03-20 22:50 ` Dave Täht
2011-03-20 22:55 ` grenville armitage
2011-03-20 23:04 ` Dave Täht
2011-03-20 23:14 ` Jonathan Morton
2011-03-20 23:19 ` Dave Täht
2011-03-20 23:23 ` Dave Täht
2011-03-20 22:58 ` Jonathan Morton
2011-03-21 1:28 ` david
2011-03-21 1:56 ` Wesley Eddy
2011-03-18 18:27 ` [Bloat] Random idea in reaction to all the discussion ofTCPflavours " Richard Scheffenegger
2011-03-16 22:07 ` [Bloat] Random idea in reaction to all the discussion of TCPflavours " Richard Scheffenegger
2011-03-17 0:10 ` Jonathan Morton
2011-03-16 0:47 ` John W. Linville [this message]
2011-03-16 20:07 ` [Bloat] Random idea in reaction to all the discussion of TCP flavours " Jim Gettys
2011-03-17 2:26 ` Jonathan Morton
2011-03-17 18:22 ` Rick Jones
2011-03-17 21:50 ` Jonathan Morton
2011-03-17 22:20 ` Rick Jones
2011-03-17 22:56 ` Jonathan Morton
2011-03-18 1:36 ` Justin McCann
2011-03-18 5:51 ` Eric Dumazet
2011-03-15 16:34 ` Jonathan Morton
2011-03-15 18:13 ` Stephen Hemminger
2011-03-16 5:41 ` Fred Baker
2011-03-16 6:26 ` Jonathan Morton
2011-03-16 8:55 ` [Bloat] Random idea in reaction to all the discussion of TCPflavours " Richard Scheffenegger
2011-03-16 9:04 ` [Bloat] Random idea in reaction to all the discussion of TCP flavours " BeckW
2011-03-16 22:48 ` Fred Baker
2011-03-16 23:23 ` Jonathan Morton
2011-03-17 8:34 ` BeckW
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=20110316004722.GD28663@tuxdriver.com \
--to=linville@tuxdriver.com \
--cc=bloat@lists.bufferbloat.net \
--cc=chromatix99@gmail.com \
/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