From: Dario Faggioli Subject: Re: confusions on monitoring VM cpu usage in Xen hypervisor Date: Fri, 21 Feb 2014 18:42:57 +0100 Message-ID: <1393004577.32038.843.camel@Solace> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8034296615375592205==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Charles Cc: xen-devel List-Id: xen-devel@lists.xenproject.org --===============8034296615375592205== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Vt01PuDRkEc8Lpx7ujOS" --=-Vt01PuDRkEc8Lpx7ujOS Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On gio, 2014-02-20 at 16:09 +0800, Charles wrote: > Hi everyone, I=E2=80=98m trying to monitor the VM CPU usage in xen hyperv= isor and use the VM CPU usage=20 > information in Xen's Credit Scheduler.=20 > Monitoring how? More important, "use the usage information in Credit" how and for what purpose? Providing as much info as possible on the final goal is often very important for us to be able to help you. > I googled it, and find that most references about this topic is monitorin= g the VM CPU usage information in Domain-0 while not in the Xen hypervisor. > Provided that I really would like you to define better what you mean with "VM CPU usage", what I can say is that credit does not have any load tracking mechanism. Credit2 has, and it would be possible (and nice!) to abstract that from there and make it available for all schedulers. Basically, that means moving some of the code in schedule.c, as well as add some callbacks, to be implemente by the various scheduler (Credit, Credit2, etc). This is something I have on my TODO list since a while, but did not manage to get to it yet. If you think this would be helpful for you too, and you're up for helping, I'll be share to discuss/share more. > I'm now blocking at how to determine the state of vCPU, My understanding = is that vCPU running on a physical CPU doesn't mean it really consumes CPU = cycles, so I could determine the whether vCPU is consuming CPU cycles or no= t? So could you please give me some advice. > Mmm... if a vCPU is _running_ on a pCPU, I would say it is consuming pCPU cycles... But perhaps I am not understanding what you really mean here. So, again, please try to describe your final goal, I'm sure it will help figuring out things better. Regards, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-Vt01PuDRkEc8Lpx7ujOS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEABECAAYFAlMHkCEACgkQk4XaBE3IOsQP2QCfQy0GF0xqkAmWtfmHV+KSWz6g FncAn0zSNQqnOxYTL7wwjfHsZqJoNUBP =WiDK -----END PGP SIGNATURE----- --=-Vt01PuDRkEc8Lpx7ujOS-- --===============8034296615375592205== 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 --===============8034296615375592205==--