General list for discussing Bufferbloat
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Dave Taht <dave.taht@gmail.com>
Cc: bloat <bloat@lists.bufferbloat.net>
Subject: Re: [Bloat] sweeping up the bloat
Date: Tue, 16 Jun 2015 11:32:24 -0700	[thread overview]
Message-ID: <1434479544.27504.195.camel@edumazet-glaptop2.roam.corp.google.com> (raw)
In-Reply-To: <CAA93jw6Vusa9sQ8ccRUx=3kaZoyx9wuMOuguhkcKNWu9hqtTdQ@mail.gmail.com>

On Tue, 2015-06-16 at 10:53 -0700, Dave Taht wrote:

> But guidelines on how to configure it in applications are missing.

Well, you know the optimal rate -> set it. It is that simple.

If not, leave this to TCP stack.

>  As
> are when where and how to implement it in DCs, handheld clients,
> internal servers and hosts, home routers, slow networks, VMs, and bare
> metal servers.
> 
> Quic does pacing, so far as I know, entirely in userspace, or does it
> rely on sch_fq to do so? Should a VOIP app or server like freeswitch
> use it?

A Quic server handles thousands (millions ?) of flows. Having one kernel
socket per flow would be way too expensive.

(And BTW, rx path in UDP is not optimized for 4-tuple hashing).

There are 2 hash tables, one lookup on destination_IP:destination_port,
and one on *:destination_port.

For Quic server, all sockets would share same keys.

> 
> I see in the kernel support for sk_pacing_rate, and max_pacing_rate
> and it is unclear how/when those options can be of aid and set.

Really ?

You haven't try hard, and this is quite upsetting given your concerns.

http://www.spinics.net/lists/netdev/msg251368.html

u32 val = 1000000;
setsockopt(sockfd, SOL_SOCKET, SO_MAX_PACING_RATE, &val, sizeof(val));


Can it be simpler than that ? (In C I mean...)




  reply	other threads:[~2015-06-16 18:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-16 17:10 Dave Taht
2015-06-16 17:33 ` Steinar H. Gunderson
2015-06-16 17:53   ` Dave Taht
2015-06-16 18:32     ` Eric Dumazet [this message]
2015-06-16 19:33       ` 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=1434479544.27504.195.camel@edumazet-glaptop2.roam.corp.google.com \
    --to=eric.dumazet@gmail.com \
    --cc=bloat@lists.bufferbloat.net \
    --cc=dave.taht@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