diff mbox series

[bpf-next] selftests/bpf: fix ringbuf benchmark output

Message ID 20230719014744.3480131-1-awerner32@gmail.com (mailing list archive)
State Changes Requested
Delegated to: BPF
Headers show
Series [bpf-next] selftests/bpf: fix ringbuf benchmark output | expand

Checks

Context Check Description
bpf/vmtest-bpf-next-PR success PR summary
bpf/vmtest-bpf-next-VM_Test-3 success Logs for build for s390x with gcc
bpf/vmtest-bpf-next-VM_Test-19 success Logs for test_progs_no_alu32_parallel on aarch64 with gcc
bpf/vmtest-bpf-next-VM_Test-20 success Logs for test_progs_no_alu32_parallel on x86_64 with gcc
bpf/vmtest-bpf-next-VM_Test-21 success Logs for test_progs_no_alu32_parallel on x86_64 with llvm-16
bpf/vmtest-bpf-next-VM_Test-24 success Logs for test_progs_parallel on x86_64 with llvm-16
bpf/vmtest-bpf-next-VM_Test-25 success Logs for test_verifier on aarch64 with gcc
bpf/vmtest-bpf-next-VM_Test-27 success Logs for test_verifier on x86_64 with gcc
bpf/vmtest-bpf-next-VM_Test-28 success Logs for test_verifier on x86_64 with llvm-16
bpf/vmtest-bpf-next-VM_Test-29 success Logs for veristat
bpf/vmtest-bpf-next-VM_Test-7 success Logs for test_maps on aarch64 with gcc
bpf/vmtest-bpf-next-VM_Test-9 success Logs for test_maps on x86_64 with gcc
bpf/vmtest-bpf-next-VM_Test-10 success Logs for test_maps on x86_64 with llvm-16
bpf/vmtest-bpf-next-VM_Test-11 success Logs for test_progs on aarch64 with gcc
bpf/vmtest-bpf-next-VM_Test-13 success Logs for test_progs on x86_64 with gcc
bpf/vmtest-bpf-next-VM_Test-14 success Logs for test_progs on x86_64 with llvm-16
bpf/vmtest-bpf-next-VM_Test-15 success Logs for test_progs_no_alu32 on aarch64 with gcc
bpf/vmtest-bpf-next-VM_Test-17 success Logs for test_progs_no_alu32 on x86_64 with gcc
bpf/vmtest-bpf-next-VM_Test-18 success Logs for test_progs_no_alu32 on x86_64 with llvm-16
bpf/vmtest-bpf-next-VM_Test-22 success Logs for test_progs_parallel on aarch64 with gcc
bpf/vmtest-bpf-next-VM_Test-23 success Logs for test_progs_parallel on x86_64 with gcc
bpf/vmtest-bpf-next-VM_Test-26 success Logs for test_verifier on s390x with gcc
bpf/vmtest-bpf-next-VM_Test-16 fail Logs for test_progs_no_alu32 on s390x with gcc
bpf/vmtest-bpf-next-VM_Test-12 success Logs for test_progs on s390x with gcc
bpf/vmtest-bpf-next-VM_Test-8 success Logs for test_maps on s390x with gcc
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for bpf-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 9 this patch: 9
netdev/cc_maintainers warning 15 maintainers not CCed: daniel@iogearbox.net yhs@fb.com houtao1@huawei.com linux-kselftest@vger.kernel.org haoluo@google.com kpsingh@kernel.org martin.lau@linux.dev john.fastabend@gmail.com sdf@google.com shuah@kernel.org andrii@kernel.org song@kernel.org mykolal@fb.com jolsa@kernel.org ast@kernel.org
netdev/build_clang success Errors and warnings before: 9 this patch: 9
netdev/verify_signedoff fail author Signed-off-by missing
netdev/deprecated_api success None detected
netdev/check_selftest success net selftest script(s) already in Makefile
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 9 this patch: 9
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 14 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
bpf/vmtest-bpf-next-VM_Test-2 success Logs for build for aarch64 with gcc
bpf/vmtest-bpf-next-VM_Test-4 success Logs for build for x86_64 with gcc
bpf/vmtest-bpf-next-VM_Test-5 success Logs for build for x86_64 with llvm-16
bpf/vmtest-bpf-next-VM_Test-1 success Logs for ShellCheck
bpf/vmtest-bpf-next-VM_Test-6 success Logs for set-matrix

Commit Message

Andrew Werner July 19, 2023, 1:47 a.m. UTC
The headers were confusing.
---
 tools/testing/selftests/bpf/benchs/run_bench_ringbufs.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Alexei Starovoitov July 19, 2023, 5:35 p.m. UTC | #1
On Tue, Jul 18, 2023 at 6:50 PM Andrew Werner <awerner32@gmail.com> wrote:
>
> The headers were confusing.
> ---

SOB is missing.

commit log is too terse.
Pls explain what you're fixing.

>  tools/testing/selftests/bpf/benchs/run_bench_ringbufs.sh | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/testing/selftests/bpf/benchs/run_bench_ringbufs.sh b/tools/testing/selftests/bpf/benchs/run_bench_ringbufs.sh
> index 91e3567962ff..8dd97f5108f0 100755
> --- a/tools/testing/selftests/bpf/benchs/run_bench_ringbufs.sh
> +++ b/tools/testing/selftests/bpf/benchs/run_bench_ringbufs.sh
> @@ -6,12 +6,12 @@ set -eufo pipefail
>
>  RUN_RB_BENCH="$RUN_BENCH -c1"
>
> -header "Single-producer, parallel producer"
> +header "Single-consumer, parallel producer"
>  for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
>         summarize $b "$($RUN_RB_BENCH $b)"
>  done
>
> -header "Single-producer, parallel producer, sampled notification"
> +header "Single-consumer, parallel producer, sampled notification"

Single-producer, consumer/producer competing on the same CPU, low batch count

should also be fixed?
Andrew Werner July 19, 2023, 6:57 p.m. UTC | #2
On Wed, Jul 19, 2023 at 1:35 PM Alexei Starovoitov
<alexei.starovoitov@gmail.com> wrote:
>
> On Tue, Jul 18, 2023 at 6:50 PM Andrew Werner <awerner32@gmail.com> wrote:
> >
> > The headers were confusing.
> > ---
>
> SOB is missing.

Ack.

>
> commit log is too terse.
> Pls explain what you're fixing.

Ack.

> >  tools/testing/selftests/bpf/benchs/run_bench_ringbufs.sh | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/tools/testing/selftests/bpf/benchs/run_bench_ringbufs.sh b/tools/testing/selftests/bpf/benchs/run_bench_ringbufs.sh
> > index 91e3567962ff..8dd97f5108f0 100755
> > --- a/tools/testing/selftests/bpf/benchs/run_bench_ringbufs.sh
> > +++ b/tools/testing/selftests/bpf/benchs/run_bench_ringbufs.sh
> > @@ -6,12 +6,12 @@ set -eufo pipefail
> >
> >  RUN_RB_BENCH="$RUN_BENCH -c1"
> >
> > -header "Single-producer, parallel producer"
> > +header "Single-consumer, parallel producer"
> >  for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
> >         summarize $b "$($RUN_RB_BENCH $b)"
> >  done
> >
> > -header "Single-producer, parallel producer, sampled notification"
> > +header "Single-consumer, parallel producer, sampled notification"
>
> Single-producer, consumer/producer competing on the same CPU, low batch count
>
> should also be fixed?

In retrospect, having now reread these, I think that they were not
mistakes. Ringbuf is always implicitly a single consumer concept. The
point was to highlight that there is a single producer, and that it is
running in parallel.

I'll more generally take a more in depth pass at making these headers
clearer and more consistent, and I'll address the other items in v2.
Thanks for the review!
diff mbox series

Patch

diff --git a/tools/testing/selftests/bpf/benchs/run_bench_ringbufs.sh b/tools/testing/selftests/bpf/benchs/run_bench_ringbufs.sh
index 91e3567962ff..8dd97f5108f0 100755
--- a/tools/testing/selftests/bpf/benchs/run_bench_ringbufs.sh
+++ b/tools/testing/selftests/bpf/benchs/run_bench_ringbufs.sh
@@ -6,12 +6,12 @@  set -eufo pipefail
 
 RUN_RB_BENCH="$RUN_BENCH -c1"
 
-header "Single-producer, parallel producer"
+header "Single-consumer, parallel producer"
 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
 	summarize $b "$($RUN_RB_BENCH $b)"
 done
 
-header "Single-producer, parallel producer, sampled notification"
+header "Single-consumer, parallel producer, sampled notification"
 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
 	summarize $b "$($RUN_RB_BENCH --rb-sampled $b)"
 done