From: Keir Fraser Subject: Re: [PATCH 1/2] cpu steal time accounting Date: Thu, 23 Feb 2006 08:40:43 +0000 Message-ID: <259022e94a98f0f5df18a1fe678ccb89@cl.cam.ac.uk> References: <43FCCB2C.5000408@vmware.com> <43FCFA9F.8080407@vmware.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <43FCFA9F.8080407@vmware.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Hecht Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 22 Feb 2006, at 23:58, Dan Hecht wrote: > To solve this, it may be best to have the hypervisor interface expose > per-vcpu stolen time directly, rather than vcpu_time. Then the guest > does not need to try to guess whether to charge (system_time - > vcpu_time) against idle or steal. Yes, the distinction between stolen and available time does makes sense (although I'm not sure 'available' is a great name) otherwise you can't account for wakeup latencies. account_steal_time() would need to be modified in Linux, though, as we would not need its dodgy heuristic for deciding whether to account to stolen time or iowait/idle. -- Keir