From: Andrew Cooper <andrew.cooper3@citrix.com>
To: xen-devel@lists.xen.org
Subject: Re: Using debug-key 'o: Dump IOMMU p2m table, locks up machine
Date: Tue, 4 Sep 2012 14:29:03 +0100 [thread overview]
Message-ID: <5046021F.7020105@citrix.com> (raw)
In-Reply-To: <5045E8B802000078000986F7@nat28.tlf.novell.com>
On 04/09/12 10:40, Jan Beulich wrote:
>>>> On 04.09.12 at 10:54, Keir Fraser <keir@xen.org> wrote:
>> On 04/09/2012 09:38, "Jan Beulich" <JBeulich@suse.com> wrote:
>>
>>>> My pragmatic take would be that: (a) Really long-running handlers that want
>>>> to dump every page mapping of every domain are pretty bloody stupid, and yes
>>>> we should consider if they are worthwhile at all; (b) moderately
>>>> long-running but useful handlers which nonetheless take a long time to dump
>>>> to Xen's console, I would consider a sysctl to allow dom0 to request dump
>>>> into a supplied memory buffer.
>>> At a first glance that sounds like a viable option, assuming that
>>> the bulk of the time otherwise is being spent actually getting the
>>> data out through the serial line. But if the long-running-ness is
>>> in the nature of the keyhandler itself, then this wouldn't help
>>> much though. And I'd be afraid that ought to be the common
>>> case when not running with sync_console, since actual serial
>>> output happens asynchronously and hence shouldn't affect the
>>> latency of the keyhandler's completion too much.
>> Well then, have we actually seen problems with async serial output, a
>> decent-sized serial output buffer, and the 'd'/'0' handlers? Because if not,
>> we don't have a problem to be solved. :)
> To a degree - we have seen (large) systems becoming unstable
> after making use of these keys, but obviously people were
> instructed to use the keys because the system already had some
> sort of problem (e.g. were dead locked on some spin lock, and
> after use of the debug keys additionally got their time screwed
> up).
>
> The 'o' key here just gets this to the extreme, which is why I'm
> wondering whether it was a good decision to add it in the first
> place. And the same would apply to EPT's 'D' key. The more that
> these keys would presumably be used when a guest had a
> problem, yet their use could render the whole system dead
> (whereas 'd' and '0' generally get used when the host is in a
> bad state already). Perhaps a minimal step would be to build/
> enabled these only in debug=y builds? But really this functionality
> should be exposed _only_ through the tools (similar to xenctx
> and lsevtchn) imo (and along those lines I think 'e' should only
> dump Dom0's event channels).
>
> Jan
I would disagree with that final part. I have lost count of the number
of times that I have used the 'e' debug key to diagnose a problem with a
locked up system where dom0 was not necessarily accessible. Getting all
domains information is very useful, even if it can be long at times.
The times when the length is a problem are also the times when the
server is broken to a point that it is not a problem people are
concerned with.
~Andrew
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
--
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com
prev parent reply other threads:[~2012-09-04 13:29 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-31 21:45 Using debug-key 'o: Dump IOMMU p2m table, locks up machine Sander Eikelenboom
2012-08-31 22:24 ` Santosh Jodh
2012-08-31 22:42 ` Sander Eikelenboom
2012-08-31 22:57 ` Santosh Jodh
2012-08-31 23:16 ` Sander Eikelenboom
2012-08-31 23:58 ` Santosh Jodh
2012-09-01 0:42 ` Santosh Jodh
2012-09-03 8:14 ` Jan Beulich
2012-09-01 2:01 ` Keir Fraser
2012-09-01 17:03 ` Santosh Jodh
2012-09-01 19:13 ` Keir Fraser
2012-09-02 2:08 ` Santosh Jodh
2012-09-02 7:13 ` Keir Fraser
2012-09-02 7:19 ` Keir Fraser
2012-09-02 8:43 ` Sander Eikelenboom
2012-09-02 14:58 ` Keir Fraser
2012-09-02 15:14 ` Sander Eikelenboom
2012-09-03 15:20 ` Wei Wang
2012-09-04 8:21 ` Sander Eikelenboom
2012-09-04 16:43 ` Sander Eikelenboom
2012-09-05 10:14 ` Jan Beulich
2012-09-05 10:25 ` Sander Eikelenboom
2012-09-05 10:40 ` Jan Beulich
2012-09-05 10:48 ` Sander Eikelenboom
2012-09-05 11:41 ` Jan Beulich
2012-09-05 12:11 ` Sander Eikelenboom
2012-09-05 14:15 ` Wei Wang
2012-09-05 15:05 ` Jan Beulich
2012-09-05 12:48 ` Wei Wang
2012-09-05 12:30 ` Wei Wang
2012-09-03 8:21 ` Jan Beulich
2012-09-03 8:33 ` Sander Eikelenboom
2012-09-03 9:05 ` Jan Beulich
2012-09-04 7:08 ` Sander Eikelenboom
2012-09-04 7:46 ` Jan Beulich
2012-09-04 8:13 ` Sander Eikelenboom
2012-09-04 9:26 ` Jan Beulich
2012-10-02 20:09 ` Konrad Rzeszutek Wilk
2012-10-03 13:12 ` Jan Beulich
2012-10-02 20:54 ` Matt Wilson
2012-09-20 8:08 ` Jan Beulich
2012-09-28 14:08 ` Sander Eikelenboom
2012-09-28 21:26 ` Jeremy Fitzhardinge
2012-10-02 20:08 ` Konrad Rzeszutek Wilk
2012-09-02 7:42 ` Keir Fraser
2012-09-04 6:35 ` Jan Beulich
2012-09-04 6:52 ` Sander Eikelenboom
2012-09-04 7:01 ` Keir Fraser
2012-09-04 6:59 ` Keir Fraser
2012-09-04 7:55 ` Jan Beulich
2012-09-04 8:04 ` Keir Fraser
2012-09-04 8:11 ` Keir Fraser
2012-09-04 8:20 ` Sander Eikelenboom
2012-09-04 8:38 ` Jan Beulich
2012-09-04 8:54 ` Keir Fraser
2012-09-04 9:40 ` Jan Beulich
2012-09-04 13:29 ` Andrew Cooper [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=5046021F.7020105@citrix.com \
--to=andrew.cooper3@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.