From mboxrd@z Thu Jan 1 00:00:00 1970 From: Priya Subject: Re: Xen timing mode Date: Tue, 23 Feb 2010 15:49:10 -0500 Message-ID: <5c3550fe1002231249u16da3cccw124682598be464ba@mail.gmail.com> References: <5c3550fe1002230912j1a5d0650oa1e355652c8e3062@mail.gmail.com> <5c3550fe1002230929r37d1bd73mdd82fc84ee51d0fd@mail.gmail.com> <4B843A6A.5050102@goop.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1430804804==" Return-path: In-Reply-To: <4B843A6A.5050102@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: "xen-devel@lists.xensource.com" , Keir Fraser List-Id: xen-devel@lists.xenproject.org --===============1430804804== Content-Type: multipart/alternative; boundary=001636ed672487a87704804aae9d --001636ed672487a87704804aae9d Content-Type: text/plain; charset=ISO-8859-1 Thank you very much! On Tue, Feb 23, 2010 at 3:28 PM, Jeremy Fitzhardinge 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@lists.xensource.com > http://lists.xensource.com/xen-devel > > --001636ed672487a87704804aae9d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you very much!



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

" The time that progresses at the same pace as system time, but only w= hile a domain is executing -- it stops while a domain is de-scheduled. Ther= efore 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/instructi= ons like gettimeofday(), hwclock(), rdtsc() can read this domain virtual ti= me.

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


=A0 =A0J

_______________________________________________
Xen-devel mailing list
Xen-deve= l@lists.xensource.com
http://l= ists.xensource.com/xen-devel


--001636ed672487a87704804aae9d-- --===============1430804804== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1430804804==--