Displaying 20 results from an estimated 124 matches for "cpu_tim".
Did you mean:
cpu_time
2012 Apr 16
2
What does cpu_time returned by virDomainGetCPUStats mean?
...interesting' thing involving virDomainGetCPUStats(). I
call it for cpu usage consumed by a domain and get a array of
virTypedParameter. My system is 2-core and hyperviser return 1
parameter per cpu. So the contents of the array is like this.
virTypedParameter[0]
{
.fiedl = "cpu_time"
.type = 4
.value.ul = 51640610899
}
virTypedParameter[1]
{
.field = "cpu_time"
.type = 4
.value.ul = 55302820304
}
I thought this value store the run time of the cpu since last boot.
But I find I was wrong because this val...
2005 Feb 23
19
Calculating real cpu usage of Xen domains correctly!
...c 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...
2012 Apr 16
1
What's the precision of the domain cpu stats?
Hi, everyone
I'm using libvirt and resort to virDomainGetCPUStats for cpu
usage by one domain. In my system, Ubuntu-11.10 64bit with 2 cores and
Qemu Hyperviser, this function returns something like this:
virTypedParameter[0]
{
field: "cpu_time"
type: 4
value.ul 51640610899
}
virTypedParameter[1]
{
field: "cpu_time"
type: 4
value.ul 55302820304
}
This 51640610899 and 55302820304 kind of conflict the result
returned by "cat /pr...
2008 Feb 14
5
On an eight cpu system domU ''cap'' can only be set to 100
...(uuid 00000000-0000-0000-0000-000000000000)
(vcpus 8)
(cpu_weight 1.0)
(memory 256)
(shadow_memory 0)
(maxmem 256)
(features )
(name Domain-0)
(on_poweroff destroy)
(on_reboot restart)
(on_crash restart)
(state r-----)
(shutdown_reason poweroff)
(cpu_time 458.198750944)
(online_vcpus 8)
)
(domain
(domid 5)
(uuid f9070996-4ae2-bbc6-ad88-80e0da1a13f1)
(vcpus 1)
(cpu_weight 1.0)
(memory 1024)
(shadow_memory 0)
(maxmem 2048)
(features )
(name dev-services)
(on_poweroff destroy)
(on_reboot restart)
(on...
2005 Aug 08
1
[PATCH] Fix domain CPU time calculation to count all VCPU times correctly
Currently, the getdomaininfo function (used to fill in a
dom0_getdomaininfo_t for a domain) calculates a domain''s total CPU time
from its VCPU times using the code:
if ( v->cpu_time > cpu_time )
cpu_time += v->cpu_time;
This causes a VCPU''s time to only be counted if it is greater than the
current total; so if VCPU0 has 10 seconds and VCPU1 has 5, the total
will be 10, but if VCPU0 has 5 and VCPU10 has 10, the total will be 15.
Is there a reason for...
2008 Sep 03
0
XenAPI: why we implement VM_metrics.VCPUs_utilisation as proportion?
hi all,
why we implement VM_metrics.VCPUs_utilisation as the proportion of all cpu time?
Then XenAPI client (xm) can not get the accumulated cpu_time of each vcpu.
I recommend we make VM_metrics.VCPUs_utilisation just the cpu_time which is
maintained by hypervisor.
Then XenAPI client (xm) not only can get the accumulated cpu_time of each vcpu,
but also can calculate the proportion by getting twice the
VM_metrics.VCPUs_utilisation.
Am I missi...
2013 May 29
0
Help needed regarding "virsh cpu-stats test_vm"
...VMs managed by libvirt).
virsh cpu-stats command is not working in our platform :
virsh # cpu-stats test_vm
error: Failed to virDomainGetCPUStats()
error: Requested operation is not valid: cgroup CPUACCT controller is not
mounted
It should show info like this.
$ virsh cpu-stats test_vm
CPU0:
cpu_time 0.025812184 seconds
vcpu_time 0.025812184 seconds
CPU1:
cpu_time 4.893484927 seconds
vcpu_time 4.893484927 seconds
Total:
cpu_time 4.924620941 seconds
user_time 1.060000000 seconds
system_time 3.050000000 seconds
We are suspecting some issue in virsh when it is trying to find to where
that cgroup...
2005 Feb 01
5
Cannot save/migrate domains
...[DEBUG] stream_init>mode=r flags=1 compress=0
[DEBUG] stream_init> unbuffer...
[DEBUG] stream_init< err=0
[DEBUG] Conn_sxpr>
(xfr.hello 1 0)[DEBUG] Conn_sxpr< err=0
[DEBUG] Conn_sxpr>
(xfr.save 9 "(domain (id 9) (name sky) (memory 128) (maxmem 131072)
(state -b---) (cpu 1) (cpu_time 32.860785883) (up_time 59850.3932199)
(start_time 1107193823.05) (console (status listening) (id 13) (domain
9) (local_port 13) (remote_port 1) (console_port 9609)) (devices (vif
(idx 0) (vif 0) (mac aa:00:00:20:ef:69) (evtchn 31 4) (index 0)) (vbd
(idx 0) (vdev 769) (device 2048) (mode w) (de...
2007 May 15
3
[PATCH 1/12] Add suspend/resume to devices owned by Xen
...ACPI-based IOAPIC Configuration
------------------------------------------------------------------------
-- */
diff -r 3ef0510e44d0 xen/arch/x86/time.c
--- a/xen/arch/x86/time.c Tue May 08 10:21:23 2007 +0100
+++ b/xen/arch/x86/time.c Mon May 14 15:05:28 2007 -0400
@@ -60,6 +60,16 @@ struct cpu_time {
static DEFINE_PER_CPU(struct cpu_time, cpu_time);
+struct plt_timer_ops {
+ char* name;
+ int (*init)(void);
+ u64 (*read_count)(void);
+ void (*suspend)(void);
+ void (*resume)(void);
+};
+
+struct plt_timer_ops *cur_timer;
+
/*
* Protected by platform_timer_lock, w...
2012 Mar 20
5
[hybrid]: hang in update_wall_time
Hi Ian/Stefano:
I changed over to the PV clock for hybrid liked we talked at the
hackathon. I still have the hang in update_wall_time() after dom0
switches to xen as clocksource.
The source of hang seems to be in xen stime_local_stamp in cpu_time that
suddenly jumps to a large 64bit value. I''ve been chasing to figure
where that happens, and why for the hybrid and not PV. It appears the
source of jump is time_calibration_std_rendezvous() in
c->stime_master_stamp. Chasing that, seems to come from
read_platform_stime(). The jum...
2013 Apr 19
1
problem when get the vm cpu stat
Hi all,
I try to get vm cpu stat by function "virDomainGetCPUStats", when the vm
Cpu usage is 100%, I can see from the vm shell by "top", when the info
Get by the "virDomainGetCPUStats" show only the "cpu_time" increased,
"user_time" and "system_time" was not changed at all.
Is that correct ? How can I get the vm cpu usage?
nparams = virDomainGetCPUStats(domain, NULL, 0, -1, 1, 0);
virDomainGetCPUStats(domain, params, nparams, -1, 1, 0);
Thanks,
Kevin.
-------------- next pa...
2012 Aug 17
1
getCPUStats of a domain by a non-root user - libvirtError: Requested operation is not valid: cgroup CPUACCT controller is not mounted
...---------------------------
libvirtError Traceback (most recent call last)
<ipython-input-23-9317cf967f6d> in <module>()
----> 1 dom.getCPUStats(True, 0)
/usr/lib/python2.7/site-packages/libvirt.pyc in getCPUStats(self, total,
flags)
1733 [{cpu_time:xxx, user_time:xxx, system_time:xxx}] """
1734 ret = libvirtmod.virDomainGetCPUStats(self._o, total, flags)
-> 1735 if ret is None: raise libvirtError ('virDomainGetCPUStats()
failed', dom=self)
1736 return ret
1737
libvirtError: Requeste...
2013 Jun 07
4
[xen-unstable test] 18092: tolerable FAIL
flight 18092 xen-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/18092/
Failures :-/ but no regressions.
Tests which are failing intermittently (not blocking):
test-amd64-amd64-xl-qemuu-winxpsp3 8 guest-saverestore fail pass in 18090
Tests which did not succeed, but are not blocking:
test-amd64-amd64-xl-pcipt-intel 9 guest-start fail never pass
2006 Feb 11
2
Xend crashes repeatedly starting DomU - please help...
...:48 xend] INFO (SrvDaemon:278) Xend Daemon started
[2006-02-09 15:20:48 xend] INFO (SrvDaemon:282) Xend changeset: Tue Jan
31 11:04:12 2006 +0100 8738:eff96462fde8.
[2006-02-09 15:20:48 xend.XendDomainInfo] DEBUG (XendDomainInfo:199)
XendDomainInfo.recreate({''paused'': 0, ''cpu_time'': 640829708489L,
''ssidref'': 0, ''handle'': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0], ''shutdown_reason'': 0, ''dying'': 0, ''dom'': 0, ''mem_kb'': 128000,
''maxmem_kb''...
2006 May 31
0
Bug#368417: xen-hypervisor-3.0-i386: cannot start NetBSD-HEAD
...--------------
[2006-05-11 22:58:53 xend] INFO (SrvDaemon:278) Xend Daemon started
[2006-05-11 22:58:53 xend] INFO (SrvDaemon:282) Xend changeset: Thu Apr 27 09:58:50 2006 +0100 .
[2006-05-11 22:58:53 xend.XendDomainInfo] DEBUG (XendDomainInfo:200) XendDomainInfo.recreate({'paused': 0, 'cpu_time': 23463898463L, 'ssidref': 0, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'shutdown_reason': 0, 'dying': 0, 'dom': 0, 'mem_kb': 131072, 'maxmem_kb': -4, 'max_vcpu_id': 1, 'crashed': 0, 'running': 1,...
2006 May 31
0
[pakrat@private.neotoma.org: xen-hypervisor-3.0-i386: cannot start NetBSD-HEAD]
...'pty'
[2006-05-11 22:58:53 xend] INFO (SrvDaemon:278) Xend Daemon started
[2006-05-11 22:58:53 xend] INFO (SrvDaemon:282) Xend changeset: Thu Apr 27 09:58:50 2006 +0100 .
[2006-05-11 22:58:53 xend.XendDomainInfo] DEBUG (XendDomainInfo:200) XendDomainInfo.recreate({'paused': 0, 'cpu_time': 23463898463L, 'ssidref': 0, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'shutdown_reason': 0, 'dying': 0, 'dom': 0, 'mem_kb': 131072, 'maxmem_kb': -4, 'max_vcpu_id': 1, 'crashed': 0, 'running': 1,...
2014 Mar 12
4
Problem in getting memory statistics
Hello,
I need to get how much memory is used by a guest system, in order to
implement some monitoring function which tells me if the system is
overstressed.
I am currently using java apis and the binding which was suggested to me was
Domain.memoryStats();
This is a binding to int virDomainMemoryStats
(virDomainPtr<http://libvirt.org/html/libvirt-libvirt.html#virDomainPtr>dom,
2007 May 24
4
host information in domU over /proc or /sys filesystem
Hi,
I have a few questions. But lets start with the background:
Several other virtualization technologies beside Xen do provide the
possibility to get configuration information of the VM itself and the
host it is running on through the /proc file system. These technologies
are for example zLinux or Linux on ppc64.
This feature is very important for quality of service aspects. How many
2007 Dec 03
8
xm create - Xend has probably crashed! Invalid or missing HTTP status code.
Hi,
I have compiled xen-unstable (using hg clone
http://xenbits.xensource.com/xen-unstable.hg).
I have successfully booted into the dom0 kernel.
output of xm list:
Name ID Mem VCPUs State
Time(s)
Domain-0 0 932 1 r----- 591.2
But whenever I xm create, I get:
# xm create /etc/xen/domu1
Using config file
2009 Jun 11
3
Gathering "metal" stats
...ualized I don’t know if I can trust this data.
I’m aware that /proc/stat is unusable as Dom0 will not see cycles that DomUs
are stealing, and thus it does not give me accurate utilization of the metal
– I know that I can calculate the actual CPU usage of each VM using “vm list
–long” and comparing cpu_time to uptime, so that’s not a problem.
The issue arises when I attempt to get IO stats – DomUs see their own ‘sda1’
(or whichever) – I don’t know if this means that the ‘sda’ that Dom0 sees is
the real hardware or an abstraction. The question I have is: do IO
operations on DomUs result in IO operatio...