* [Qemu-devel] [PATCH] tests/prom-env: Ease time-out problems on slow hosts
@ 2017-02-09 14:13 Thomas Huth
2017-02-09 14:37 ` Peter Maydell
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Huth @ 2017-02-09 14:13 UTC (permalink / raw)
To: Peter Maydell, qemu-devel; +Cc: qemu-ppc, David Gibson
Peter Maydell recently ran into time-out problems with the
prom-env test on a rather slow ARM board. To tackle this issue,
we can speed up the test by running QEMU with "-nodefaults" here,
so that SLOF has less devices to scan during boot, and by using
the "nvramrc" environment variable instead of "boot-command",
since this variable is evaluated earlier in the boot process.
And to be really sure that we do not face such time out problems
again, let's also increase the time out value from 100s to 120s
instead.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
tests/prom-env-test.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tests/prom-env-test.c b/tests/prom-env-test.c
index 0ba6f48..7d97ae4 100644
--- a/tests/prom-env-test.c
+++ b/tests/prom-env-test.c
@@ -30,8 +30,8 @@ static void check_guest_memory(void)
uint32_t signature;
int i;
- /* Poll until code has run and modified memory. Wait at most 30 seconds */
- for (i = 0; i < 10000; ++i) {
+ /* Poll until code has run and modified memory. Wait at most 120 seconds */
+ for (i = 0; i < 12000; ++i) {
signature = readl(ADDRESS);
if (signature == MAGIC) {
break;
@@ -46,7 +46,9 @@ static void test_machine(const void *machine)
{
char *args;
- args = g_strdup_printf("-M %s,accel=tcg -prom-env 'boot-command=%x %x l!'",
+ args = g_strdup_printf("-M %s,accel=tcg -nodefaults "
+ "-prom-env 'use-nvramrc?=true' "
+ "-prom-env 'nvramrc=%x %x l!'",
(const char *)machine, MAGIC, ADDRESS);
qtest_start(args);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] tests/prom-env: Ease time-out problems on slow hosts
2017-02-09 14:13 [Qemu-devel] [PATCH] tests/prom-env: Ease time-out problems on slow hosts Thomas Huth
@ 2017-02-09 14:37 ` Peter Maydell
2017-02-09 23:15 ` David Gibson
0 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2017-02-09 14:37 UTC (permalink / raw)
To: Thomas Huth; +Cc: QEMU Developers, qemu-ppc@nongnu.org, David Gibson
On 9 February 2017 at 14:13, Thomas Huth <thuth@redhat.com> wrote:
> Peter Maydell recently ran into time-out problems with the
> prom-env test on a rather slow ARM board. To tackle this issue,
> we can speed up the test by running QEMU with "-nodefaults" here,
> so that SLOF has less devices to scan during boot, and by using
> the "nvramrc" environment variable instead of "boot-command",
> since this variable is evaluated earlier in the boot process.
> And to be really sure that we do not face such time out problems
> again, let's also increase the time out value from 100s to 120s
> instead.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> tests/prom-env-test.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
Seems to cut the elapsed realtime for the pseries board
down from about 90s to 55s. Hopefully that plus the
boosted timeout will help.
Tested-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] tests/prom-env: Ease time-out problems on slow hosts
2017-02-09 14:37 ` Peter Maydell
@ 2017-02-09 23:15 ` David Gibson
2017-02-10 12:48 ` Peter Maydell
0 siblings, 1 reply; 5+ messages in thread
From: David Gibson @ 2017-02-09 23:15 UTC (permalink / raw)
To: Peter Maydell; +Cc: Thomas Huth, QEMU Developers, qemu-ppc@nongnu.org
[-- Attachment #1: Type: text/plain, Size: 1344 bytes --]
On Thu, Feb 09, 2017 at 02:37:26PM +0000, Peter Maydell wrote:
> On 9 February 2017 at 14:13, Thomas Huth <thuth@redhat.com> wrote:
> > Peter Maydell recently ran into time-out problems with the
> > prom-env test on a rather slow ARM board. To tackle this issue,
> > we can speed up the test by running QEMU with "-nodefaults" here,
> > so that SLOF has less devices to scan during boot, and by using
> > the "nvramrc" environment variable instead of "boot-command",
> > since this variable is evaluated earlier in the boot process.
> > And to be really sure that we do not face such time out problems
> > again, let's also increase the time out value from 100s to 120s
> > instead.
> >
> > Signed-off-by: Thomas Huth <thuth@redhat.com>
> > ---
> > tests/prom-env-test.c | 8 +++++---
> > 1 file changed, 5 insertions(+), 3 deletions(-)
>
> Seems to cut the elapsed realtime for the pseries board
> down from about 90s to 55s. Hopefully that plus the
> boosted timeout will help.
>
> Tested-by: Peter Maydell <peter.maydell@linaro.org>
Peter, will you merge this directly, or do you want me to take it
through my tree?
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] tests/prom-env: Ease time-out problems on slow hosts
2017-02-09 23:15 ` David Gibson
@ 2017-02-10 12:48 ` Peter Maydell
2017-02-10 12:51 ` Thomas Huth
0 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2017-02-10 12:48 UTC (permalink / raw)
To: David Gibson; +Cc: Thomas Huth, QEMU Developers, qemu-ppc@nongnu.org
On 9 February 2017 at 23:15, David Gibson <david@gibson.dropbear.id.au> wrote:
> On Thu, Feb 09, 2017 at 02:37:26PM +0000, Peter Maydell wrote:
>> On 9 February 2017 at 14:13, Thomas Huth <thuth@redhat.com> wrote:
>> > Peter Maydell recently ran into time-out problems with the
>> > prom-env test on a rather slow ARM board. To tackle this issue,
>> > we can speed up the test by running QEMU with "-nodefaults" here,
>> > so that SLOF has less devices to scan during boot, and by using
>> > the "nvramrc" environment variable instead of "boot-command",
>> > since this variable is evaluated earlier in the boot process.
>> > And to be really sure that we do not face such time out problems
>> > again, let's also increase the time out value from 100s to 120s
>> > instead.
>> >
>> > Signed-off-by: Thomas Huth <thuth@redhat.com>
>> > ---
>> > tests/prom-env-test.c | 8 +++++---
>> > 1 file changed, 5 insertions(+), 3 deletions(-)
>>
>> Seems to cut the elapsed realtime for the pseries board
>> down from about 90s to 55s. Hopefully that plus the
>> boosted timeout will help.
>>
>> Tested-by: Peter Maydell <peter.maydell@linaro.org>
>
> Peter, will you merge this directly, or do you want me to take it
> through my tree?
I just did a full test with the intention of merging it into
master, and I noticed it causes new warnings on the sparc
prom tests:
TEST: tests/prom-env-test... (pid=17171)
/sparc/prom-env/SPARCbook:
Warning: nic
lance.0 has no peer
OK
/sparc/prom-env/Voyager:
Warning: nic
lance.0 has no peer
OK
/sparc/prom-env/SS-20:
Warning: nic
lance.0 has no peer
OK
PASS: tests/prom-env-test
So it needs some tweaking, I think.
thanks
-- PMM
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] tests/prom-env: Ease time-out problems on slow hosts
2017-02-10 12:48 ` Peter Maydell
@ 2017-02-10 12:51 ` Thomas Huth
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2017-02-10 12:51 UTC (permalink / raw)
To: Peter Maydell, David Gibson; +Cc: QEMU Developers, qemu-ppc@nongnu.org
On 10.02.2017 13:48, Peter Maydell wrote:
> On 9 February 2017 at 23:15, David Gibson <david@gibson.dropbear.id.au> wrote:
>> On Thu, Feb 09, 2017 at 02:37:26PM +0000, Peter Maydell wrote:
>>> On 9 February 2017 at 14:13, Thomas Huth <thuth@redhat.com> wrote:
>>>> Peter Maydell recently ran into time-out problems with the
>>>> prom-env test on a rather slow ARM board. To tackle this issue,
>>>> we can speed up the test by running QEMU with "-nodefaults" here,
>>>> so that SLOF has less devices to scan during boot, and by using
>>>> the "nvramrc" environment variable instead of "boot-command",
>>>> since this variable is evaluated earlier in the boot process.
>>>> And to be really sure that we do not face such time out problems
>>>> again, let's also increase the time out value from 100s to 120s
>>>> instead.
>>>>
>>>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>>>> ---
>>>> tests/prom-env-test.c | 8 +++++---
>>>> 1 file changed, 5 insertions(+), 3 deletions(-)
>>>
>>> Seems to cut the elapsed realtime for the pseries board
>>> down from about 90s to 55s. Hopefully that plus the
>>> boosted timeout will help.
>>>
>>> Tested-by: Peter Maydell <peter.maydell@linaro.org>
>>
>> Peter, will you merge this directly, or do you want me to take it
>> through my tree?
>
> I just did a full test with the intention of merging it into
> master, and I noticed it causes new warnings on the sparc
> prom tests:
>
> TEST: tests/prom-env-test... (pid=17171)
> /sparc/prom-env/SPARCbook:
> Warning: nic
> lance.0 has no peer
> OK
> /sparc/prom-env/Voyager:
> Warning: nic
> lance.0 has no peer
> OK
> /sparc/prom-env/SS-20:
> Warning: nic
> lance.0 has no peer
> OK
> PASS: tests/prom-env-test
>
> So it needs some tweaking, I think.
D'oh, sorry, I should have checked that ... it's likely of the new
"-nodefaults" flag ... I'll have a look.
Thomas
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-02-10 12:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-09 14:13 [Qemu-devel] [PATCH] tests/prom-env: Ease time-out problems on slow hosts Thomas Huth
2017-02-09 14:37 ` Peter Maydell
2017-02-09 23:15 ` David Gibson
2017-02-10 12:48 ` Peter Maydell
2017-02-10 12:51 ` Thomas Huth
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).