public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH] perf/passt_vu_tcp: Make it shine
@ 2024-11-28 14:07 Stefano Brivio
  0 siblings, 0 replies; only message in thread
From: Stefano Brivio @ 2024-11-28 14:07 UTC (permalink / raw)
  To: passt-dev

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
---
 test/perf/passt_vu_tcp | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/test/perf/passt_vu_tcp b/test/perf/passt_vu_tcp
index b434008..c4409b9 100644
--- a/test/perf/passt_vu_tcp
+++ b/test/perf/passt_vu_tcp
@@ -38,10 +38,10 @@ hout	FREQ_PROCFS (echo "scale=1"; sed -n 's/cpu MHz.*: \([0-9]*\)\..*$/(\1+10^2\
 hout	FREQ_CPUFREQ (echo "scale=1"; printf '( %i + 10^5 / 2 ) / 10^6\n' $(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq) ) | bc -l
 hout	FREQ [ -n "__FREQ_CPUFREQ__" ] && echo __FREQ_CPUFREQ__ || echo __FREQ_PROCFS__
 
-set	THREADS 4
-set	TIME 5
+set	THREADS 6
+set	TIME 2
 set	OMIT 0.1
-set	OPTS -Z -P __THREADS__ -l 1M -O__OMIT__ -N
+set	OPTS -Z -P __THREADS__ -O__OMIT__ -N
 
 info	Throughput in Gbps, latency in µs, __THREADS__ threads at __FREQ__ GHz
 report	passt_vu tcp __THREADS__ __FREQ__
@@ -55,16 +55,16 @@ iperf3s	ns 10002
 bw	-
 bw	-
 guest	ip link set dev __IFNAME__ mtu 1280
-iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 16M
+iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 16M -l 1M
 bw	__BW__ 1.2 1.5
 guest	ip link set dev __IFNAME__ mtu 1500
-iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 32M
+iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 32M -l 1M
 bw	__BW__ 1.6 1.8
 guest	ip link set dev __IFNAME__ mtu 9000
-iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 64M
+iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 64M -l 1M
 bw	__BW__ 4.0 5.0
 guest	ip link set dev __IFNAME__ mtu 65520
-iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 64M
+iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 64M -l 1M
 bw	__BW__ 7.0 8.0
 
 iperf3k	ns
@@ -93,22 +93,22 @@ tr	TCP throughput over IPv4: guest to host
 iperf3s	ns 10002
 
 guest	ip link set dev __IFNAME__ mtu 256
-iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 2M
+iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 2M -l 1M
 bw	__BW__ 0.2 0.3
 guest	ip link set dev __IFNAME__ mtu 576
-iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 4M
+iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 4M -l 1M
 bw	__BW__ 0.5 0.8
 guest	ip link set dev __IFNAME__ mtu 1280
-iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 8M
+iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 8M -l 1M
 bw	__BW__ 1.2 1.5
 guest	ip link set dev __IFNAME__ mtu 1500
-iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 16M
+iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 16M -l 1M
 bw	__BW__ 1.6 1.8
 guest	ip link set dev __IFNAME__ mtu 9000
-iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 64M
+iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 64M -l 1M
 bw	__BW__ 4.0 5.0
 guest	ip link set dev __IFNAME__ mtu 65520
-iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 64M
+iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 64M -l 1M
 bw	__BW__ 7.0 8.0
 
 iperf3k	ns
@@ -145,7 +145,7 @@ bw	-
 bw	-
 bw	-
 bw	-
-iperf3	BW ns ::1 10001 __TIME__ __OPTS__ -w 32M
+iperf3	BW ns ::1 10001 __TIME__ __OPTS__ -w 256M -l 16k
 bw	__BW__ 6.0 6.8
 
 iperf3k	guest
@@ -181,7 +181,7 @@ bw	-
 bw	-
 bw	-
 bw	-
-iperf3	BW ns 127.0.0.1 10001 __TIME__ __OPTS__ -w 32M
+iperf3	BW ns 127.0.0.1 10001 __TIME__ __OPTS__ -w 256M -l 16k
 bw	__BW__ 6.0 6.8
 
 iperf3k	guest
-- 
@@ -38,10 +38,10 @@ hout	FREQ_PROCFS (echo "scale=1"; sed -n 's/cpu MHz.*: \([0-9]*\)\..*$/(\1+10^2\
 hout	FREQ_CPUFREQ (echo "scale=1"; printf '( %i + 10^5 / 2 ) / 10^6\n' $(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq) ) | bc -l
 hout	FREQ [ -n "__FREQ_CPUFREQ__" ] && echo __FREQ_CPUFREQ__ || echo __FREQ_PROCFS__
 
-set	THREADS 4
-set	TIME 5
+set	THREADS 6
+set	TIME 2
 set	OMIT 0.1
-set	OPTS -Z -P __THREADS__ -l 1M -O__OMIT__ -N
+set	OPTS -Z -P __THREADS__ -O__OMIT__ -N
 
 info	Throughput in Gbps, latency in µs, __THREADS__ threads at __FREQ__ GHz
 report	passt_vu tcp __THREADS__ __FREQ__
@@ -55,16 +55,16 @@ iperf3s	ns 10002
 bw	-
 bw	-
 guest	ip link set dev __IFNAME__ mtu 1280
-iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 16M
+iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 16M -l 1M
 bw	__BW__ 1.2 1.5
 guest	ip link set dev __IFNAME__ mtu 1500
-iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 32M
+iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 32M -l 1M
 bw	__BW__ 1.6 1.8
 guest	ip link set dev __IFNAME__ mtu 9000
-iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 64M
+iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 64M -l 1M
 bw	__BW__ 4.0 5.0
 guest	ip link set dev __IFNAME__ mtu 65520
-iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 64M
+iperf3	BW guest __MAP_NS6__ 10002 __TIME__ __OPTS__ -w 64M -l 1M
 bw	__BW__ 7.0 8.0
 
 iperf3k	ns
@@ -93,22 +93,22 @@ tr	TCP throughput over IPv4: guest to host
 iperf3s	ns 10002
 
 guest	ip link set dev __IFNAME__ mtu 256
-iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 2M
+iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 2M -l 1M
 bw	__BW__ 0.2 0.3
 guest	ip link set dev __IFNAME__ mtu 576
-iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 4M
+iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 4M -l 1M
 bw	__BW__ 0.5 0.8
 guest	ip link set dev __IFNAME__ mtu 1280
-iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 8M
+iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 8M -l 1M
 bw	__BW__ 1.2 1.5
 guest	ip link set dev __IFNAME__ mtu 1500
-iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 16M
+iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 16M -l 1M
 bw	__BW__ 1.6 1.8
 guest	ip link set dev __IFNAME__ mtu 9000
-iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 64M
+iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 64M -l 1M
 bw	__BW__ 4.0 5.0
 guest	ip link set dev __IFNAME__ mtu 65520
-iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 64M
+iperf3	BW guest __MAP_NS4__ 10002 __TIME__ __OPTS__ -w 64M -l 1M
 bw	__BW__ 7.0 8.0
 
 iperf3k	ns
@@ -145,7 +145,7 @@ bw	-
 bw	-
 bw	-
 bw	-
-iperf3	BW ns ::1 10001 __TIME__ __OPTS__ -w 32M
+iperf3	BW ns ::1 10001 __TIME__ __OPTS__ -w 256M -l 16k
 bw	__BW__ 6.0 6.8
 
 iperf3k	guest
@@ -181,7 +181,7 @@ bw	-
 bw	-
 bw	-
 bw	-
-iperf3	BW ns 127.0.0.1 10001 __TIME__ __OPTS__ -w 32M
+iperf3	BW ns 127.0.0.1 10001 __TIME__ __OPTS__ -w 256M -l 16k
 bw	__BW__ 6.0 6.8
 
 iperf3k	guest
-- 
2.43.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-28 14:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-28 14:07 [PATCH] perf/passt_vu_tcp: Make it shine Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

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 IMAP folder(s).