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

xen-devel

[Top] [All Lists]

[Xen-devel] Re: [PATCH] add timeouts to mini-os

To: Grzegorz Milos <gm281@xxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] add timeouts to mini-os
From: Robert Kaiser <rkaiser@xxxxxxxxx>
Date: Mon, 2 Oct 2006 10:02:20 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2006年10月02日 01:36:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <8B56473E-DEFD-4010-ABD5-4E1931C4BD2F@xxxxxxxxx>
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>
Organization: Sysgo AG
References: <200608291442.50081.kaiser@xxxxxxxxxxxxxxxxxxxxxxxxxx> <200610010118.15960.kaiser@xxxxxxxxxxxxxxxxxxxxxxxxxx> <8B56473E-DEFD-4010-ABD5-4E1931C4BD2F@xxxxxxxxx>
Reply-to: rkaiser@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.6.2
Hi Gregor
Am Sonntag, 1. Oktober 2006 20:38 schrieb Grzegorz Milos:
> Hi Robert,
>
> Having timeout timers in MiniOS would be very useful indeed (I had a
> few people asking about that already).
>
> Timers in Xen and Linux are a bit different then your implementation
> for MiniOS (inspect xen/common/timer.c and <linux>/kernel/timer.c for
> more detail). The way that Linux/Xen handles timers is slightly more
> flexible, however the functionality that you could put in Mini-OS
> timer handler is very limited (you can only wake up a thread/set of
> threads really).
Which functionalities would you like to see that are currently missing? 
> I think we can therefore stick to this solution for 
> now. I'll have a look through the code tomorrow, and let you know if
> I have any comments.
Thanks.
(There are few shortcomings of my implementation that I'm well aware of 
myself. For instance, I think it would be more efficient to unlink blocked 
threads from the ready queue and keep the ones with pending timeouts in a 
"timeout" queue, sorted by ascending expiry date. That way, it wouldn't be 
necessary to walk the entire ready queue all the time to see if any timeouts 
have expired: it would suffice to just look at the head of the timeout queue. 
However, my goal was to keep things simple and to not change more than 
absolutely necessary.)
Cheers
Rob
>
> Thanks.
> Gregor
>
> On 1 Oct 2006, at 00:18, Robert Kaiser (FH) wrote:
> > Hi Gregor,
> >
> > attached is a patch to mini-os. It removes the debug print of
> > current time
> > (which didnt work anyway) and adds support for timed sleeps. The
> > application
> > code now has a thread which is activated periodically (once every
> > second) by
> > means of the new sleep function and prints out the current time, so
> > the
> > program now actually does what the README says. The idle thread now
> > blocks as
> > long as necessary (i.e. until the nearest timeout expires) instead
> > if the
> > fixed 10 seconds as before.
> >
> > Please review it and consider for inclusion.
> >
> > Cheers
> >
> > Rob
> > <minios.patch>
-- 
Robert Kaiser
SYSGO AG
Office Mainz
Am Pfaffenstein 14 / D-55270 Klein-Winternheim / Germany
Tel.: +49-6136-814791 / Fax: +49-6136-9948-10
Email: robert.kaiser@xxxxxxxxx / Web: http://www.sysgo.com
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] Block-attach doesn't attach sdx device , Hidetoshi Nishi
Next by Date: Re: [Xen-devel] [PATCH] Paravirt framebuffer backend tools [2/5] , Steven Smith
Previous by Thread: [Xen-devel] Re: [PATCH] add timeouts to mini-os , Grzegorz Milos
Next by Thread: [Xen-devel] Re: [PATCH] add timeouts to mini-os , Grzegorz Milos
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /