General list for discussing Bufferbloat
 help / color / mirror / Atom feed
From: Rick Jones <rick.jones2@hp.com>
To: Hal Murray <hmurray@megapathdsl.net>, bloat@lists.bufferbloat.net
Subject: Re: [Bloat] SO_SNDBUF and SO_RCVBUF
Date: Wed, 22 Apr 2015 12:26:48 -0700	[thread overview]
Message-ID: <5537F5F8.9030101@hp.com> (raw)
In-Reply-To: <20150422191056.9C7AC406057@ip-64-139-1-69.sjc.megapath.net>

> So it looks like the number you feed it turns into the window size.
>
> A few quick tests with netperf confirm that it is doing something close to
> what I expect but I haven't fired up tcpdump to verify that the window size
> is what I asked for.  netperf does print out values that are 2x what I asked
> for.

It will do that until you start asking for (2x?) more than 
net.core.[rw]mem_max.  At that point they will be clipped.

> Yuck.  (That's Yuck at Linux, not netperf.)

No worries :)

That bit of behaviour frustrated me and my BSD-stack upbringing for 
years, along with the auto-tuning.  Finally I ended-up adding support 
for reporting three different socket buffer values via the "omni" output 
selectors:

1) the size requested by the user via the command line
2) the size initially after the data socket was created (and any 
setsockopts triggered by the command line)
3) the size at the end of the test

The classic netperf tests have always reported 2.  If you use the omni 
tests directly (-t omni) they will report 3.  You can always use the 
test-specific -o, -O or -k option to emit each specifically.  For both 
SO_[SND|RCV]BUF locally and remote:


raj@tardy:~/netperf2_trunk$ netperf -- -O \? | grep SIZE
LSS_SIZE_REQ
LSS_SIZE
LSS_SIZE_END
LSR_SIZE_REQ
LSR_SIZE
LSR_SIZE_END
RSS_SIZE_REQ
RSS_SIZE
RSS_SIZE_END
RSR_SIZE_REQ
RSR_SIZE
RSR_SIZE_END
...

happy benchmarking,

rick jones

  reply	other threads:[~2015-04-22 19:26 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-22 19:10 Hal Murray
2015-04-22 19:26 ` Rick Jones [this message]
2015-04-22 19:28 ` Dave Taht
2015-04-22 21:02   ` Eric Dumazet
2015-04-22 21:05     ` Rick Jones
2015-04-22 21:46       ` Eric Dumazet
2015-04-22 22:20         ` Simon Barber
2015-04-22 23:08           ` Eric Dumazet
2015-04-24  4:37       ` Dave Taht
2015-04-24  4:40         ` Dave Taht
2015-04-24 13:50           ` Eric Dumazet
2015-04-24 14:34             ` Dave Taht
2015-04-24 16:31             ` Rick Jones
2015-04-24 18:41               ` Eric Dumazet
2015-04-24  5:23         ` Eric Dumazet
2015-04-22 21:07     ` Steinar H. Gunderson
2015-04-22 21:42       ` Eric Dumazet
2015-04-22 21:47         ` Dave Taht
2015-04-22 22:11         ` 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=5537F5F8.9030101@hp.com \
    --to=rick.jones2@hp.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