From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: time command in vm Date: Wed, 03 Sep 2008 12:37:50 +0300 Message-ID: <48BE5AEE.6080204@qumranet.com> References: <48B8B63F.5040603@gmail.com> <48BD6F43.4090107@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Terry , kvm@vger.kernel.org To: "David S. Ahern" Return-path: Received: from il.qumranet.com ([212.179.150.194]:46665 "EHLO il.qumranet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750838AbYICJhw (ORCPT ); Wed, 3 Sep 2008 05:37:52 -0400 In-Reply-To: <48BD6F43.4090107@cisco.com> Sender: kvm-owner@vger.kernel.org List-ID: David S. Ahern wrote: > Terry wrote: > >> Hi All, >> >> When we use time command in vm, we can get 'elapsed time', 'user time' >> and 'system time'. How to explain these three times in detail? For >> example, when we have a shadow page fault, we exit from guest to host >> for handling the fault. So, this handling time should be considered in?? >> >> > > I believe the time spent within kvm handling faults and such for the > guest shows up as system time to the guest. > It depends. If the fault happens in guest userspace, it would be accounted as guest user time. From the guest's point of view, it's just a slow memory access. -- error compiling committee.c: too many arguments to function