From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Jiri Olsa <jolsa@kernel.org>
Cc: lkml <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
David Ahern <dsahern@gmail.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Peter Zijlstra <a.p.zijlstra@chello.nl>
Subject: Re: [PATCH] perf bench: Fix numa report output code
Date: Wed, 20 Jun 2018 11:19:22 -0300 [thread overview]
Message-ID: <20180620141922.GR20477@kernel.org> (raw)
In-Reply-To: <20180620094036.17278-1-jolsa@kernel.org>
Em Wed, Jun 20, 2018 at 11:40:36AM +0200, Jiri Olsa escreveu:
> Currently we can hit following assert when running numa bench:
>
> $ perf bench numa mem -p 3 -t 1 -P 512 -s 100 -zZ0cm --thp 1
> perf: bench/numa.c:1577: __bench_numa: Assertion `!(!(((wait_stat) & 0x7f) == 0))' failed.
>
> The assertion is correct, because we hit the SIGFPE in following line:
>
> Thread 2.2 "thread 0/0" received signal SIGFPE, Arithmetic exception.
> [Switching to Thread 0x7fffd28c6700 (LWP 11750)]
> 0x000.. in worker_thread (__tdata=0x7.. ) at bench/numa.c:1257
> 1257 td->speed_gbs = bytes_done / (td->runtime_ns / NSEC_PER_SEC) / 1e9;
>
> We don't check if the runtime is actually bigger than 1 second,
> and thus this might end up with zero division within FPU.
>
> Adding the check to prevent this.
>
> Link: http://lkml.kernel.org/n/tip-9y8n4x48mjbbcay73sq6nche@git.kernel.org
> Signed-off-by: Jiri Olsa <jolsa@kernel.org>
thanks, applied to perf/urgent.
- Arnaldo
next prev parent reply other threads:[~2018-06-20 14:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-20 9:40 Jiri Olsa
2018-06-20 14:19 ` Arnaldo Carvalho de Melo [this message]
2018-06-26 6:59 ` [tip:perf/urgent] " tip-bot for Jiri Olsa
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=20180620141922.GR20477@kernel.org \
--to=acme@kernel.org \
--cc=a.p.zijlstra@chello.nl \
--cc=alexander.shishkin@linux.intel.com \
--cc=dsahern@gmail.com \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=namhyung@kernel.org \
/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
Powered by JetHome