From: Keir Fraser Subject: Re: xen console output delay Date: Fri, 14 Mar 2008 09:07:57 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2110739375==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Kuebrich , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============2110739375== Content-type: multipart/alternative; boundary="B_3288330482_3829571" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3288330482_3829571 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Output to the console is rate-limited to 30 event-channel notifications per 200ms. You could be hitting that limit: see the RATE_LIMIT_ values in tools/console/daemon/io.c: the logic is fairly easily defeated to test if that is what is stalling you. Batching your notifications a bit (e.g., once per console line) might actually smooth things out a bit. -- Keir On 14/3/08 00:26, "Dan Kuebrich" wrote: > Hello all, > > I am working on writing a console driver for an OS on Xen and am running into > a strange delay regarding console output. I am using the ring buffer (not the > hypercall) for output, and signaling with HYPERVISOR_event_channel_op after > every character is written. > > The delay seems to occur _only_sometimes_ after a character is output. I have > tracked it using GDB and noted that the delay happens after the characters are > put into the ring buffer and the event channel is notified. Sometimes, the > character appears instantly in the console output. Other times, it takes > several seconds to show up. > > I am using the standard xenconsole reader. Is there some sort of time-based > buffering that occurs in the console output buffer? > > The result I would like to achieve is latency-free console output. > > Thanks, > dan > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel --B_3288330482_3829571 Content-type: text/html; charset="US-ASCII" Content-transfer-encoding: quoted-printable Re: [Xen-devel] xen console output delay Outpu= t to the console is rate-limited to 30 event-channel notifications per 200ms= . You could be hitting that limit: see the RATE_LIMIT_ values in tools/conso= le/daemon/io.c: the logic is fairly easily defeated to test if that is what = is stalling you. Batching your notifications a bit (e.g., once per console l= ine) might actually smooth things out a bit.

 -- Keir

On 14/3/08 00:26, "Dan Kuebrich" <dan.kuebrich@gmail.com> w= rote:

Hello all,

I am working on writing a console driver for an OS on Xen and am running in= to a strange delay regarding console output.  I am using the ring buffe= r (not the hypercall) for output, and signaling with HYPERVISOR_event_channe= l_op after every character is written.

The delay seems to occur _only_sometimes_ after a character is output. &nbs= p;I have tracked it using GDB and noted that the delay happens after the cha= racters are put into the ring buffer and the event channel is notified. &nbs= p;Sometimes, the character appears instantly in the console output.  Ot= her times, it takes several seconds to show up.

I am using the standard xenconsole reader.  Is there some sort of time= -based buffering that occurs in the console output buffer?

The result I would like to achieve is latency-free console output.

Thanks,
dan


____________________= ___________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/x= en-devel

--B_3288330482_3829571-- --===============2110739375== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============2110739375==--