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] Console Daemon

To: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Console Daemon
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Tue, 02 Aug 2005 11:30:28 -0500
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Rusty Russell <rusty@xxxxxxxxxxxxxxx>, Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>, Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>, Robert Read <robert@xxxxxxxxxxxxx>
Delivery-date: Tue, 02 Aug 2005 16:29:32 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A95E2296287EAD4EB592B5DEEFCE0E9D2828DE@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D2828DE@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050317)
Ian Pratt wrote:

Today it buffers N bytes worth of data in memory regardless of whether the tty is connected (or reading from). How much it buffers is configurable via the store (by default the buffer has no limit so ensure console data is never lost).

If you connect and disconnect do you continue from where you left off or
get sent the last N bytes again?
You continue where you left off.

I think the former behaviour is definitely preferable, or at the very
least should be a configuration option.
What I was thinking is having the following layout in the store:

/domain/<uuid>/console/tty
/domain/<uuid>/console/limit
/domain/<uuid>/console/history

tty is obviously the tty for the domain (if tty doesn't exist, it means someone is connected already)

limit is the maximum amount of data (in bytes) that will be buffered

history is the amount of history (in bytes) that will be saved. When a client reconnects, they will first receive whatever's in the history.

Does this seem agreeable?

Please can you explain how tty's get allocated.
In the current scheme, a tty is allocated for each domain whenever data arrives for the domain or if consoled detects a new domain was created. It currently polls to see if new domains were created every second. You can avoid the race condition by signalling consoled which will break it out of it's select loop. Not very pretty but it solves the problem of something like xm create -c.

Regards,

Anthony Liguori

Thanks,
Ian
Keeping a history wouldn't be a hard change. I'll submit some patches.

Regards,

Anthony Liguori

Thanks,
Ian






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