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: [PATCH] Re: [Xen-devel] Time went backwards

To: Rik van Riel <riel@xxxxxxxxxx>
Subject: Re: [PATCH] Re: [Xen-devel] Time went backwards
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Tue, 14 Mar 2006 15:20:39 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 14 Mar 2006 15:21:16 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.63.0603141007330.1225@xxxxxxxxxxxxxxxxxxxxxx>
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: <Pine.LNX.4.63.0603101157290.23847@xxxxxxxxxxxxxxxxxxxxxx> <5cee5f1c21deb3039d4a63748ae45b54@xxxxxxxxxxxx> <ad0d34be2ad1520ecc15c7a33bb56024@xxxxxxxxxxxx> <Pine.LNX.4.63.0603101232350.23847@xxxxxxxxxxxxxxxxxxxxxx> <962617b5496bcddd4ca3560862da9e5a@xxxxxxxxxxxx> <Pine.LNX.4.63.0603101656430.31290@xxxxxxxxxxxxxxxxxxxxxx> <50482ad77399d3f8968130be562d1e96@xxxxxxxxxxxx> <Pine.LNX.4.63.0603131650520.25148@xxxxxxxxxxxxxxxxxxxxxx> <Pine.LNX.4.63.0603131730340.25148@xxxxxxxxxxxxxxxxxxxxxx> <Pine.LNX.4.63.0603131803500.25148@xxxxxxxxxxxxxxxxxxxxxx> <2595229dc26f30439cfcf796060bd28e@xxxxxxxxxxxx> <Pine.LNX.4.63.0603141007330.1225@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

On 14 Mar 2006, at 15:13, Rik van Riel wrote:

Tick N:
        delta = 2.2
        stolen = 0.9
        blocked = 0.7

        stolen and blocked will not get incremented, while
        the per-cpu processed_time gets 2 jiffies

But we decrement delta_cpu *before* rounding down. So, after handling stolen and blocked, we'll end up with delta_cpu==0.6 which gets rounded down to 0 and so per-cpu processed_time gets 0 jiffies?

 -- Keir


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