WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] PATCH: Add persistent guest & hv logging in xenconsoled

To: "Daniel P. Berrange" <berrange@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] PATCH: Add persistent guest & hv logging in xenconsoled
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Fri, 01 Jun 2007 09:10:36 +0100
Delivery-date: Fri, 01 Jun 2007 01:06:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070531213208.GD15661@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcekJFVJk9QfDBAXEdyIMAAWy6hiGQ==
Thread-topic: [Xen-devel] PATCH: Add persistent guest & hv logging in xenconsoled
User-agent: Microsoft-Entourage/11.3.3.061214
On 31/5/07 22:32, "Daniel P. Berrange" <berrange@xxxxxxxxxx> wrote:

> The first is how to configure & pass the --log arg to xenconsoled. In the
> upstream xen codebase the various daemons (xenstore, xenconsoled, etc)
> are all forked by the tools/misc/xend script (typically in /usr/sbin/xend).
> In Fedora we're intending to ditch this script & just start each daemon
> directly from the init script & thus we can use /etc/sysconfig/xend to
> configure the logging args. Solaris also doesn't use that tools/misc/xend
> script IIRC, having their own scripts for stopping/starting distros. So
> in this patch I've not made any attempt to provide a way to actually pass
> the --log arg to xenconsoled, leaving such decisions upto the distro
> packagers. Any alternate ideas are welcome...

For guest logging it'd be nice to have the option to specify via xenstore
where the log file should be written. Then it could be decided per guest by
xend, perhaps via a config file option. Having a blanket option on the
cmdline *as well* as a fallback is okay though. Other useful options would
be max log size (both in terms of max logging to a file, and max buffering
for the pty), again these could be read from xenstore per guest, with a
cmdline-specifiable fallback.

> When logging hypervisor data we call xc_readconsolering to fetch the data.
> Since we don't want to log the same data over & over again we have to tell
> it to clear the console. So if you enable hypervisor logging in xenconsoled,
> then 'xm dmesg' will no longer show you any data. Personally I don't have
> any problem with this, but if there's a way to reliably consume hypervisor
> logs in an incremental manner without having to clear the data I'm open
> to suggestions...

I thought I'd applied a patch to improve this interface, clearly I haven't
though. I'll look into it.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel