From: Keir Fraser Subject: Re: [PATCH] Fix domain CPU time calculation to count all VCPU times correctly Date: Mon, 8 Aug 2005 19:37:28 +0100 Message-ID: <460f225bd68f59ef2ee7cead8c991091@cl.cam.ac.uk> References: <1123525364.2881.13.camel@localhost.localdomain> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1123525364.2881.13.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Josh Triplett Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 8 Aug 2005, at 19:22, Josh Triplett wrote: > This causes a VCPU's time to only be counted if it is greater than the > current total; so if VCPU0 has 10 seconds and VCPU1 has 5, the total > will be 10, but if VCPU0 has 5 and VCPU10 has 10, the total will be 15. > Is there a reason for this behavior? It seems more useful and > intuitive > to always total the VCPU times to obtain the CPU time. I think we used to return the highest VCPU time as domain time. Someone decided to instead sum across all VCPU times, but I guess forgot to remove the conditional. :-) -- Keir