* [PATCH] Fixes hang in zstd compression test by changing the source of random data.
@ 2019-08-22 13:55 James Clark
2019-08-22 21:24 ` Arnaldo Carvalho de Melo
2019-08-23 6:00 ` Alexey Budankov
0 siblings, 2 replies; 5+ messages in thread
From: James Clark @ 2019-08-22 13:55 UTC (permalink / raw)
To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org,
alexander.shishkin@linux.intel.com, jolsa@redhat.com,
namhyung@kernel.org, alexey.budankov@linux.intel.com
Cc: linux-perf-users@vger.kernel.org, nd,
linux-kernel@vger.kernel.org, Jeremy Linton
Running 'perf test' with zstd compression linked will hang at the test
'Zstd perf.data compression/decompression' because /dev/random blocks
reads until there is enough entropy. This means that the test will
appear to never complete unless the mouse is continually moved while
running it.
Signed-off-by: James Clark <james.clark@arm.com>
---
tools/perf/tests/shell/record+zstd_comp_decomp.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/tests/shell/record+zstd_comp_decomp.sh b/tools/perf/tests/shell/record+zstd_comp_decomp.sh
index 899604d1..63a91ec 100755
--- a/tools/perf/tests/shell/record+zstd_comp_decomp.sh
+++ b/tools/perf/tests/shell/record+zstd_comp_decomp.sh
@@ -13,7 +13,7 @@ skip_if_no_z_record() {
collect_z_record() {
echo "Collecting compressed record file:"
$perf_tool record -o $trace_file -g -z -F 5000 -- \
- dd count=500 if=/dev/random of=/dev/null
+ dd count=500 if=/dev/urandom of=/dev/null
}
check_compressed_stats() {
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] Fixes hang in zstd compression test by changing the source of random data.
2019-08-22 13:55 [PATCH] Fixes hang in zstd compression test by changing the source of random data James Clark
@ 2019-08-22 21:24 ` Arnaldo Carvalho de Melo
2019-08-22 21:24 ` Arnaldo Carvalho de Melo
2019-08-23 6:00 ` Alexey Budankov
1 sibling, 1 reply; 5+ messages in thread
From: Arnaldo Carvalho de Melo @ 2019-08-22 21:24 UTC (permalink / raw)
To: James Clark
Cc: peterz@infradead.org, mingo@redhat.com,
alexander.shishkin@linux.intel.com, jolsa@redhat.com,
namhyung@kernel.org, alexey.budankov@linux.intel.com,
linux-perf-users@vger.kernel.org, nd,
linux-kernel@vger.kernel.org, Jeremy Linton
Em Thu, Aug 22, 2019 at 01:55:15PM +0000, James Clark escreveu:
> Running 'perf test' with zstd compression linked will hang at the test
> 'Zstd perf.data compression/decompression' because /dev/random blocks
> reads until there is enough entropy. This means that the test will
> appear to never complete unless the mouse is continually moved while
> running it.
message came mangled, had to do it by hand and then hook up your header
so as to get the correct date, attribution, etc, please check
Documentation/process/email-clients.rst,
- Arnaldo
> Signed-off-by: James Clark <james.clark@arm.com>
> ---
> tools/perf/tests/shell/record+zstd_comp_decomp.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/tests/shell/record+zstd_comp_decomp.sh b/tools/perf/tests/shell/record+zstd_comp_decomp.sh
> index 899604d1..63a91ec 100755
> --- a/tools/perf/tests/shell/record+zstd_comp_decomp.sh
> +++ b/tools/perf/tests/shell/record+zstd_comp_decomp.sh
> @@ -13,7 +13,7 @@ skip_if_no_z_record() {
> collect_z_record() {
> echo "Collecting compressed record file:"
> $perf_tool record -o $trace_file -g -z -F 5000 -- \
> - dd count=500 if=/dev/random of=/dev/null
> + dd count=500 if=/dev/urandom of=/dev/null
> }
>
> check_compressed_stats() {
> --
> 2.7.4
>
--
- Arnaldo
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] Fixes hang in zstd compression test by changing the source of random data.
2019-08-22 21:24 ` Arnaldo Carvalho de Melo
@ 2019-08-22 21:24 ` Arnaldo Carvalho de Melo
2019-08-23 8:30 ` James Clark
0 siblings, 1 reply; 5+ messages in thread
From: Arnaldo Carvalho de Melo @ 2019-08-22 21:24 UTC (permalink / raw)
To: James Clark
Cc: peterz@infradead.org, mingo@redhat.com,
alexander.shishkin@linux.intel.com, jolsa@redhat.com,
namhyung@kernel.org, alexey.budankov@linux.intel.com,
linux-perf-users@vger.kernel.org, nd,
linux-kernel@vger.kernel.org, Jeremy Linton
Em Thu, Aug 22, 2019 at 06:24:07PM -0300, Arnaldo Carvalho de Melo escreveu:
> Em Thu, Aug 22, 2019 at 01:55:15PM +0000, James Clark escreveu:
> > Running 'perf test' with zstd compression linked will hang at the test
> > 'Zstd perf.data compression/decompression' because /dev/random blocks
> > reads until there is enough entropy. This means that the test will
> > appear to never complete unless the mouse is continually moved while
> > running it.
>
> message came mangled, had to do it by hand and then hook up your header
> so as to get the correct date, attribution, etc, please check
> Documentation/process/email-clients.rst,
Having said that, thanks, applied.
- Arnaldo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fixes hang in zstd compression test by changing the source of random data.
2019-08-22 21:24 ` Arnaldo Carvalho de Melo
@ 2019-08-23 8:30 ` James Clark
0 siblings, 0 replies; 5+ messages in thread
From: James Clark @ 2019-08-23 8:30 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo
Cc: peterz@infradead.org, mingo@redhat.com,
alexander.shishkin@linux.intel.com, jolsa@redhat.com,
namhyung@kernel.org, alexey.budankov@linux.intel.com,
linux-perf-users@vger.kernel.org, nd,
linux-kernel@vger.kernel.org, Jeremy Linton
Sorry about that, I will look into it.
Thanks
James
On 22/08/2019 22:24, Arnaldo Carvalho de Melo wrote:
> Em Thu, Aug 22, 2019 at 06:24:07PM -0300, Arnaldo Carvalho de Melo escreveu:
>> Em Thu, Aug 22, 2019 at 01:55:15PM +0000, James Clark escreveu:
>>> Running 'perf test' with zstd compression linked will hang at the test
>>> 'Zstd perf.data compression/decompression' because /dev/random blocks
>>> reads until there is enough entropy. This means that the test will
>>> appear to never complete unless the mouse is continually moved while
>>> running it.
>>
>> message came mangled, had to do it by hand and then hook up your header
>> so as to get the correct date, attribution, etc, please check
>> Documentation/process/email-clients.rst,
>
> Having said that, thanks, applied.
>
> - Arnaldo
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fixes hang in zstd compression test by changing the source of random data.
2019-08-22 13:55 [PATCH] Fixes hang in zstd compression test by changing the source of random data James Clark
2019-08-22 21:24 ` Arnaldo Carvalho de Melo
@ 2019-08-23 6:00 ` Alexey Budankov
1 sibling, 0 replies; 5+ messages in thread
From: Alexey Budankov @ 2019-08-23 6:00 UTC (permalink / raw)
To: James Clark, peterz@infradead.org, mingo@redhat.com,
acme@kernel.org, alexander.shishkin@linux.intel.com,
jolsa@redhat.com, namhyung@kernel.org
Cc: linux-perf-users@vger.kernel.org, nd,
linux-kernel@vger.kernel.org, Jeremy Linton
On 22.08.2019 16:55, James Clark wrote:
> Running 'perf test' with zstd compression linked will hang at the test
> 'Zstd perf.data compression/decompression' because /dev/random blocks
> reads until there is enough entropy. This means that the test will
> appear to never complete unless the mouse is continually moved while
> running it.
>
> Signed-off-by: James Clark <james.clark@arm.com>
> ---
> tools/perf/tests/shell/record+zstd_comp_decomp.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/tests/shell/record+zstd_comp_decomp.sh b/tools/perf/tests/shell/record+zstd_comp_decomp.sh
> index 899604d1..63a91ec 100755
> --- a/tools/perf/tests/shell/record+zstd_comp_decomp.sh
> +++ b/tools/perf/tests/shell/record+zstd_comp_decomp.sh
> @@ -13,7 +13,7 @@ skip_if_no_z_record() {
> collect_z_record() {
> echo "Collecting compressed record file:"
> $perf_tool record -o $trace_file -g -z -F 5000 -- \
> - dd count=500 if=/dev/random of=/dev/null
> + dd count=500 if=/dev/urandom of=/dev/null
Acked-by: Alexey Budankov <alexey.budankov@linux.intel.com>
~Alexey
> }
>
> check_compressed_stats() {
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-08-23 8:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-22 13:55 [PATCH] Fixes hang in zstd compression test by changing the source of random data James Clark
2019-08-22 21:24 ` Arnaldo Carvalho de Melo
2019-08-22 21:24 ` Arnaldo Carvalho de Melo
2019-08-23 8:30 ` James Clark
2019-08-23 6:00 ` Alexey Budankov
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).