From: Thomas Huth <thuth@redhat.com>
To: Stefan Weil <sw@weilnetz.de>, "Michael S. Tsirkin" <mst@redhat.com>
Cc: qemu-devel@nongnu.org, Jason Wang <jasowang@redhat.com>,
Victor Kaplansky <victork@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] tests/boot-sector: Increase timeout to 600 seconds
Date: Wed, 27 Sep 2017 07:28:56 +0200 [thread overview]
Message-ID: <ae66b288-8762-061f-5e07-5ac8cdd82d82@redhat.com> (raw)
In-Reply-To: <4b4c8d9e-101b-ee27-b4d2-249890c14d21@weilnetz.de>
On 26.09.2017 22:35, Stefan Weil wrote:
> Am 26.09.2017 um 21:30 schrieb Michael S. Tsirkin:
>> On Fri, Sep 22, 2017 at 05:06:57AM +0200, Thomas Huth wrote:
>>> If QEMU has been compiled with the flags --enable-tcg-interpreter and
>>> --enable-debug, the guest is running incredibly slow. The pxe boot test
>>> can take up to 400 seconds when testing the pseries ppc64 machine. While
>>> we should still look for ways to speed up the test on the pseries machine,
>>> it's better to increase the timeout in this test to 600 seconds anyway to
>>> allow the test to pass successfully now with this unusal configuration
>>> already.
>>>
>>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>>
>> Well I do break things sometimes and I won't be happy about
>> spending 10 minutes waiting for a test to fail.
>>
>> Can we break out of the test if all CPUs are halted with
>> interrupts disabled?
qemu-system-s390x exits automatically in that case (unless you specified
the -no-shutdown parameter) ... what about x86?
Another idea: We could run the "info registers" HMP command regularly
(is there an equivalent for HMP?) to see whether the guest is still
doing something and abort if the all registers stayed the same for,
let's say 30 seconds?
> Any fixed timeout is either too long (when you expect a failing
> test) or too short (when you need time for the test to pass).
>
> Would it be possible to get some speed factor (like Linux
> bogomips) at the beginning of all tests? Then that factor
> could be used later for all tests which currently use a
> hard timeout.
We've got at least three changing factors here: Hardware speed of the
host (MHz / bogomips), speed of TCG / the emulated guest (e.g. TCI is
slow) and current other workload of the host. Even if we get the first
two factors right, the workload of the host can still change very
dynamically, so I think it's quite hard to do a good prediction at the
beginning of the test here.
Thomas
prev parent reply other threads:[~2017-09-27 5:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-22 3:06 [Qemu-devel] [PATCH] tests/boot-sector: Increase timeout to 600 seconds Thomas Huth
2017-09-22 5:17 ` Stefan Weil
2017-09-22 6:21 ` Philippe Mathieu-Daudé
2017-09-22 7:18 ` Thomas Huth
2017-09-24 21:06 ` Michael Tokarev
2017-09-26 19:31 ` Michael S. Tsirkin
2017-09-26 19:35 ` Peter Maydell
2017-09-27 23:14 ` Michael S. Tsirkin
2017-09-27 23:28 ` Peter Maydell
2017-09-26 19:30 ` Michael S. Tsirkin
2017-09-26 20:35 ` Stefan Weil
2017-09-27 5:28 ` Thomas Huth [this message]
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=ae66b288-8762-061f-5e07-5ac8cdd82d82@redhat.com \
--to=thuth@redhat.com \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sw@weilnetz.de \
--cc=victork@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).