From: Anthony Liguori <aliguori@us.ibm.com>
To: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>
Cc: xen-devel <xen-devel@lists.xensource.com>,
Rusty Russell <rusty@rustcorp.com.au>,
Ian Pratt <Ian.Pratt@cl.cam.ac.uk>,
Christian Limpach <Christian.Limpach@cl.cam.ac.uk>,
Robert Read <robert@xensource.com>
Subject: Re: [PATCH] Console Daemon
Date: Tue, 02 Aug 2005 11:30:28 -0500 [thread overview]
Message-ID: <42EF9FA4.8050606@us.ibm.com> (raw)
In-Reply-To: <A95E2296287EAD4EB592B5DEEFCE0E9D2828DE@liverpoolst.ad.cl.cam.ac.uk>
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
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
>
next prev parent reply other threads:[~2005-08-02 16:30 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-02 15:59 [PATCH] Console Daemon Ian Pratt
2005-08-02 16:30 ` Anthony Liguori [this message]
2005-08-03 2:11 ` Rusty Russell
-- strict thread matches above, loose matches on Subject: below --
2005-08-03 11:13 Ian Pratt
2005-08-03 12:41 ` Keir Fraser
2005-08-03 9:32 Ian Pratt
2005-08-03 10:58 ` Rusty Russell
2005-08-03 11:08 ` Keir Fraser
2005-08-02 17:45 Ian Pratt
2005-08-02 17:49 ` Anthony Liguori
2005-08-02 18:06 ` Christian Limpach
2005-08-02 18:58 ` Anthony Liguori
2005-08-03 2:21 ` Rusty Russell
2005-08-02 17:55 ` Christian Limpach
2005-08-02 14:45 Ian Pratt
2005-08-02 15:05 ` Anthony Liguori
2005-07-26 4:09 Anthony Liguori
2005-07-26 9:29 ` aq
2005-07-26 13:56 ` Anthony Liguori
2005-08-02 12:25 ` Keir Fraser
2005-08-02 15:06 ` Anthony Liguori
2005-08-02 12:26 ` Keir Fraser
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=42EF9FA4.8050606@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=Christian.Limpach@cl.cam.ac.uk \
--cc=Ian.Pratt@cl.cam.ac.uk \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--cc=robert@xensource.com \
--cc=rusty@rustcorp.com.au \
--cc=xen-devel@lists.xensource.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 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.