[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Xen timing mode


  • To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
  • From: Priya <pbhat@xxxxxxxxxxxx>
  • Date: Tue, 23 Feb 2010 15:49:10 -0500
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
  • Delivery-date: Tue, 23 Feb 2010 12:49:40 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=GveLDNadRPW9uTb+gi3ZowCyGEPvKCkfVgNlmGvhEA400zz9eB6OYb41ekuDhOD/lh 5ZbWNNQPp9khhmBBYJ9u2x7yK+3XJLb2WdhIh+UG3qDA5sna3qvVDgiNrkB+KjmEp6mj lsEpbV9KGL24qUMxY+isiOVUejM/ZzzqNfqFE=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Thank you very much!



On Tue, Feb 23, 2010 at 3:28 PM, Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:
On 02/23/2010 09:29 AM, Priya wrote:
The Xen Interface manual for Xen v2.0 (attached) Page 4 defines Domain - virtual time as

" The time that progresses at the same pace as system time, but only while a domain is executing -- it stops while a domain is de-scheduled. Therefore the share of the CPU that a domain receives is indicated by the rate at which its virtual time increases."

I am interesting in finding out if any of the timing system calls/instructions like gettimeofday(), hwclock(), rdtsc() can read this domain virtual time.

/proc/stat publishes stolen time for each vcpu (second-last column on the "cpuX" lines); you can subtract that from monotonic time to work out how much vcpu the domain has got.


   J

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


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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.