From: Rick Jones <rick.jones2@hp.com>
To: Glauber Costa <glommer@parallels.com>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
containers@lists.osdl.org, netdev@vger.kernel.org,
xemul@parallels.com, "David S. Miller" <davem@davemloft.net>,
Hiroyouki Kamezawa <kamezawa.hiroyu@jp.fujitsu.com>,
"Eric W. Biederman" <ebiederm@xmission.com>
Subject: Re: [PATCH] per-cgroup tcp buffer limitation
Date: Thu, 08 Sep 2011 17:18:05 -0700 [thread overview]
Message-ID: <4E695B3D.7060804@hp.com> (raw)
In-Reply-To: <1315276556-10970-1-git-send-email-glommer@parallels.com>
On 09/05/2011 07:35 PM, Glauber Costa wrote:
> To test for any performance impacts of this patch, I used netperf's
> TCP_RR benchmark on localhost, so we can have both recv and snd in action.
>
> Command line used was ./src/netperf -t TCP_RR -H localhost, and the
> results:
>
> Without the patch
> =================
>
> Socket Size Request Resp. Elapsed Trans.
> Send Recv Size Size Time Rate
> bytes Bytes bytes bytes secs. per sec
>
> 16384 87380 1 1 10.00 26996.35
> 16384 87380
>
> With the patch
> ===============
>
> Local /Remote
> Socket Size Request Resp. Elapsed Trans.
> Send Recv Size Size Time Rate
> bytes Bytes bytes bytes secs. per sec
>
> 16384 87380 1 1 10.00 27291.86
> 16384 87380
Comment about netperf TCP_RR - it can often have > 1% variability, so it
would be a Good Idea (tm) to either run it multiple times in a row, or
rely on the confidence intervals functionality. Here, for example, is
an invoking of netperf using confidence intervals and the recently
added, related output selectors. The options request that netperf be
99% confident that the width of the confidence interval is 1%, and it
should run at least 3 but no more than 30 (those are both the high and
low limits respectively) iterations of the test.
raj@tardy:~/netperf2_trunk$ src/netperf -t TCP_RR -i 30,3 -I 99,1 -- -k
throughput,confidence_level,confidence_interval,confidence_iteration,throughput_confid
MIGRATED TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET
to localhost.localdomain (127.0.0.1) port 0 AF_INET : +/-0.500% @ 99%
conf. : histogram : first burst 0
THROUGHPUT=55555.94
CONFIDENCE_LEVEL=99
CONFIDENCE_INTERVAL=1.000000
CONFIDENCE_ITERATION=26
THROUGHPUT_CONFID=0.984
it took 26 iterations for netperf to be 99% confident the interval width
was < 1% . Here is a "several times in a row" for the sake of completeness:
raj@tardy:~/netperf2_trunk$ HDR="-P 1";for i in `seq 1 10`; do netperf
-t TCP_RR $HDR -B "iteration $i" -- -o result_brand,throughput; HDR="-P
0"; done
MIGRATED TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET
to localhost.localdomain (127.0.0.1) port 0 AF_INET : first burst 0
Result Tag,Throughput
"iteration 1",55768.37
"iteration 2",55949.97
"iteration 3",55653.36
"iteration 4",55994.65
"iteration 5",54712.42
"iteration 6",55285.27
"iteration 7",55638.65
"iteration 8",55135.56
"iteration 9",56275.87
"iteration 10",55607.66
That way one can have greater confidence that one isn't accidentally
comparing the trough of one configuration with the peak of another.
happy benchmarking,
rick jones
PS - while it may not really matter for loopback testing, where
presumably 99 times out of 10 a single core will run at saturation, when
running TCP_RR over a "real" network, including CPU utilization to get
the differences in service demand is another Good Idea (tm) -
particularly in the face of interrupt coalescing.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2011-09-09 0:18 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-06 2:35 [PATCH] per-cgroup tcp buffer limitation Glauber Costa
2011-09-06 10:00 ` KAMEZAWA Hiroyuki
2011-09-06 15:28 ` Glauber Costa
2011-09-06 22:52 ` Glauber Costa
2011-09-06 16:08 ` Greg Thelen
2011-09-06 16:16 ` Glauber Costa
2011-09-06 22:12 ` Greg Thelen
2011-09-06 22:37 ` Glauber Costa
2011-09-07 21:35 ` Greg Thelen
2011-09-08 4:44 ` Glauber Costa
2011-09-08 21:53 ` Greg Thelen
2011-09-09 4:17 ` Glauber Costa
2011-09-09 23:38 ` Greg Thelen
2011-09-12 16:30 ` Glauber Costa
2011-09-12 5:03 ` Paul Menage
2011-09-12 16:57 ` Glauber Costa
2011-09-13 6:56 ` Greg Thelen
2011-09-13 18:09 ` Paul Menage
2011-09-13 18:11 ` Glauber Costa
2011-09-13 18:46 ` Paul Menage
2011-09-13 19:08 ` Glauber Costa
2011-09-07 2:38 ` Eric Dumazet
2011-09-07 1:08 ` Paul Menage
2011-09-07 1:09 ` Glauber Costa
2011-09-07 1:29 ` Paul Menage
2011-09-07 1:32 ` Glauber Costa
2011-09-09 0:18 ` Rick Jones [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E695B3D.7060804@hp.com \
--to=rick.jones2@hp.com \
--cc=containers@lists.osdl.org \
--cc=davem@davemloft.net \
--cc=ebiederm@xmission.com \
--cc=glommer@parallels.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=netdev@vger.kernel.org \
--cc=xemul@parallels.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;
as well as URLs for NNTP newsgroup(s).