General list for discussing Bufferbloat
 help / color / mirror / Atom feed
From: Dave Taht <dave.taht@gmail.com>
To: "Steinar H. Gunderson" <sgunderson@bigfoot.com>
Cc: bloat@lists.bufferbloat.net
Subject: Re: [Bloat] Best practices for paced TCP on Linux?
Date: Sat, 7 Apr 2012 11:50:24 -0700	[thread overview]
Message-ID: <CAA93jw5hPBmonhuoww9MqB0z0-uncatP5jGMrrCAepH5ouUwrQ@mail.gmail.com> (raw)
In-Reply-To: <20120407181034.GD21452@uio.no>

Steinar: Judging from these results it sounds like you should try
limiting the send window.

I don't know what the right number is, or what the current calculation
for what percentage
of this is used for window related buffering, (anyone?) but reducing
the defaults by a lot for your tcp based video servers seems
like a good idea.

to do that, edit /etc/sysctl.conf, add or change the line for

net.core.wmem_max = 256000 # or less. or more. 5Mbit stream...fairly
short rtts... hmm.. no brain cells. no sleep. ?

This is another parameter that may apply, the last value should be changed.

net.ipv4.tcp_wmem = 4096 65536 2097152

These of course change it globally. you commit the changes with sysctl
-a -p /etc/sysctl.conf

You can also tweak SO_SNDBUF in vlc via setsockopt

http://www.kernel.org/doc/man-pages/online/pages/man7/tcp.7.html

64-256k seems about right but the math is eluding me this morning.

You can turn off window scaling entirely, but that's not the right answer

 net.ipv4.tcp_default_win_scale = 0

the periodicity bothers me, it would be bad if that was synchronised,
to look at that problem would require some synchronous captures from
mutiple location.
On Sat, Apr 7, 2012 at 11:10
AM, Steinar H. Gunderson <sgunderson@bigfoot.com> wrote:
> On Sat, Apr 07, 2012 at 08:10:50PM +0300, Jonathan Morton wrote:
>> 12Mbps ADSL2+ in Finland (not at all far from Norway), via a standard
>> modem-router rather than my usual Linux system.  The LAN segment is
>> entirely wired full-duplex Ethernet.  The receiver is a Core i7 Windows PC
>> running the latest stable VLC, so it's not short of ability to play what it
>> receives.
>>
>> And it's dropping more frames than it's playing.
>
> Have you tried the one at cesur.tg12? It's pacing things out a bit more.
>
> /* Steinar */
> --
> Homepage: http://www.sesse.net/



-- 
Dave Täht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://www.bufferbloat.net

  parent reply	other threads:[~2012-04-07 18:50 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-06 21:37 Steinar H. Gunderson
2012-04-06 21:49 ` Dave Taht
2012-04-06 22:21   ` Steinar H. Gunderson
2012-04-07 15:08     ` Eric Dumazet
2012-04-07 15:25       ` Dave Taht
2012-04-07 15:35         ` Steinar H. Gunderson
2012-04-07 15:48           ` Dave Taht
2012-04-07 15:52           ` Dave Taht
2012-04-07 17:10           ` Jonathan Morton
2012-04-07 17:18             ` Dave Taht
2012-04-07 17:44               ` Jonathan Morton
2012-04-07 18:10             ` Steinar H. Gunderson
2012-04-07 18:27               ` Jonathan Morton
2012-04-07 18:56                 ` Dave Taht
2012-04-07 18:50               ` Dave Taht [this message]
2012-04-07 18:54                 ` Steinar H. Gunderson
2012-04-07 19:01                   ` Steinar H. Gunderson
2012-04-07 19:08                     ` Jonathan Morton
2012-04-07 19:38                     ` Dave Taht
2012-04-07 20:16                       ` Steinar H. Gunderson
2012-04-14  0:37                       ` Rick Jones
2012-04-07 21:13                     ` Jesper Dangaard Brouer
2012-04-07 21:31                       ` Steinar H. Gunderson
2012-04-07 19:02                   ` Dave Taht
2012-04-07 21:49                 ` Fred Baker
2012-04-07 22:36                   ` Dave Taht
2012-04-07 23:59                     ` Fred Baker
2012-04-07 20:27         ` Neil Davies
2012-04-14  0:35     ` Rick Jones
2012-04-14 21:06       ` Roger Jørgensen
2012-04-16 17:05         ` Rick Jones
2012-04-07 11:54 ` Neil Davies
2012-04-07 14:17   ` Fred Baker
2012-04-07 15:08     ` Neil Davies
2012-04-07 15:16       ` Steinar H. Gunderson
2012-04-14  0:44     ` Rick Jones
2012-04-07 14:48   ` Dave Taht
2012-05-12 20:08 ` Steinar H. Gunderson

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=CAA93jw5hPBmonhuoww9MqB0z0-uncatP5jGMrrCAepH5ouUwrQ@mail.gmail.com \
    --to=dave.taht@gmail.com \
    --cc=bloat@lists.bufferbloat.net \
    --cc=sgunderson@bigfoot.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