* [gentoo-commits] gentoo-x86 commit in app-emulation/virt-manager/files: virt-manager-0.8.7-vcpu-stats.patch virt-manager-0.8.4-default-keyring.patch virt-manager-0.8.4-customize-dialog-xmlparsedoc.patch virt-manager-0.8.2-ssh-tunnel-shutdown.patch
@ 2011-06-07 17:11 Doug Goldstein (cardoe)
0 siblings, 0 replies; only message in thread
From: Doug Goldstein (cardoe) @ 2011-06-07 17:11 UTC (permalink / raw
To: gentoo-commits
cardoe 11/06/07 17:11:50
Added: virt-manager-0.8.7-vcpu-stats.patch
Removed: virt-manager-0.8.4-default-keyring.patch
virt-manager-0.8.4-customize-dialog-xmlparsedoc.patch
virt-manager-0.8.2-ssh-tunnel-shutdown.patch
Log:
Add back a patch from Michael Williams <spacex@gmail.com> that shows CPU usage per guest instead of as a system whole. Extremely useful when you have a 16 core host with 40 VMs running. Additionally, dropped some stale patches from files/
(Portage version: 2.1.10/cvs/Linux x86_64)
Revision Changes Path
1.1 app-emulation/virt-manager/files/virt-manager-0.8.7-vcpu-stats.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virt-manager/files/virt-manager-0.8.7-vcpu-stats.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virt-manager/files/virt-manager-0.8.7-vcpu-stats.patch?rev=1.1&content-type=text/plain
Index: virt-manager-0.8.7-vcpu-stats.patch
===================================================================
diff -ur a/src/virtManager/domain.py b/src/virtManager/domain.py
--- a/src/virtManager/domain.py 2011-03-24 15:39:28.000000000 -0500
+++ b/src/virtManager/domain.py 2011-06-07 11:33:59.000000000 -0500
@@ -765,8 +765,12 @@
pcentCpuTime = (
(cpuTime) * 100.0 /
- (((now - prevTimestamp) * 1000.0 * 1000.0 * 1000.0) *
- self.connection.host_active_processor_count()))
+ (((now - prevTimestamp) * 1000.0 * 1000.0 * 1000.0) ))
+
+ if self.vcpu_count() > 0:
+ pcentCpuTime /= self.vcpu_count()
+ else:
+ pcentCpuTime /= self.connection.host_active_processor_count()))
# Due to timing diffs between getting wall time & getting
# the domain's time, its possible to go a tiny bit over
Only in b/src/virtManager: domain.py.orig
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-07 17:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-07 17:11 [gentoo-commits] gentoo-x86 commit in app-emulation/virt-manager/files: virt-manager-0.8.7-vcpu-stats.patch virt-manager-0.8.4-default-keyring.patch virt-manager-0.8.4-customize-dialog-xmlparsedoc.patch virt-manager-0.8.2-ssh-tunnel-shutdown.patch Doug Goldstein (cardoe)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox