From: Ben Guthro <Benjamin.Guthro@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
Ian Campbell <Ian.Campbell@citrix.com>,
Ben Guthro <Ben.Guthro@citrix.com>
Subject: Re: [PATCH] Introduce an s3 test
Date: Wed, 1 May 2013 07:58:21 -0400 [thread overview]
Message-ID: <5181035D.1030407@citrix.com> (raw)
In-Reply-To: <20864.62687.527969.563181@mariner.uk.xensource.com>
On 05/01/2013 06:56 AM, Ian Jackson wrote:
> Ben Guthro writes ("[PATCH] Introduce an s3 test"):
>> From: root <root@bguthro-desktop.(none)>
>>
>> This test attempts to have an initial pass at introducing a test to catch regressions in S3.
>> It currently just suspends for N seconds, and checks xl dmesg for a partiular message printed
>> when S3 is complete.
>
> Thanks. Most of this looks plausible. I have some comments:
>
>> +# Put the machine to sleep
>> +target_cmd_root($ho, "pm-suspend");
>> +
>> +# Give the machine some time to go to sleep.
>> +sleep (5 + $timeout);
>> +
>> +# check log for resume message
>> +poll_loop(4*$timeout, 2, 's3-confirm-resumed',
>> + target_cmd_output($ho,"xl dmesg | grep 'ACPI S' | tail -1 | " .
>> + "grep -n 'Finishing wakeup from S3 state'"));
>
> Why does this need a poll loop ? Surely after the machine comes out
> of suspend it should be up right away ?
This is a bit of a "first pass" in a test environment I've never used
before. I modeled this after other tests I found in the same dir. If
this is inappropriate, then I suspect you are correct.
I put it in the loop for the case of networking taking some time to come
back online, so if the ssh command failed it would be retried.
Additionally, I have found that the RTC wakeup mechanism is not very
accurate in its timing.
>
>> +# TODO:
>> +# - Check pcpu state
>> +# - Affinity has been restored
>> +# - C-states are not lost
>> +# - CPU pools are all correct
>
> We don't do any cpu affinity testing at all right now. Leaving
> this as a TODO here is fine.
>
>> +# - Check timer queues are correct
>> +# - vcpu_singleshot_timer on every pcpu
>
> I'm not sure I follow this. Wouldn't messed up timer queues cause
> other trouble in the guest ?
Yes, but it has been a common point of failure / problems after S3. I
put this here as a placeholder to verify that everything is still as it
should be.
>
>> +# - Check for kernel Oops
>> +# - Check for Xen WARN
>
> These are a good idea but should perhaps be a separate test step.
Wouldn't you want a warning/oops that was provoked by S3 to be
associated with that test?
>
> Ian.
>
next prev parent reply other threads:[~2013-05-01 11:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-26 17:26 [PATCH] Introduce an s3 test Ben Guthro
2013-05-01 10:56 ` Ian Jackson
2013-05-01 11:23 ` Ian Campbell
2013-05-01 11:58 ` Ben Guthro [this message]
2013-05-02 15:06 ` Ian Jackson
2013-05-02 20:28 ` Ben Guthro
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=5181035D.1030407@citrix.com \
--to=benjamin.guthro@citrix.com \
--cc=Ben.Guthro@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.