From: Jerone Young <jyoung5@us.ibm.com>
To: xen-devel <xen-devel@lists.sourceforge.net>
Subject: Calculating real cpu usage of Xen domains correctly!
Date: Wed, 23 Feb 2005 17:29:31 -0600 [thread overview]
Message-ID: <1109201371.5459.35.camel@thinkpad> (raw)
Hi all,
With the new vm-tools we are trying to get top like capabilities going
correctly. Currently we have a program vm-list that has some of this
capability but is dependent on the cpu time given by libxc calls
(xc_get_dom_info & xc_domain_get_cpu_usage). These two functions give
you how much time (in nanoseconds, why is this not documented) the
domain has been actively used. Approaches:
1) CPU time % measured per domain
(The differential of cpu usage time / some differential time) x 100
new_cpu_time-old_cpu_time new_time-old_time
This provides us with the % time the domain had activity ...but does not
give us absolute real CPU usage. Another problem here is sometimes you
will get percentages like %103 usage, because the cpu usage returned by
theses functions looks to be measured slightly over a second.
So this one leads to the next
2) Relative usage .. How much of the total of the cpu times is going
toward a particular domain.
(differential of domain cpu time / total differential of all domains cpu
times)
new_cpu_time-old_cpu_time total_new_cpu_times-total_old_cpu_times
This one gives you a good idea of what percentage a domain took of the
total active cpu usage time.
Nnot sure this the totally correct way of going about doing this.
Anthony Ligouri and I rea bit perplexed if there is a better way. Does
anyone know if there is a better way and is there a way to get the real
CPU usage.
--
Jerone Young
Open Virtualization
IBM Linux Technology Center
jyoung5@us.ibm.com
512-838-1157 (T/L: 678-1157)
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
next reply other threads:[~2005-02-23 23:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-23 23:29 Jerone Young [this message]
2005-02-23 23:44 ` Calculating real cpu usage of Xen domains correctly! Anthony Liguori
-- strict thread matches above, loose matches on Subject: below --
2005-02-24 0:48 Ian Pratt
2005-02-24 1:02 ` Anthony Liguori
2005-02-24 2:10 ` Andrew Theurer
2005-02-25 2:25 ` Matt Ayres
2005-02-25 2:38 ` Anthony Liguori
2005-02-25 16:44 ` Rob Gardner
2005-02-25 17:10 ` Anthony Liguori
2005-02-24 2:37 Ian Pratt
2005-02-24 3:10 ` Anthony Liguori
2005-02-24 13:56 ` John L Griffin
2005-02-24 20:43 ` Anthony Liguori
2005-02-24 21:46 ` John L Griffin
2005-02-24 22:02 ` Keir Fraser
2005-02-24 23:01 ` Anthony Liguori
2005-02-25 3:53 ` John L Griffin
2005-02-25 10:31 ` Stephan Diestelhorst
2005-02-25 10:38 ` Stephan Diestelhorst
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1109201371.5459.35.camel@thinkpad \
--to=jyoung5@us.ibm.com \
--cc=xen-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.