From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTP id D25235A004E for ; Fri, 09 Aug 2024 00:55:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1723157750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=l1mpGfbBYVFCV0EWZfuzVKlODTuRfms5TQTA+Gtd6pg=; b=GWvI/hSGRa3a3OQv6VApU7CZYhxuWW2w7WRx/AzJAOOvtrYiI2LzX0+QAEB/xTtEL04JOO /S4Wva6t5i2+aGjqTI7r6RexaMj3talfjhml0cSuBAgqR8c6/DtDnMgbC3WHXbKY1byjXh /SalqorIySrtX3BXMEJEn33c7+6f1NQ= Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-22-gFI2_iyXOSKw8j-t1psUOQ-1; Thu, 08 Aug 2024 18:55:46 -0400 X-MC-Unique: gFI2_iyXOSKw8j-t1psUOQ-1 Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-1fc51ea72abso15550395ad.1 for ; Thu, 08 Aug 2024 15:55:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723157745; x=1723762545; h=mime-version:organization:references:in-reply-to:message-id:subject :cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=N+gZl4DdyoVVQJwrOl4Pt0zaf7h9iayfR0bvRrpzNic=; b=SAsMVR88dWxvzf4DwyCvoqe7FUpVPSRzx3ifBrbFYQNKGL8Ir/d/TYeCEBMqc6WbNJ YUIGjaic/sPBcSAGcqm5rtOcCbaLOfIAwfpomVcaR/hnoxNwtq6t87CJIb+R/tdeSmdV RbbcmvHV0m7i3IvKI+k6nDw58WAp1h+V2zUtT3H9F5Jv7D32PL27BwcKj3rVErs6PDm4 s/hEQlbidbaoUX8PgWi0UAQ3O5lxteMEraPgE5s8XqarEUPCBDSO85blIk5fUNUmk1gr P4boq/qOS/q/tKGKuyycr8LU+AxuqpAqRnLl4oRH0helFnwfXrV87KlHY1K7YN0Hh8/F RT/g== X-Gm-Message-State: AOJu0Yw/pCAQSye5KM7fA1meoOVKp7VoZw8NssrZNnhizs+omD0c1pny tQHBHaGosvCw6ZdmMbyV7m+TDPBzBAK9+gGAoBBuiJ4NGEdUKxhhCc0g0FZcgYdViNkMG8pDx4R Gi3CRqmw0IlGvO+TavLSf/dDPb8yDhPfueovHFkvQs8B+bzv9wA== X-Received: by 2002:a17:903:1247:b0:1fd:a412:5dff with SMTP id d9443c01a7336-200952bd177mr45742485ad.43.1723157745165; Thu, 08 Aug 2024 15:55:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFk16nBrZDp2yYK4UrrHeRPw5WZ4IhQVQSq+iYEHu+CusGzRoJiY7p4N3G1boA/hao6P2Q6UQ== X-Received: by 2002:a17:903:1247:b0:1fd:a412:5dff with SMTP id d9443c01a7336-200952bd177mr45742195ad.43.1723157744565; Thu, 08 Aug 2024 15:55:44 -0700 (PDT) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [2a10:fc81:a806:d6a9::1]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ff5929ac42sm130702605ad.267.2024.08.08.15.55.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 15:55:41 -0700 (PDT) Date: Fri, 9 Aug 2024 00:55:37 +0200 From: Stefano Brivio To: David Gibson Subject: Re: [PATCH v2 06/22] test: Add exeter+Avocado based build tests Message-ID: <20240809005537.137f68ce@elisabeth> In-Reply-To: References: <20240805123701.1720730-1-david@gibson.dropbear.id.au> <20240805123701.1720730-7-david@gibson.dropbear.id.au> <20240807001126.5e9a92d3@elisabeth> <20240807150644.5dc22f50@elisabeth> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/mixed; boundary="MP_/QjjiBg3IUW8L/.tIPC+Dkvl" Message-ID-Hash: QJYYU6N4W4OR6L5GUX7EPOOZZJTPME74 X-Message-ID-Hash: QJYYU6N4W4OR6L5GUX7EPOOZZJTPME74 X-MailFrom: sbrivio@redhat.com 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, Cleber Rosa 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: --MP_/QjjiBg3IUW8L/.tIPC+Dkvl Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thu, 8 Aug 2024 11:28:50 +1000 David Gibson wrote: > On Wed, Aug 07, 2024 at 03:06:44PM +0200, Stefano Brivio wrote: > > On Wed, 7 Aug 2024 20:51:08 +1000 > > David Gibson wrote: > > > > > On Wed, Aug 07, 2024 at 12:11:26AM +0200, Stefano Brivio wrote: > > > > On Mon, 5 Aug 2024 22:36:45 +1000 > > > > David Gibson wrote: > > > > > > > > > Add a new test script to run the equivalent of the tests in build/all > > > > > using exeter and Avocado. This new version of the tests is more robust > > > > > than the original, since it makes a temporary copy of the source tree so > > > > > will not be affected by concurrent manual builds. > > > > > > > > I think this is much more readable than the previous Python attempt. > > > > > > That's encouraging. > > > > > > > On the other hand, I guess it's not an ideal candidate for a fair > > > > comparison because this is exactly the kind of stuff where shell > > > > scripting shines: it's a simple test that needs a few basic shell > > > > commands. > > > > > > Right. > > > > > > > On that subject, the shell test is about half the lines of code (just > > > > skipping headers, it's 48 lines instead of 90... and yes, this version > > > > > > Even ignoring the fact that this case is particularly suited to shell, > > > I don't think that's really an accurate comparison, but getting to one > > > is pretty hard. > > > > > > The existing test isn't 48 lines of shell, but of "passt test DSL". > > > There are several hundred additional lines of shell to interpret that. > > > > Yeah, but the 48 lines is all I have to look at, which is what matters > > I would argue. That's exactly why I wrote that interpreter. > > > > Here, it's 90 lines of *test file*. > > Fair point. Fwiw, it's down to 77 so far for my next draft. > > > > Now obviously we don't need all of that for just this test. Likewise > > > the new Python test needs at least exeter - that's only a couple of > > > hundred lines - but also Avocado (huge, but only a small amount is > > > really relevant here). > > > > > > > now uses a copy of the source code, but that would be two lines). > > > > > > I feel like it would be a bit more than two lines, to copy exactly > > > what youwant, and to clean up after yourself. > > > > host mkdir __STATEDIR__/sources > > host cp --parents $(git ls-files) __STATEDIR__/sources > > > > ...which is actually an improvement on the original as __STATEDIR__ can > > be handled in a centralised way, if one wants to keep that after the > > single test case, after the whole test run, or not at all. > > Huh, I didn't know about cp --parents, which does exactly what's > needed. In the Python library there are, alas, several things that do > almost but not quite what's needed. I guess I could just invoke 'cp > --parents' myself. > > > > > In terms of time overhead, dropping delays to make the display capture > > > > nice (a feature that we would anyway lose with exeter plus Avocado, if > > > > I understood correctly): > > > > > > Yes. Unlike you, I'm really not convinced of the value of the display > > > capture versus log files, at least in the majority of cases. > > > > Well, but I use that... > > > > By the way, openQA nowadays takes periodic screenshots. That's certainly > > not as useful, but I'm indeed not the only one who benefits from > > _seeing_ tests as they run instead of correlating log files from > > different contexts, especially when you have a client, a server, and > > what you're testing in between. > > If you have to correlate multiple logs that's a pain, yes. My > approach here is, as much as possible, to have a single "log" > (actually stdout & stderr) from the top level test logic, so the > logical ordering is kind of built in. That's not necessarily helpful: if I have a client and a server, things are much clearer to me if I have two different logs, side-by-side. Even more so if you have a guest, a host, and a namespace "in between". I see the difference as I'm often digging through Podman CI's logs, where there's a single log (including stdout and stderr), because bats doesn't offer a context functionality like we have right now. It's sometimes really not easy to understand what's going on in Podman's tests without copying and pasting into an editor and manually marking things. > > > I certainly don't think it's worth slowing down the test running in the > > > normal case. > > > > It doesn't significantly slow things down, > > It does if you explicitly add delays to make the display capture nice > as mentioned above. Okay, I didn't realise the amount of eye-candy I left in even when ${FAST} is set (which probably only makes sense when run as './ci'). With the patch attached I get: $ time ./run [...] real 17m17.686s user 0m0.010s sys 0m0.014s I also cut the duration of throughput and latency tests down to one second. After we fixed lot of issues in passt, and some in QEMU and kernel, results are now surprisingly consistent. Still, a significant part of it is Podman's tests (which I'm working on speeding up, for the sake of Podman's own CI), and performance tests anyway. Without those: $ time ./run [...] real 5m57.612s user 0m0.011s sys 0m0.009s > > but it certainly makes it > > more complicated to run test cases in parallel... which you can't do > > anyway for throughput and latency tests (which take 22 out of the 37 > > minutes of a current CI run), unless you set up VMs with CPU pinning and > > cgroups, or a server farm. > > So, yes, the perf tests take the majority of the runtime for CI, but > I'm less concerned about runtime for CI tests. I'm more interested in > runtime for a subset of functional tests you can run repeatedly while > developing. I routinely disable the perf and other slow tests, to get > a subset taking 5-7 minutes. That's ok, but I'm pretty confident I > can get better coverage in significantly less time using parallel > tests. Probably, yes, but still I would like to point out that the difference between five and ten minutes is not as relevant in terms of workflow as the difference between one and five minutes. > > I mean, I see the value of running things in parallel in a general > > case, but I don't think you should just ignore everything else. > > > > > > $ time (make clean; make passt; make clean; make pasta; make clean; make qrap; make clean; make; d=$(mktemp -d); prefix=$d make install; prefix=$d make uninstall; ) > > > > [...] > > > > real 0m17.449s > > > > user 0m15.616s > > > > sys 0m2.136s > > > > > > On my system: > > > [...] > > > real 0m20.325s > > > user 0m15.595s > > > sys 0m5.287s > > > > > > > compared to: > > > > > > > > $ time ./run > > > > [...] > > > > real 0m18.217s > > > > user 0m0.010s > > > > sys 0m0.001s > > > > > > > > ...which I would call essentially no overhead. I didn't try out this > > > > version yet, I suspect it would be somewhere in between. > > > > > > Well.. > > > > > > $ time PYTHONPATH=test/exeter/py3 test/venv/bin/avocado run test/build/build.json > > > [...] > > > RESULTS : PASS 5 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0 > > > JOB TIME : 10.85 s > > > > > > real 0m11.000s > > > user 0m23.439s > > > sys 0m7.315s > > > > > > Because parallel. It looks like the avocado start up time is > > > reasonably substantial too, so that should look better with a larger > > > set of tests. > > > > With the current set of tests, I doubt it's ever going to pay off. Even > > if you run the non-perf tests in 10% of the time, it's going to be 24 > > minutes instead of 37. > > Including the perf tests, probably not. Excluding them (which is > extremely useful when actively coding) I think it will. > > > I guess it will start making sense with larger matrices of network > > environments, or with more test cases (but really a lot of them). > > We could certainly do with a lot more tests, though I expect it will > take a while to get them. > -- Stefano --MP_/QjjiBg3IUW8L/.tIPC+Dkvl Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=test_speedup.patch 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() { -=09sleep 3 +=09sleep 1 =20 =09tmux kill-pane -a -t 0 =09cmd_write 0 clear @@ -46,7 +46,7 @@ layout_pasta() { =20 # layout_passt() - Panes for host, passt, and guest layout_passt() { -=09sleep 3 +=09sleep 1 =20 =09tmux kill-pane -a -t 0 =09cmd_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() { -=09sleep 3 +=09sleep 1 =20 =09tmux kill-pane -a -t 0 =09cmd_write 0 clear @@ -113,7 +113,7 @@ layout_passt_in_pasta() { =20 # layout_two_guests() - Two guest panes, two passt panes, plus host and lo= g layout_two_guests() { -=09sleep 3 +=09sleep 1 =20 =09tmux kill-pane -a -t 0 =09cmd_write 0 clear @@ -152,7 +152,7 @@ layout_two_guests() { =20 # layout_demo_pasta() - Four panes for pasta demo layout_demo_pasta() { -=09sleep 3 +=09sleep 1 =20 =09cmd_write 0 cd ${BASEPATH} =09cmd_write 0 clear @@ -188,7 +188,7 @@ layout_demo_pasta() { =20 # layout_demo_passt() - Four panes for passt demo layout_demo_passt() { -=09sleep 3 +=09sleep 1 =20 =09cmd_write 0 cd ${BASEPATH} =09cmd_write 0 clear @@ -224,7 +224,7 @@ layout_demo_passt() { =20 # layout_demo_podman() - Four panes for pasta demo with Podman layout_demo_podman() { -=09sleep 3 +=09sleep 1 =20 =09cmd_write 0 cd ${BASEPATH} =09cmd_write 0 clear diff --git a/test/lib/term b/test/lib/term index 262937e..95f9a01 100755 --- a/test/lib/term +++ b/test/lib/term @@ -97,7 +97,6 @@ display_delay() { switch_pane() { =09tmux select-pane -t ${1} =09PR_DELAY=3D${PR_DELAY_INIT} -=09display_delay "0.2" } =20 # cmd_write() - Write a command to a pane, letter by letter, and execute i= t @@ -199,7 +198,7 @@ pane_run() { # $1:=09Pane name pane_wait() { =09__lc=3D"$(echo "${1}" | tr [A-Z] [a-z])" -=09sleep 0.1 || sleep 1 +=09sleep 0.01 || sleep 1 =20 =09__done=3D0 =09while @@ -207,7 +206,7 @@ pane_wait() { =09=09case ${__l} in =09=09*"$ " | *"# ") return ;; =09=09esac -=09do sleep 0.1 || sleep 1; done +=09do 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 =09__status=3D"$(pane_parse "${1}")" =09while ! [ "${__status}" -eq "${__status}" ] 2>/dev/null; do -=09=09sleep 1 +=09=09sleep 0.1 =09=09pane_run "${1}" 'echo $?' =09=09pane_wait "${1}" =09=09__status=3D"$(pane_parse "${1}")" @@ -390,13 +389,6 @@ info_passed() { =09info_nolog "...${PR_GREEN}passed${PR_NC}.\n" =09log "...passed." =09log - -=09for i in `seq 1 3`; do -=09=09tmux set status-right-style 'bg=3Dcolour1 fg=3Dcolour2 bold' -=09=09sleep "0.1" -=09=09tmux set status-right-style 'bg=3Dcolour1 fg=3Dcolour233 bold' -=09=09sleep "0.1" -=09done } =20 # info_failed() - Display, log, and make status bar blink when a test pass= es @@ -407,13 +399,6 @@ info_failed() { =09log "...failed." =09log =20 -=09for i in `seq 1 3`; do -=09=09tmux set status-right-style 'bg=3Dcolour1 fg=3Dcolour196 bold' -=09=09sleep "0.1" -=09=09tmux set status-right-style 'bg=3Dcolour1 fg=3Dcolour233 bold' -=09=09sleep "0.1" -=09done - =09pause_continue \ =09=09"Press any key to pause test session"=09=09\ =09=09"Resuming in "=09=09=09=09=09\ 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 =09pane_or_context_run "${__sctx}" 'kill -INT $(cat s.pid); rm s.pid' =20 -=09sleep 3=09=09# Wait for kernel to free up ports +=09sleep 1=09=09# 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_fil= e index fe50e50..3ead06c 100644 --- a/test/pasta_options/log_to_file +++ b/test/pasta_options/log_to_file @@ -19,7 +19,7 @@ sleep=091 endef =20 def=09flood_log_client -host=09tcp_crr --nolog -P 10001 -C 10002 -6 -c -H ::1 +host=09tcp_crr --nolog -l1 -P 10001 -C 10002 -6 -c -H ::1 endef =20 def=09check_log_size_mountns @@ -42,7 +42,7 @@ pout=09PID2 echo $! check=09head -1 __LOG_FILE__ | grep '^pasta .* [(]__PID2__[)]$' =20 test=09Maximum log size -passtb=09./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=09./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=091 =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=09FREQ_CPUFREQ (echo "scale=3D1"; printf '( %i + 10^= 5 / 2 ) / 10^6\n' $(cat /sy hout=09FREQ [ -n "__FREQ_CPUFREQ__" ] && echo __FREQ_CPUFREQ__ || echo __F= REQ_PROCFS__ =20 set=09THREADS 4 -set=09TIME 10 +set=09TIME 1 set=09OMIT 0.1 set=09OPTS -Z -P __THREADS__ -l 1M -O__OMIT__ =20 @@ -75,7 +75,7 @@ lat=09- lat=09- lat=09- nsb=09tcp_rr --nolog -6 -gout=09LAT tcp_rr --nolog -6 -c -H __GW6__%__IFNAME__ | sed -n 's/^through= put=3D\(.*\)/\1/p' +gout=09LAT tcp_rr --nolog -l1 -6 -c -H __GW6__%__IFNAME__ | sed -n 's/^thr= oughput=3D\(.*\)/\1/p' lat=09__LAT__ 200 150 =20 tl=09TCP CRR latency over IPv6: guest to host @@ -85,7 +85,7 @@ lat=09- lat=09- lat=09- nsb=09tcp_crr --nolog -6 -gout=09LAT tcp_crr --nolog -6 -c -H __GW6__%__IFNAME__ | sed -n 's/^throug= hput=3D\(.*\)/\1/p' +gout=09LAT tcp_crr --nolog -l1 -6 -c -H __GW6__%__IFNAME__ | sed -n 's/^th= roughput=3D\(.*\)/\1/p' lat=09__LAT__ 500 400 =20 tr=09TCP throughput over IPv4: guest to host @@ -119,7 +119,7 @@ lat=09- lat=09- lat=09- nsb=09tcp_rr --nolog -4 -gout=09LAT tcp_rr --nolog -4 -c -H __GW__ | sed -n 's/^throughput=3D\(.*\)= /\1/p' +gout=09LAT tcp_rr --nolog -l1 -4 -c -H __GW__ | sed -n 's/^throughput=3D\(= .*\)/\1/p' lat=09__LAT__ 200 150 =20 tl=09TCP CRR latency over IPv4: guest to host @@ -129,7 +129,7 @@ lat=09- lat=09- lat=09- nsb=09tcp_crr --nolog -4 -gout=09LAT tcp_crr --nolog -4 -c -H __GW__ | sed -n 's/^throughput=3D\(.*\= )/\1/p' +gout=09LAT tcp_crr --nolog -l1 -4 -c -H __GW__ | sed -n 's/^throughput=3D\= (.*\)/\1/p' lat=09__LAT__ 500 400 =20 tr=09TCP throughput over IPv6: host to guest @@ -153,7 +153,7 @@ lat=09- lat=09- guestb=09tcp_rr --nolog -P 10001 -C 10011 -6 sleep=091 -nsout=09LAT tcp_rr --nolog -P 10001 -C 10011 -6 -c -H ::1 | sed -n 's/^thr= oughput=3D\(.*\)/\1/p' +nsout=09LAT tcp_rr --nolog -l1 -P 10001 -C 10011 -6 -c -H ::1 | sed -n 's/= ^throughput=3D\(.*\)/\1/p' lat=09__LAT__ 200 150 =20 tl=09TCP CRR latency over IPv6: host to guest @@ -164,7 +164,7 @@ lat=09- lat=09- guestb=09tcp_crr --nolog -P 10001 -C 10011 -6 sleep=091 -nsout=09LAT tcp_crr --nolog -P 10001 -C 10011 -6 -c -H ::1 | sed -n 's/^th= roughput=3D\(.*\)/\1/p' +nsout=09LAT tcp_crr --nolog -l1 -P 10001 -C 10011 -6 -c -H ::1 | sed -n 's= /^throughput=3D\(.*\)/\1/p' lat=09__LAT__ 500 350 =20 =20 @@ -189,7 +189,7 @@ lat=09- lat=09- guestb=09tcp_rr --nolog -P 10001 -C 10011 -4 sleep=091 -nsout=09LAT tcp_rr --nolog -P 10001 -C 10011 -4 -c -H 127.0.0.1 | sed -n '= s/^throughput=3D\(.*\)/\1/p' +nsout=09LAT tcp_rr --nolog -l1 -P 10001 -C 10011 -4 -c -H 127.0.0.1 | sed = -n 's/^throughput=3D\(.*\)/\1/p' lat=09__LAT__ 200 150 =20 tl=09TCP CRR latency over IPv6: host to guest @@ -200,7 +200,7 @@ lat=09- lat=09- guestb=09tcp_crr --nolog -P 10001 -C 10011 -4 sleep=091 -nsout=09LAT tcp_crr --nolog -P 10001 -C 10011 -4 -c -H 127.0.0.1 | sed -n = 's/^throughput=3D\(.*\)/\1/p' +nsout=09LAT tcp_crr --nolog -l1 -P 10001 -C 10011 -4 -c -H 127.0.0.1 | sed= -n 's/^throughput=3D\(.*\)/\1/p' lat=09__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=09FREQ_CPUFREQ (echo "scale=3D1"; printf '( %i + 10^= 5 / 2 ) / 10^6\n' $(cat /sy hout=09FREQ [ -n "__FREQ_CPUFREQ__" ] && echo __FREQ_CPUFREQ__ || echo __F= REQ_PROCFS__ =20 set=09THREADS 2 -set=09TIME 10 +set=09TIME 1 set=09OPTS -u -P __THREADS__ --pacing-timer 1000 =20 info=09Throughput in Gbps, latency in =C2=B5s, __THREADS__ threads at __FR= EQ__ 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=09/sbin/sysctl -w net.ipv4.tcp_timestamps=3D0 =20 =20 set=09THREADS 4 -set=09TIME 10 +set=09TIME 1 set=09OMIT 0.1 set=09OPTS -Z -w 4M -l 1M -P __THREADS__ -O__OMIT__ =20 @@ -46,13 +46,13 @@ iperf3k=09host =20 tl=09TCP RR latency over IPv6: ns to host hostb=09tcp_rr --nolog -P 10003 -C 10013 -6 -nsout=09LAT tcp_rr --nolog -P 10003 -C 10013 -6 -c -H ::1 | sed -n 's/^thr= oughput=3D\(.*\)/\1/p' +nsout=09LAT tcp_rr --nolog -l1 -P 10003 -C 10013 -6 -c -H ::1 | sed -n 's/= ^throughput=3D\(.*\)/\1/p' hostw lat=09__LAT__ 150 100 =20 tl=09TCP CRR latency over IPv6: ns to host hostb=09tcp_crr --nolog -P 10003 -C 10013 -6 -nsout=09LAT tcp_crr --nolog -P 10003 -C 10013 -6 -c -H ::1 | sed -n 's/^th= roughput=3D\(.*\)/\1/p' +nsout=09LAT tcp_crr --nolog -l1 -P 10003 -C 10013 -6 -c -H ::1 | sed -n 's= /^throughput=3D\(.*\)/\1/p' hostw lat=09__LAT__ 500 350 =20 @@ -67,13 +67,13 @@ iperf3k=09host =20 tl=09TCP RR latency over IPv4: ns to host hostb=09tcp_rr --nolog -P 10003 -C 10013 -4 -nsout=09LAT tcp_rr --nolog -P 10003 -C 10013 -4 -c -H 127.0.0.1 | sed -n '= s/^throughput=3D\(.*\)/\1/p' +nsout=09LAT tcp_rr --nolog -l1 -P 10003 -C 10013 -4 -c -H 127.0.0.1 | sed = -n 's/^throughput=3D\(.*\)/\1/p' hostw lat=09__LAT__ 150 100 =20 tl=09TCP CRR latency over IPv4: ns to host hostb=09tcp_crr --nolog -P 10003 -C 10013 -4 -nsout=09LAT tcp_crr --nolog -P 10003 -C 10013 -4 -c -H 127.0.0.1 | sed -n = 's/^throughput=3D\(.*\)/\1/p' +nsout=09LAT tcp_crr --nolog -l1 -P 10003 -C 10013 -4 -c -H 127.0.0.1 | sed= -n 's/^throughput=3D\(.*\)/\1/p' hostw lat=09__LAT__ 500 350 =20 @@ -87,13 +87,13 @@ iperf3k=09ns =20 tl=09TCP RR latency over IPv6: host to ns nsb=09tcp_rr --nolog -P 10002 -C 10012 -6 -hout=09LAT tcp_rr --nolog -P 10002 -C 10012 -6 -c -H ::1 | sed -n 's/^thro= ughput=3D\(.*\)/\1/p' +hout=09LAT tcp_rr --nolog -l1 -P 10002 -C 10012 -6 -c -H ::1 | sed -n 's/^= throughput=3D\(.*\)/\1/p' nsw lat=09__LAT__ 150 100 =20 tl=09TCP CRR latency over IPv6: host to ns nsb=09tcp_crr --nolog -P 10002 -C 10012 -6 -hout=09LAT tcp_crr --nolog -P 10002 -C 10012 -6 -c -H ::1 | sed -n 's/^thr= oughput=3D\(.*\)/\1/p' +hout=09LAT tcp_crr --nolog -l1 -P 10002 -C 10012 -6 -c -H ::1 | sed -n 's/= ^throughput=3D\(.*\)/\1/p' nsw lat=09__LAT__ 1000 700 =20 @@ -108,13 +108,13 @@ iperf3k=09ns =20 tl=09TCP RR latency over IPv4: host to ns nsb=09tcp_rr --nolog -P 10002 -C 10012 -4 -hout=09LAT tcp_rr --nolog -P 10002 -C 10012 -4 -c -H 127.0.0.1 | sed -n 's= /^throughput=3D\(.*\)/\1/p' +hout=09LAT tcp_rr --nolog -l1 -P 10002 -C 10012 -4 -c -H 127.0.0.1 | sed -= n 's/^throughput=3D\(.*\)/\1/p' nsw lat=09__LAT__ 150 100 =20 tl=09TCP CRR latency over IPv4: host to ns nsb=09tcp_crr --nolog -P 10002 -C 10012 -4 -hout=09LAT tcp_crr --nolog -P 10002 -C 10012 -4 -c -H 127.0.0.1 | sed -n '= s/^throughput=3D\(.*\)/\1/p' +hout=09LAT tcp_crr --nolog -l1 -P 10002 -C 10012 -4 -c -H 127.0.0.1 | sed = -n 's/^throughput=3D\(.*\)/\1/p' nsw lat=09__LAT__ 1000 700 =20 @@ -156,7 +156,7 @@ lat=09- lat=09- lat=09- hostb=09tcp_rr --nolog -P 10003 -C 10013 -6 -nsout=09LAT tcp_rr --nolog -P 10003 -C 10013 -6 -c -H __GW6__%__IFNAME__ |= sed -n 's/^throughput=3D\(.*\)/\1/p' +nsout=09LAT tcp_rr --nolog -l1 -P 10003 -C 10013 -6 -c -H __GW6__%__IFNAME= __ | sed -n 's/^throughput=3D\(.*\)/\1/p' hostw lat=09__LAT__ 150 100 =20 @@ -165,7 +165,7 @@ lat=09- lat=09- lat=09- hostb=09tcp_crr --nolog -P 10003 -C 10013 -6 -nsout=09LAT tcp_crr --nolog -P 10003 -C 10013 -6 -c -H __GW6__%__IFNAME__ = | sed -n 's/^throughput=3D\(.*\)/\1/p' +nsout=09LAT tcp_crr --nolog -l1 -P 10003 -C 10013 -6 -c -H __GW6__%__IFNAM= E__ | sed -n 's/^throughput=3D\(.*\)/\1/p' hostw lat=09__LAT__ 1500 500 =20 @@ -193,7 +193,7 @@ lat=09- lat=09- lat=09- hostb=09tcp_rr --nolog -P 10003 -C 10013 -4 -nsout=09LAT tcp_rr --nolog -P 10003 -C 10013 -4 -c -H __GW__ | sed -n 's/^= throughput=3D\(.*\)/\1/p' +nsout=09LAT tcp_rr --nolog -l1 -P 10003 -C 10013 -4 -c -H __GW__ | sed -n = 's/^throughput=3D\(.*\)/\1/p' hostw lat=09__LAT__ 150 100 =20 @@ -202,7 +202,7 @@ lat=09- lat=09- lat=09- hostb=09tcp_crr --nolog -P 10003 -C 10013 -4 -nsout=09LAT tcp_crr --nolog -P 10003 -C 10013 -4 -c -H __GW__ | sed -n 's/= ^throughput=3D\(.*\)/\1/p' +nsout=09LAT tcp_crr --nolog -l1 -P 10003 -C 10013 -4 -c -H __GW__ | sed -n= 's/^throughput=3D\(.*\)/\1/p' hostw lat=09__LAT__ 1500 500 =20 @@ -224,7 +224,7 @@ lat=09- lat=09- lat=09- nsb=09tcp_rr --nolog -P 10002 -C 10012 -6 -hout=09LAT tcp_rr --nolog -P 10002 -C 10012 -6 -c -H __ADDR6__ | sed -n 's= /^throughput=3D\(.*\)/\1/p' +hout=09LAT tcp_rr --nolog -l1 -P 10002 -C 10012 -6 -c -H __ADDR6__ | sed -= n 's/^throughput=3D\(.*\)/\1/p' nsw lat=09__LAT__ 150 100 =20 @@ -234,7 +234,7 @@ lat=09- lat=09- sleep=091 nsb=09tcp_crr --nolog -P 10002 -C 10012 -6 -hout=09LAT tcp_crr --nolog -P 10002 -C 10012 -6 -c -H __ADDR6__ | sed -n '= s/^throughput=3D\(.*\)/\1/p' +hout=09LAT tcp_crr --nolog -l1 -P 10002 -C 10012 -6 -c -H __ADDR6__ | sed = -n 's/^throughput=3D\(.*\)/\1/p' nsw lat=09__LAT__ 5000 10000 =20 @@ -256,7 +256,7 @@ lat=09- lat=09- lat=09- nsb=09tcp_rr --nolog -P 10002 -C 10012 -4 -hout=09LAT tcp_rr --nolog -P 10002 -C 10012 -4 -c -H __ADDR__ | sed -n 's/= ^throughput=3D\(.*\)/\1/p' +hout=09LAT tcp_rr --nolog -l1 -P 10002 -C 10012 -4 -c -H __ADDR__ | sed -n= 's/^throughput=3D\(.*\)/\1/p' nsw lat=09__LAT__ 150 100 =20 @@ -266,7 +266,7 @@ lat=09- lat=09- sleep=091 nsb=09tcp_crr --nolog -P 10002 -C 10012 -4 -hout=09LAT tcp_crr --nolog -P 10002 -C 10012 -4 -c -H __ADDR__ | sed -n 's= /^throughput=3D\(.*\)/\1/p' +hout=09LAT tcp_crr --nolog -l1 -P 10002 -C 10012 -4 -c -H __ADDR__ | sed -= n 's/^throughput=3D\(.*\)/\1/p' nsw lat=09__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=09FREQ_CPUFREQ (echo "scale=3D1"; printf '( %i + 10^= 5 / 2 ) / 10^6\n' $(cat /sy hout=09FREQ [ -n "__FREQ_CPUFREQ__" ] && echo __FREQ_CPUFREQ__ || echo __F= REQ_PROCFS__ =20 set=09THREADS 1 -set=09TIME 10 +set=09TIME 1 set=09OPTS -u -P __THREADS__ =20 info=09Throughput in Gbps, latency in =C2=B5s, one thread at __FREQ__ GHz --MP_/QjjiBg3IUW8L/.tIPC+Dkvl--