[Fedora-xen] Re: [Libvir] ANNOUNCE: Virt-top - a top-like utility for displaying virtualization stats
Daniel P. Berrange
berrange at redhat.com
Tue Aug 7 03:33:07 UTC 2007
On Mon, Aug 06, 2007 at 07:18:35PM -0400, Tom Horsley wrote:
> On Mon, 6 Aug 2007 22:31:24 +0100
> "Daniel P. Berrange" <berrange at redhat.com> wrote:
>
> > If the time delta between your gettimeofday() calls does not exactly
> > match the time delta between your virDomainGetInfo() calls, and the
> > domain you're measuring is very active then you can end up calcuating
> > > 100% occassionally. Not by much - typically < 1% over, but I don't
> > really see any way around it.
>
> Shucks, it is easy to work around:
>
> if (percentcpu > 100) percentcpu = 100;
When I said "i don't see any way around it" I meant a way which would be
calculating correct/accurate figures. Clamping to 100% is just pretending
the problem doesn't exist - though it is the hack I am already using in
virt-manager.
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
More information about the Fedora-xen
mailing list