From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=fail reason="key not found in DNS" header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202312 header.b=AvGNyVOM; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 9B7B05A0275 for ; Thu, 15 Aug 2024 05:44:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202312; t=1723693446; bh=JDxbFHnP/DIIqrFGXs3AYfcjfWKoPjnqvIBnlYNWgzg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AvGNyVOMvDKs584cqJVj0SbFKQy7phIkOpd/iDvwXA30rzE/tiXf5QGzIHAcyG8PD nyPlPeanMmNxLfkhSY55XitsdEdWJk6Bpyd88jyQn+7IIuTlg+mJDrJSm6pjgFwI4F Fn6sv/3MuNa7fDbLC1f9Oq7ZVbfKaHLrf4HaP42GBOBjLInxegYg4zSFRSK3gHOQtf tA914mgijVamYVqsOgy1LFerL9COdL1pBI97eZtq4nNDF1JjK5zawQdzGmBJOSmR8d sbCB8j7WTLxmb75gZCCH8ZgSoQz0xEHKVjIN6B1q/fSaVuwjYJpkXUxhaTaEWOmkkq M3YnlpeWJyEig== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4WkrZt360Kz4x0t; Thu, 15 Aug 2024 13:44:06 +1000 (AEST) Date: Thu, 15 Aug 2024 13:43:58 +1000 From: David Gibson To: Stefano Brivio Subject: Re: [PATCH] test: Speed up by cutting on eye candy and performance test duration Message-ID: References: <20240814225444.3708305-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="k4WTTfeyQeeOY+QT" Content-Disposition: inline In-Reply-To: <20240814225444.3708305-1-sbrivio@redhat.com> Message-ID-Hash: JLWVSEVJKEJIBQVFGQRNDOQQG3RGVYBS X-Message-ID-Hash: JLWVSEVJKEJIBQVFGQRNDOQQG3RGVYBS X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --k4WTTfeyQeeOY+QT Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 15, 2024 at 12:54:43AM +0200, Stefano Brivio wrote: > We have a number of delays when we switch to new layouts that were > added to make the tests visually easier to follow, together with > blinking status bars. Shorten the delays and avoid blinking the > status bar if $FAST is set to 1 (no demo mode). >=20 > Shorten delays in busy loops to 10ms, instead of 100ms, and skip the > one-second fixed delay when we wait for the status of a command. >=20 > Cut the duration of throughput and latency tests to one second, down > from ten. Somewhat surprisingly, the results we get are rather > consistent, and not significantly different from what we'd get with > 10 seconds. >=20 > This, together with Podman's commit 20f3e8909e3a ("test/system: > pasta_test_do add explicit port check"), cuts the time needed on my > setup for full test run from approximately 37 minutes to...: >=20 > $ time ./run > [exited] > PASS: 165, FAIL: 0 > Log at /home/sbrivio/passt/test/test_logs/test.log >=20 > real 15m34.253s > user 0m0.011s > sys 0m0.011s >=20 > Signed-off-by: Stefano Brivio Marvelous! Reviewed-by: David Gibson Tested-by: David Gibson > --- > test/lib/layout | 14 +++++++------- > test/lib/term | 31 +++++++++++++++---------------- > test/lib/test | 2 +- > test/pasta_options/log_to_file | 4 ++-- > test/perf/passt_tcp | 18 +++++++++--------- > test/perf/passt_udp | 2 +- > test/perf/pasta_tcp | 34 +++++++++++++++++----------------- > test/perf/pasta_udp | 2 +- > 8 files changed, 53 insertions(+), 54 deletions(-) >=20 > diff --git a/test/lib/layout b/test/lib/layout > index f9a1cf1..4d03572 100644 > --- a/test/lib/layout > +++ b/test/lib/layout > @@ -15,7 +15,7 @@ > =20 > # layout_pasta() - Panes for host, pasta, and separate one for namespace > layout_pasta() { > - sleep 3 > + sleep 1 > =20 > tmux kill-pane -a -t 0 > cmd_write 0 clear > @@ -46,7 +46,7 @@ layout_pasta() { > =20 > # layout_passt() - Panes for host, passt, and guest > layout_passt() { > - sleep 3 > + sleep 1 > =20 > tmux kill-pane -a -t 0 > cmd_write 0 clear > @@ -77,7 +77,7 @@ layout_passt() { > =20 > # layout_passt_in_pasta() - Host, passt within pasta, namespace and guest > layout_passt_in_pasta() { > - sleep 3 > + sleep 1 > =20 > tmux kill-pane -a -t 0 > cmd_write 0 clear > @@ -113,7 +113,7 @@ layout_passt_in_pasta() { > =20 > # layout_two_guests() - Two guest panes, two passt panes, plus host and = log > layout_two_guests() { > - sleep 3 > + sleep 1 > =20 > tmux kill-pane -a -t 0 > cmd_write 0 clear > @@ -152,7 +152,7 @@ layout_two_guests() { > =20 > # layout_demo_pasta() - Four panes for pasta demo > layout_demo_pasta() { > - sleep 3 > + sleep 1 > =20 > cmd_write 0 cd ${BASEPATH} > cmd_write 0 clear > @@ -188,7 +188,7 @@ layout_demo_pasta() { > =20 > # layout_demo_passt() - Four panes for passt demo > layout_demo_passt() { > - sleep 3 > + sleep 1 > =20 > cmd_write 0 cd ${BASEPATH} > cmd_write 0 clear > @@ -224,7 +224,7 @@ layout_demo_passt() { > =20 > # layout_demo_podman() - Four panes for pasta demo with Podman > layout_demo_podman() { > - sleep 3 > + sleep 1 > =20 > cmd_write 0 cd ${BASEPATH} > cmd_write 0 clear > diff --git a/test/lib/term b/test/lib/term > index 262937e..3834092 100755 > --- a/test/lib/term > +++ b/test/lib/term > @@ -97,7 +97,6 @@ display_delay() { > switch_pane() { > tmux select-pane -t ${1} > PR_DELAY=3D${PR_DELAY_INIT} > - display_delay "0.2" > } > =20 > # cmd_write() - Write a command to a pane, letter by letter, and execute= it > @@ -199,7 +198,7 @@ pane_run() { > # $1: Pane name > pane_wait() { > __lc=3D"$(echo "${1}" | tr [A-Z] [a-z])" > - sleep 0.1 || sleep 1 > + sleep 0.01 || sleep 1 > =20 > __done=3D0 > while > @@ -207,7 +206,7 @@ pane_wait() { > case ${__l} in > *"$ " | *"# ") return ;; > esac > - do sleep 0.1 || sleep 1; done > + do sleep 0.01 || sleep 1; done > } > =20 > # pane_parse() - Print last line, @EMPTY@ if command had no output > @@ -231,7 +230,7 @@ pane_status() { > =20 > __status=3D"$(pane_parse "${1}")" > while ! [ "${__status}" -eq "${__status}" ] 2>/dev/null; do > - sleep 1 > + sleep 0.01 || sleep 1 > pane_run "${1}" 'echo $?' > pane_wait "${1}" > __status=3D"$(pane_parse "${1}")" > @@ -383,6 +382,16 @@ info_check_failed() { > printf " < failed.\n" >> "${LOGFILE}" > } > =20 > +# status_bar_blink() - Make status bar blink > +status_bar_blink() { > + for i in `seq 1 3`; do > + tmux set status-right-style 'bg=3Dcolour1 fg=3Dcolour196 bold' > + sleep 0.1 || sleep 1 > + tmux set status-right-style 'bg=3Dcolour1 fg=3Dcolour233 bold' > + sleep 0.1 || sleep 1 > + done > +} > + > # info_passed() - Display, log, and make status bar blink when a test pa= sses > info_passed() { > switch_pane ${PANE_INFO} > @@ -391,12 +400,7 @@ info_passed() { > log "...passed." > log > =20 > - for i in `seq 1 3`; do > - tmux set status-right-style 'bg=3Dcolour1 fg=3Dcolour2 bold' > - sleep "0.1" > - tmux set status-right-style 'bg=3Dcolour1 fg=3Dcolour233 bold' > - sleep "0.1" > - done > + [ ${FAST} -eq 1 ] || status_bar_blink > } > =20 > # info_failed() - Display, log, and make status bar blink when a test pa= sses > @@ -407,12 +411,7 @@ info_failed() { > log "...failed." > log > =20 > - for i in `seq 1 3`; do > - tmux set status-right-style 'bg=3Dcolour1 fg=3Dcolour196 bold' > - sleep "0.1" > - tmux set status-right-style 'bg=3Dcolour1 fg=3Dcolour233 bold' > - sleep "0.1" > - done > + [ ${FAST} -eq 1 ] || status_bar_blink > =20 > pause_continue \ > "Press any key to pause test session" \ > diff --git a/test/lib/test b/test/lib/test > index c525f8e..e6726be 100755 > --- a/test/lib/test > +++ b/test/lib/test > @@ -33,7 +33,7 @@ test_iperf3k() { > =20 > pane_or_context_run "${__sctx}" 'kill -INT $(cat s.pid); rm s.pid' > =20 > - sleep 3 # Wait for kernel to free up ports > + sleep 1 # Wait for kernel to free up ports > } > =20 > # test_iperf3() - Ugly helper for iperf3 directive > diff --git a/test/pasta_options/log_to_file b/test/pasta_options/log_to_f= ile > index fe50e50..3ead06c 100644 > --- a/test/pasta_options/log_to_file > +++ b/test/pasta_options/log_to_file > @@ -19,7 +19,7 @@ sleep 1 > endef > =20 > def flood_log_client > -host tcp_crr --nolog -P 10001 -C 10002 -6 -c -H ::1 > +host tcp_crr --nolog -l1 -P 10001 -C 10002 -6 -c -H ::1 > endef > =20 > def check_log_size_mountns > @@ -42,7 +42,7 @@ pout PID2 echo $! > check head -1 __LOG_FILE__ | grep '^pasta .* [(]__PID2__[)]$' > =20 > test Maximum log size > -passtb ./pasta --config-net -d -f -l __LOG_FILE__ --log-size $((100 * 10= 24)) -- sh -c 'while true; do tcp_crr --nolog -P 10001 -C 10002 -6; done' > +passtb ./pasta --config-net -d -f -l __LOG_FILE__ --log-size $((100 * 10= 24)) -- sh -c 'while true; do tcp_crr --nolog -l1 -P 10001 -C 10002 -6; don= e' > sleep 1 > =20 > flood_log_client > diff --git a/test/perf/passt_tcp b/test/perf/passt_tcp > index 14343cb..695479f 100644 > --- a/test/perf/passt_tcp > +++ b/test/perf/passt_tcp > @@ -38,7 +38,7 @@ hout FREQ_CPUFREQ (echo "scale=3D1"; printf '( %i + 10^= 5 / 2 ) / 10^6\n' $(cat /sy > hout FREQ [ -n "__FREQ_CPUFREQ__" ] && echo __FREQ_CPUFREQ__ || echo __F= REQ_PROCFS__ > =20 > set THREADS 4 > -set TIME 10 > +set TIME 1 > set OMIT 0.1 > set OPTS -Z -P __THREADS__ -l 1M -O__OMIT__ > =20 > @@ -75,7 +75,7 @@ lat - > lat - > lat - > nsb tcp_rr --nolog -6 > -gout LAT tcp_rr --nolog -6 -c -H __GW6__%__IFNAME__ | sed -n 's/^through= put=3D\(.*\)/\1/p' > +gout LAT tcp_rr --nolog -l1 -6 -c -H __GW6__%__IFNAME__ | sed -n 's/^thr= oughput=3D\(.*\)/\1/p' > lat __LAT__ 200 150 > =20 > tl TCP CRR latency over IPv6: guest to host > @@ -85,7 +85,7 @@ lat - > lat - > lat - > nsb tcp_crr --nolog -6 > -gout LAT tcp_crr --nolog -6 -c -H __GW6__%__IFNAME__ | sed -n 's/^throug= hput=3D\(.*\)/\1/p' > +gout LAT tcp_crr --nolog -l1 -6 -c -H __GW6__%__IFNAME__ | sed -n 's/^th= roughput=3D\(.*\)/\1/p' > lat __LAT__ 500 400 > =20 > tr TCP throughput over IPv4: guest to host > @@ -119,7 +119,7 @@ lat - > lat - > lat - > nsb tcp_rr --nolog -4 > -gout LAT tcp_rr --nolog -4 -c -H __GW__ | sed -n 's/^throughput=3D\(.*\)= /\1/p' > +gout LAT tcp_rr --nolog -l1 -4 -c -H __GW__ | sed -n 's/^throughput=3D\(= =2E*\)/\1/p' > lat __LAT__ 200 150 > =20 > tl TCP CRR latency over IPv4: guest to host > @@ -129,7 +129,7 @@ lat - > lat - > lat - > nsb tcp_crr --nolog -4 > -gout LAT tcp_crr --nolog -4 -c -H __GW__ | sed -n 's/^throughput=3D\(.*\= )/\1/p' > +gout LAT tcp_crr --nolog -l1 -4 -c -H __GW__ | sed -n 's/^throughput=3D\= (.*\)/\1/p' > lat __LAT__ 500 400 > =20 > tr TCP throughput over IPv6: host to guest > @@ -153,7 +153,7 @@ lat - > lat - > guestb tcp_rr --nolog -P 10001 -C 10011 -6 > sleep 1 > -nsout LAT tcp_rr --nolog -P 10001 -C 10011 -6 -c -H ::1 | sed -n 's/^thr= oughput=3D\(.*\)/\1/p' > +nsout LAT tcp_rr --nolog -l1 -P 10001 -C 10011 -6 -c -H ::1 | sed -n 's/= ^throughput=3D\(.*\)/\1/p' > lat __LAT__ 200 150 > =20 > tl TCP CRR latency over IPv6: host to guest > @@ -164,7 +164,7 @@ lat - > lat - > guestb tcp_crr --nolog -P 10001 -C 10011 -6 > sleep 1 > -nsout LAT tcp_crr --nolog -P 10001 -C 10011 -6 -c -H ::1 | sed -n 's/^th= roughput=3D\(.*\)/\1/p' > +nsout LAT tcp_crr --nolog -l1 -P 10001 -C 10011 -6 -c -H ::1 | sed -n 's= /^throughput=3D\(.*\)/\1/p' > lat __LAT__ 500 350 > =20 > =20 > @@ -189,7 +189,7 @@ lat - > lat - > guestb tcp_rr --nolog -P 10001 -C 10011 -4 > sleep 1 > -nsout LAT tcp_rr --nolog -P 10001 -C 10011 -4 -c -H 127.0.0.1 | sed -n '= s/^throughput=3D\(.*\)/\1/p' > +nsout LAT tcp_rr --nolog -l1 -P 10001 -C 10011 -4 -c -H 127.0.0.1 | sed = -n 's/^throughput=3D\(.*\)/\1/p' > lat __LAT__ 200 150 > =20 > tl TCP CRR latency over IPv6: host to guest > @@ -200,7 +200,7 @@ lat - > lat - > guestb tcp_crr --nolog -P 10001 -C 10011 -4 > sleep 1 > -nsout LAT tcp_crr --nolog -P 10001 -C 10011 -4 -c -H 127.0.0.1 | sed -n = 's/^throughput=3D\(.*\)/\1/p' > +nsout LAT tcp_crr --nolog -l1 -P 10001 -C 10011 -4 -c -H 127.0.0.1 | sed= -n 's/^throughput=3D\(.*\)/\1/p' > lat __LAT__ 500 300 > =20 > te > diff --git a/test/perf/passt_udp b/test/perf/passt_udp > index 8919280..f25c903 100644 > --- a/test/perf/passt_udp > +++ b/test/perf/passt_udp > @@ -31,7 +31,7 @@ hout FREQ_CPUFREQ (echo "scale=3D1"; printf '( %i + 10^= 5 / 2 ) / 10^6\n' $(cat /sy > hout FREQ [ -n "__FREQ_CPUFREQ__" ] && echo __FREQ_CPUFREQ__ || echo __F= REQ_PROCFS__ > =20 > set THREADS 2 > -set TIME 10 > +set TIME 1 > set OPTS -u -P __THREADS__ --pacing-timer 1000 > =20 > info Throughput in Gbps, latency in =B5s, __THREADS__ threads at __FREQ_= _ GHz > diff --git a/test/perf/pasta_tcp b/test/perf/pasta_tcp > index 8d2f911..a443f5a 100644 > --- a/test/perf/pasta_tcp > +++ b/test/perf/pasta_tcp > @@ -22,7 +22,7 @@ ns /sbin/sysctl -w net.ipv4.tcp_timestamps=3D0 > =20 > =20 > set THREADS 4 > -set TIME 10 > +set TIME 1 > set OMIT 0.1 > set OPTS -Z -w 4M -l 1M -P __THREADS__ -O__OMIT__ > =20 > @@ -46,13 +46,13 @@ iperf3k host > =20 > tl TCP RR latency over IPv6: ns to host > hostb tcp_rr --nolog -P 10003 -C 10013 -6 > -nsout LAT tcp_rr --nolog -P 10003 -C 10013 -6 -c -H ::1 | sed -n 's/^thr= oughput=3D\(.*\)/\1/p' > +nsout LAT tcp_rr --nolog -l1 -P 10003 -C 10013 -6 -c -H ::1 | sed -n 's/= ^throughput=3D\(.*\)/\1/p' > hostw > lat __LAT__ 150 100 > =20 > tl TCP CRR latency over IPv6: ns to host > hostb tcp_crr --nolog -P 10003 -C 10013 -6 > -nsout LAT tcp_crr --nolog -P 10003 -C 10013 -6 -c -H ::1 | sed -n 's/^th= roughput=3D\(.*\)/\1/p' > +nsout LAT tcp_crr --nolog -l1 -P 10003 -C 10013 -6 -c -H ::1 | sed -n 's= /^throughput=3D\(.*\)/\1/p' > hostw > lat __LAT__ 500 350 > =20 > @@ -67,13 +67,13 @@ iperf3k host > =20 > tl TCP RR latency over IPv4: ns to host > hostb tcp_rr --nolog -P 10003 -C 10013 -4 > -nsout LAT tcp_rr --nolog -P 10003 -C 10013 -4 -c -H 127.0.0.1 | sed -n '= s/^throughput=3D\(.*\)/\1/p' > +nsout LAT tcp_rr --nolog -l1 -P 10003 -C 10013 -4 -c -H 127.0.0.1 | sed = -n 's/^throughput=3D\(.*\)/\1/p' > hostw > lat __LAT__ 150 100 > =20 > tl TCP CRR latency over IPv4: ns to host > hostb tcp_crr --nolog -P 10003 -C 10013 -4 > -nsout LAT tcp_crr --nolog -P 10003 -C 10013 -4 -c -H 127.0.0.1 | sed -n = 's/^throughput=3D\(.*\)/\1/p' > +nsout LAT tcp_crr --nolog -l1 -P 10003 -C 10013 -4 -c -H 127.0.0.1 | sed= -n 's/^throughput=3D\(.*\)/\1/p' > hostw > lat __LAT__ 500 350 > =20 > @@ -87,13 +87,13 @@ iperf3k ns > =20 > tl TCP RR latency over IPv6: host to ns > nsb tcp_rr --nolog -P 10002 -C 10012 -6 > -hout LAT tcp_rr --nolog -P 10002 -C 10012 -6 -c -H ::1 | sed -n 's/^thro= ughput=3D\(.*\)/\1/p' > +hout LAT tcp_rr --nolog -l1 -P 10002 -C 10012 -6 -c -H ::1 | sed -n 's/^= throughput=3D\(.*\)/\1/p' > nsw > lat __LAT__ 150 100 > =20 > tl TCP CRR latency over IPv6: host to ns > nsb tcp_crr --nolog -P 10002 -C 10012 -6 > -hout LAT tcp_crr --nolog -P 10002 -C 10012 -6 -c -H ::1 | sed -n 's/^thr= oughput=3D\(.*\)/\1/p' > +hout LAT tcp_crr --nolog -l1 -P 10002 -C 10012 -6 -c -H ::1 | sed -n 's/= ^throughput=3D\(.*\)/\1/p' > nsw > lat __LAT__ 1000 700 > =20 > @@ -108,13 +108,13 @@ iperf3k ns > =20 > tl TCP RR latency over IPv4: host to ns > nsb tcp_rr --nolog -P 10002 -C 10012 -4 > -hout LAT tcp_rr --nolog -P 10002 -C 10012 -4 -c -H 127.0.0.1 | sed -n 's= /^throughput=3D\(.*\)/\1/p' > +hout LAT tcp_rr --nolog -l1 -P 10002 -C 10012 -4 -c -H 127.0.0.1 | sed -= n 's/^throughput=3D\(.*\)/\1/p' > nsw > lat __LAT__ 150 100 > =20 > tl TCP CRR latency over IPv4: host to ns > nsb tcp_crr --nolog -P 10002 -C 10012 -4 > -hout LAT tcp_crr --nolog -P 10002 -C 10012 -4 -c -H 127.0.0.1 | sed -n '= s/^throughput=3D\(.*\)/\1/p' > +hout LAT tcp_crr --nolog -l1 -P 10002 -C 10012 -4 -c -H 127.0.0.1 | sed = -n 's/^throughput=3D\(.*\)/\1/p' > nsw > lat __LAT__ 1000 700 > =20 > @@ -156,7 +156,7 @@ lat - > lat - > lat - > hostb tcp_rr --nolog -P 10003 -C 10013 -6 > -nsout LAT tcp_rr --nolog -P 10003 -C 10013 -6 -c -H __GW6__%__IFNAME__ |= sed -n 's/^throughput=3D\(.*\)/\1/p' > +nsout LAT tcp_rr --nolog -l1 -P 10003 -C 10013 -6 -c -H __GW6__%__IFNAME= __ | sed -n 's/^throughput=3D\(.*\)/\1/p' > hostw > lat __LAT__ 150 100 > =20 > @@ -165,7 +165,7 @@ lat - > lat - > lat - > hostb tcp_crr --nolog -P 10003 -C 10013 -6 > -nsout LAT tcp_crr --nolog -P 10003 -C 10013 -6 -c -H __GW6__%__IFNAME__ = | sed -n 's/^throughput=3D\(.*\)/\1/p' > +nsout LAT tcp_crr --nolog -l1 -P 10003 -C 10013 -6 -c -H __GW6__%__IFNAM= E__ | sed -n 's/^throughput=3D\(.*\)/\1/p' > hostw > lat __LAT__ 1500 500 > =20 > @@ -193,7 +193,7 @@ lat - > lat - > lat - > hostb tcp_rr --nolog -P 10003 -C 10013 -4 > -nsout LAT tcp_rr --nolog -P 10003 -C 10013 -4 -c -H __GW__ | sed -n 's/^= throughput=3D\(.*\)/\1/p' > +nsout LAT tcp_rr --nolog -l1 -P 10003 -C 10013 -4 -c -H __GW__ | sed -n = 's/^throughput=3D\(.*\)/\1/p' > hostw > lat __LAT__ 150 100 > =20 > @@ -202,7 +202,7 @@ lat - > lat - > lat - > hostb tcp_crr --nolog -P 10003 -C 10013 -4 > -nsout LAT tcp_crr --nolog -P 10003 -C 10013 -4 -c -H __GW__ | sed -n 's/= ^throughput=3D\(.*\)/\1/p' > +nsout LAT tcp_crr --nolog -l1 -P 10003 -C 10013 -4 -c -H __GW__ | sed -n= 's/^throughput=3D\(.*\)/\1/p' > hostw > lat __LAT__ 1500 500 > =20 > @@ -224,7 +224,7 @@ lat - > lat - > lat - > nsb tcp_rr --nolog -P 10002 -C 10012 -6 > -hout LAT tcp_rr --nolog -P 10002 -C 10012 -6 -c -H __ADDR6__ | sed -n 's= /^throughput=3D\(.*\)/\1/p' > +hout LAT tcp_rr --nolog -l1 -P 10002 -C 10012 -6 -c -H __ADDR6__ | sed -= n 's/^throughput=3D\(.*\)/\1/p' > nsw > lat __LAT__ 150 100 > =20 > @@ -234,7 +234,7 @@ lat - > lat - > sleep 1 > nsb tcp_crr --nolog -P 10002 -C 10012 -6 > -hout LAT tcp_crr --nolog -P 10002 -C 10012 -6 -c -H __ADDR6__ | sed -n '= s/^throughput=3D\(.*\)/\1/p' > +hout LAT tcp_crr --nolog -l1 -P 10002 -C 10012 -6 -c -H __ADDR6__ | sed = -n 's/^throughput=3D\(.*\)/\1/p' > nsw > lat __LAT__ 5000 10000 > =20 > @@ -256,7 +256,7 @@ lat - > lat - > lat - > nsb tcp_rr --nolog -P 10002 -C 10012 -4 > -hout LAT tcp_rr --nolog -P 10002 -C 10012 -4 -c -H __ADDR__ | sed -n 's/= ^throughput=3D\(.*\)/\1/p' > +hout LAT tcp_rr --nolog -l1 -P 10002 -C 10012 -4 -c -H __ADDR__ | sed -n= 's/^throughput=3D\(.*\)/\1/p' > nsw > lat __LAT__ 150 100 > =20 > @@ -266,7 +266,7 @@ lat - > lat - > sleep 1 > nsb tcp_crr --nolog -P 10002 -C 10012 -4 > -hout LAT tcp_crr --nolog -P 10002 -C 10012 -4 -c -H __ADDR__ | sed -n 's= /^throughput=3D\(.*\)/\1/p' > +hout LAT tcp_crr --nolog -l1 -P 10002 -C 10012 -4 -c -H __ADDR__ | sed -= n 's/^throughput=3D\(.*\)/\1/p' > nsw > lat __LAT__ 5000 10000 > =20 > diff --git a/test/perf/pasta_udp b/test/perf/pasta_udp > index 6acbfd3..9fed62e 100644 > --- a/test/perf/pasta_udp > +++ b/test/perf/pasta_udp > @@ -21,7 +21,7 @@ hout FREQ_CPUFREQ (echo "scale=3D1"; printf '( %i + 10^= 5 / 2 ) / 10^6\n' $(cat /sy > hout FREQ [ -n "__FREQ_CPUFREQ__" ] && echo __FREQ_CPUFREQ__ || echo __F= REQ_PROCFS__ > =20 > set THREADS 1 > -set TIME 10 > +set TIME 1 > set OPTS -u -P __THREADS__ > =20 > info Throughput in Gbps, latency in =B5s, one thread at __FREQ__ GHz --=20 David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson --k4WTTfeyQeeOY+QT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAma9eX0ACgkQzQJF27ox 2GezMRAAqmB+HSVVbhHqDKFRtvEG1FgOtfJwTLiCAMuogfiXaoO6W7AaLKzVEn/O AYCXNsR11KYgjvWr4ql8MIBBpc6eYmFv7bVePdfbpaVKwWGWd3UU9Gt1fpI4KR5y 4IiJUen+E8BbqVcxipvdA4npKw/QFpqddr76GNA4mU82/CyKgQvQYB8/7NqXJ832 9EyMyWd19S0Q5KOUCu6Q3s6bjY7L6bKh/N5dVHGEJ7Tc9ibpSHYDPVpBWxNRH3Xc 22clEqOnIBNeSL2OR742XrpfPVjfwl/uGuEQxofois0SemIdCeve8eVVQYX4ujR5 HVlu66r4QcLiJZqEw8Qt4nSLUhINUIjf7Fc9rtjcu9gW3UYhTf5yjZIVP5rZvBNJ SxcEFrrw5n2AXG8daFWVTicH6ZtPONP5kXqBphzIf6jMZgjsehjNO9DMA3J6/4u2 l6wyJL1KOI6DZlZGJRWT2gZtaqxn62Ys9RA1lwU4gWmG94+W9y7nJgt8WJQX+cld zs97RxaiB+zykve2C2Vsi6t1no+6Mp+10FSlYrIt7IcqwVds6tjw8y756IpPpYwb vdHcKPPrqNTZDZi+v2ZSyZU4jof+/mijti8IKxDwHY9hDCXOyugf5c9a+eWd6Qcj XBoehk0/Uc7/LEdt/okypwcVAu9JKMV0nBIIKOEQU84+9hdBA3Y= =CoMI -----END PGP SIGNATURE----- --k4WTTfeyQeeOY+QT--