From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: vmolnaro@redhat.com
Cc: linux-perf-users@vger.kernel.org, acme@redhat.com, mpetlan@redhat.com
Subject: Re: [PATCH 1/2] perf test lock_contention.sh: Skip test if the number of CPUs is low
Date: Tue, 12 Sep 2023 17:57:57 -0300 [thread overview]
Message-ID: <ZQDQ1Qqg+zm59OTO@kernel.org> (raw)
In-Reply-To: <20230912121926.12111-1-vmolnaro@redhat.com>
Em Tue, Sep 12, 2023 at 02:19:25PM +0200, vmolnaro@redhat.com escreveu:
> From: Veronika Molnarova <vmolnaro@redhat.com>
>
> Machines with less then 4 CPUs weren't consistently triggering lock
> events required for the test.
>
> Skip the test on those machines. The limit of 4 CPUs is set as it
> generates around 100 lock events for a test.
Better, but still some issues, fixing manually.
⬢[acme@toolbox perf-tools-next]$ b4 am -ctsl --cc-trailers 20230912121926.12111-1-vmolnaro@redhat.com
Grabbing thread from lore.kernel.org/all/20230912121926.12111-1-vmolnaro%40redhat.com/t.mbox.gz
Checking for newer revisions
Grabbing search results from lore.kernel.org
Analyzing 4 messages in the thread
Checking attestation on all messages, may take a moment...
---
✓ [PATCH 1/2] perf test lock_contention.sh: Skip test if the number of CPUs is low
+ Acked-by: Michael Petlan <mpetlan@redhat.com> (✓ DKIM/redhat.com)
+ Link: https://lore.kernel.org/r/20230912121926.12111-1-vmolnaro@redhat.com
+ Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
✓ [PATCH 2/2] perf test stat+shadow_stat.sh: Add threshold for rounding errors
+ Acked-by: Michael Petlan <mpetlan@redhat.com> (✓ DKIM/redhat.com)
+ Link: https://lore.kernel.org/r/20230912121926.12111-2-vmolnaro@redhat.com
+ Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
✓ Signed: DKIM/redhat.com
---
Total patches: 2
---
Link: https://lore.kernel.org/r/20230912121926.12111-1-vmolnaro@redhat.com
Base: not specified
git am ./20230912_vmolnaro_perf_test_lock_contention_sh_skip_test_if_the_number_of_cpus_is_low.mbx
⬢[acme@toolbox perf-tools-next]$ git diff
⬢[acme@toolbox perf-tools-next]$ git am ./20230912_vmolnaro_perf_test_lock_contention_sh_skip_test_if_the_number_of_cpus_is_low.mbx
Applying: perf test lock_contention.sh: Skip test if the number of CPUs is low
.git/rebase-apply/patch:13: trailing whitespace.
fi
warning: 1 line adds whitespace errors.
Applying: perf test stat+shadow_stat.sh: Add threshold for rounding errors
⬢[acme@toolbox perf-tools-next]$
> ---
> tools/perf/tests/shell/lock_contention.sh | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/tools/perf/tests/shell/lock_contention.sh b/tools/perf/tests/shell/lock_contention.sh
> index f2cc187b618..1d3598ff6a0 100755
> --- a/tools/perf/tests/shell/lock_contention.sh
> +++ b/tools/perf/tests/shell/lock_contention.sh
> @@ -31,6 +31,12 @@ check() {
> echo "[Skip] No lock contention tracepoints"
> err=2
> exit
> + fi
> +
> + if [ `nproc` -lt 4 ]; then
> + echo "[Skip] Low number of CPUs (`nproc`), lock event cannot be triggered certainly"
> + err=2
> + exit
> fi
> }
>
> --
> 2.41.0
>
--
- Arnaldo
next prev parent reply other threads:[~2023-09-12 20:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-12 12:19 [PATCH 1/2] perf test lock_contention.sh: Skip test if the number of CPUs is low vmolnaro
2023-09-12 12:19 ` [PATCH 2/2] perf test stat+shadow_stat.sh: Add threshold for rounding errors vmolnaro
2023-09-12 12:22 ` Michael Petlan
2023-09-12 21:01 ` Arnaldo Carvalho de Melo
2023-09-12 12:21 ` [PATCH 1/2] perf test lock_contention.sh: Skip test if the number of CPUs is low Michael Petlan
2023-09-12 20:57 ` Arnaldo Carvalho de Melo [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-08-21 9:00 vmolnaro
2023-08-23 9:02 ` Michael Petlan
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=ZQDQ1Qqg+zm59OTO@kernel.org \
--to=acme@kernel.org \
--cc=acme@redhat.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=mpetlan@redhat.com \
--cc=vmolnaro@redhat.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).