From: "Simon Martin" Subject: Re: PV guest timings Date: Wed, 27 Nov 2013 12:04:15 +0000 Message-ID: References: <1385541995.15201.197.camel@Solace> Reply-To: Simon Martin Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4378718241731434636==" Return-path: In-Reply-To: <1385541995.15201.197.camel@Solace> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: Roland Heusser , Sisu Xi , Andrew Cooper , Joshua Whitehead , "xen-devel@lists.xen.org" , Drek Darkover , Keir Fraser , Nate Studer List-Id: xen-devel@lists.xenproject.org This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --===============4378718241731434636== Content-Type: multipart/related; boundary="=_wombat.nemo.cl-25000-1385554065-0001-2" This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_wombat.nemo.cl-25000-1385554065-0001-2 Content-Type: multipart/alternative; boundary="=_wombat.nemo.cl-25000-1385554065-0001-3" This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_wombat.nemo.cl-25000-1385554065-0001-3 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable >> Latency is the time between the deadline and the handler being=20 >>called. >> >Ok, that's a reasonable definition of latency. However, if you don't >mind another question, 'deadline' here is basically the deadline of the >periodic instance x-1, and you expect a timer firing at that time in >order to activate instance x? Or is that a proper deadline (and the >above is just called period) and you want to have some handler running >when it's missed? Each time the timer handler is called it calculates the deadline for the= =20 next handler and calls VCPUOP_set_singleshot_timer specifying the=20 deadline. The deadline is calculated as the "previous deadline + the=20 period". So handler instance 'n' will set the deadline for handler=20 instance 'n+1' as "deadline n + period". I'm not sure if that answers the question, but that is what is=20 happening. > >> Negative latency means the handler was called before the next >> deadline. >> >Oh, wow... I see. So you're saying that you have timers firing early >than their expiry time? Is that expected? Why is that happening? Yes. As I said I think this is the 100 Hz Hypervisor periodic timer. I=20 need to be able to distinguish between the different timer interrupt=20 sources. Regards. --=_wombat.nemo.cl-25000-1385554065-0001-3 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
 
 Latency is the time between the deadline and the handler being= called.
 
Ok, that's a reasonable definition of latency. However, if you don't=
mind another question, 'deadline' here is basically the deadline of= the
periodic instance x-1, and you expect a timer firing at that time in=
order to activate instance x? Or is that a proper deadline (and the=
above is just called period) and you want to have some handler running=
when it's missed?
Each time the timer handler is called it calculates the deadline for= the next handler and calls VCPUOP_set_singleshot_timer specifying the dead= line. The deadline is calculated as the "previous deadline + the period".= So handler instance 'n' will set the deadline for handler instance 'n+1'= as "deadline n + period".
 
I'm not sure if that answers the question, but that is what is happeni= ng.
 
 
 
  Negative latency means the handler was called before the= next
 deadline.
  
Oh, wow... I see. So you're saying that you have timers firing early=
than their expiry time? Is that expected? Why is that happening?
Yes. As I said I think this is the 100 Hz Hypervisor periodic timer.= I need to be able to distinguish between the different timer interrupt = sources.
 
Regards.
 
--=_wombat.nemo.cl-25000-1385554065-0001-3-- --=_wombat.nemo.cl-25000-1385554065-0001-2 Content-Type: image/png Content-Transfer-Encoding: base64 Content-Disposition: inline Content-Id: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8YQUAAAJeSURBVDhPnZI9aBNxGMbfwaUBcRAEQUGFiIsgxMHPNlJBrRIHmyHJoBSsiEsHxaUu KhKkQwejXouWNkiPDlIFBevlq80HhiKlErDBtmJIY3sxPdSKd03u9f/8E4NDJ4fn3rzP83ufwHH0 ZYSoECYqjRJ9VcmxMkYeIUVIE8o2JnYPcnDgccfM9R+NAqeQWokenDM/3zZq5WGLvz+3MbHDRw5u owJnUW2JrOWu6FxWmFeE9GHmcrg+sQsfOTjwzYL5J+RYHCL152xAX0r4+G1wj1QxeY3t0iM5/3rI wYHHnSzID5Cn+HJf3l64yktaBxcmznNB6+RSPMD24i05scNHDg487mRBLkTKj/edRm3mHBtTp7ha NdnVrbCRusC13CU5scNHDg487mTBTD9p5gefVc2282r0uAS7lWlejbVzdfqsnNjhy1xw4HEnC7L3 KVud9drrqVauy83raejEPxI7/AYDHneyIHmXtF+ZDstKHGErcZStyWNCrWxNtQm56xM7fOSCA487 WaD1krL86rBhRg6xGRNA3M1jNzfz6zs75Zt/c28Xj/dulT5ycOBxJwvGe8iTDG7Lm7E2NqMCmjzD 4Z4W1peLXKlU5FRvbJG+zAUHHney4Nllcox0kfrx6X7djJ9mK+UV/76DPyUfsLX2jRfSIZ4I7pY+ cnDgcScLBgNEA35yDl3cFMkNunQzHRBv3s+Zhwc42reX3z12sSG+BfjIwYHHXbNA8RGFvOQUUl9c 3z43P3rSMKJ+63emy8bEDh85OPAbFUAOIY+QIqQJZRsTO3zkkm8W4PH/YvoDDBGJP7l1I0EAAAAA SUVORK5CYII= --=_wombat.nemo.cl-25000-1385554065-0001-2-- --===============4378718241731434636== 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.xen.org http://lists.xen.org/xen-devel --===============4378718241731434636==--