Displaying 20 results from an estimated 237 matches for "cpuacct".
2015 Jul 08
2
cpuacct and emulator/cpuacct
Hello,
Does it exist some documentation concerning following topic ?
What's difference between following perf counters :
/cgroup/cpuacct/libvirt/qemu/test/cpuacct.usage
and
/cgroup/cpuacct/libvirt/qemu/test/emulator/cpuacct.usage
Thx .
Regards,
J.P. Ribeauville
P: +33.(0).1.47.17.27.78
Puteaux 3 Etage 5 Bureau 4
jpribeauville@axway.com<mailto:jpribeauville@axway.com>
http://www.axway.com<http://www.axway.com/>...
2015 Sep 24
1
Guest cpuacct counters and others location
...ece of code ( C langage) uses cgroups to retrieve counters related to cpu and memory usage related to KVM guests hosted by the host where this code runs.
I noticed that depending on the O.S. running on the host , these counters are not found at the same location :
CentOS 7 :
ls /sys/fs/cgroup/cpuacct/machine.slice/machine-qemu\\x2drhel6.0.scope/vcpu0
cgroup.clone_children cgroup.procs cpuacct.usage cpu.cfs_period_us cpu.rt_period_us cpu.shares notify_on_release
cgroup.event_control cpuacct.stat cpuacct.usage_percpu cpu.cfs_quota_us cpu.rt_runtime_us cpu.stat tasks
]#
RH...
2015 Jul 09
0
Re: cpuacct and emulator/cpuacct
On Wed, Jul 08, 2015 at 09:11:11AM +0000, Jean-Pierre Ribeauville wrote:
>Hello,
>
>Does it exist some documentation concerning following topic ?
>
>What's difference between following perf counters :
>
>/cgroup/cpuacct/libvirt/qemu/test/cpuacct.usage
>and
>/cgroup/cpuacct/libvirt/qemu/test/emulator/cpuacct.usage
>
I don't know from the top of my head whether the accounting is
effective for all tasks in the current group (i.e. /test/cpuacct.usage
only accounts for /test/tasks) or also subgroups. Any...
2013 Aug 21
2
virsh "cpu-stats" not working !!!
...p "libvirt|qemu"
> qemu-kvm-0.14.1-1_WR4.3.x86_64_XXX.x86_64
> libvirt-1.0.6-1_WR4.3.x86_64_XXX.2.x86_64
>
> Problem :
>
> # virsh cpu-stats CLA-0
> error: Failed to retrieve CPU statistics for domain 'CLA-0'
> *error: internal error error accessing cgroup cpuacct for vcpu*
>
> Related info :
>
> # cat /proc/cgroups
> #subsys_name hierarchy num_cgroups enabled
> cpuset 3 4 1
> ns 0 1 1
> cpu...
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
...sically the
following steps:
import libvirt
conn = libvirt.openReadOnly(None)
dom = conn.lookupByUUIDString('268e38ea-1bc7-41e4-c19e-8eff682e58e4')
dom.getCPUStats(True, 0)
However, they result in the following error:
libvir: QEMU Driver error : 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-pa...
2012 Dec 13
1
RHEL6 cgroup error after a few days of uptime
...cfs_period_us
/cgroup/cpu/libvirt/qemu/r04s14/cpu.cfs_quota_us
/cgroup/cpu/libvirt/qemu/r04s14/cpu.shares
/cgroup/cpu/libvirt/qemu/r04s14/cgroup.event_control
/cgroup/cpu/libvirt/qemu/r04s14/notify_on_release
/cgroup/cpu/libvirt/qemu/r04s14/cgroup.procs
/cgroup/cpu/libvirt/qemu/r04s14/tasks
/cgroup/cpuacct/libvirt/qemu/r04s14
/cgroup/cpuacct/libvirt/qemu/r04s14/cpuacct.stat
/cgroup/cpuacct/libvirt/qemu/r04s14/cpuacct.usage_percpu
/cgroup/cpuacct/libvirt/qemu/r04s14/cpuacct.usage
/cgroup/cpuacct/libvirt/qemu/r04s14/cgroup.event_control
/cgroup/cpuacct/libvirt/qemu/r04s14/notify_on_release
/cgroup/cpua...
2012 Nov 07
1
libvirt with lxc: internal error The 'cpuacct', 'devices' & 'memory' cgroups controllers must be mounted
Hi,
I'm running OpenStack to manage LXC instance through libvirt. The same
setting runs perfectly well on Ubuntu 12.04, while on CentOS 6u3, libvirt
dumped following message when starting lxc instance.
virsh -c lxc:/// start instance-00000032
error: internal error The 'cpuacct', 'devices' & 'memory' cgroups
controllers must be mounted
Really appreciated if someone could shed some lights. Seems to some libvirt
/ cgroup settings related.
$ cat /proc/mounts
..
none /cgroup cgroup
rw,relatime,net_prio,perf_event,blkio,net_cls,freezer,devices,memory...
2017 Feb 27
2
Redhat 7: cgroup CPUACCT controller is not mounted
...ts for each Core (using python API or not) but face the following problem:
- When I issue the command "virsh --readonly cpu-stats MY_DOMAIN" I got the following error:
error: Failed to retrieve CPU statistics for domain 'MY_DOMAIN'
error: Requested operation is not valid: cgroup CPUACCT controller is not mounted
- I checked that cgroup is well mounted:
$ cat /proc/mounts | grep cgroup
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0 cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=s...
2013 Aug 21
2
Information needed regarding the libvirt version libvirt-1.0.6-1
...from libvirt-1.0.5 to libvirt-1.0.6-1
on our linux machine. After this upgrade "virsh cpu-stats <domain>" command
is not working on our HardWare.
*virsh # cpu-stats test
error: Failed to retrieve CPU statistics for domain 'test'
error: internal error error accessing cgroup cpuacct for vcpu*
**
*# cat /proc/cgroups
#subsys_name hierarchy num_cgroups enabled
cpuset 3 4 1
ns 0 1 1
cpu 1 6 1
cpuacct 7 3 1
memory 2 3 1
freezer 0 1 1
net_cls 0 1 1
blkio 0 1 1
*...
2018 Jan 18
3
Re: Could not destroy domain, current job is remoteDispatchConnectGetAllDomainStats
...8-01-17 13:54:20.005+0000:
>> 20438: warning : qemuGetProcessInfo:1460 : cannot parse process status
>> data
>> Jan 17 13:54:20 server1 libvirtd[20437]: 2018-01-17 13:54:20.006+0000:
>> 20441: error : virFileReadAll:1420 : Failed to open file
>> '/sys/fs/cgroup/cpu,cpuacct/machine.slice/machine-qemu\x2d36\x2dDOMAIN1.scope/cpuacct.usage':
>>
>> No such file or directory
>> Jan 17 13:54:20 server1 libvirtd[20437]: 2018-01-17 13:54:20.006+0000:
>> 20441: error : virCgroupGetValueStr:844 : Unable to read from
>> '/sys/fs/cgroup/cpu,c...
2013 Aug 23
2
Re: virsh "cpu-stats" not working !!!
Hi Eric,
Thanks for your valuable time and comments.
>> Are you sure cpuacct was mounted prior to libvirtd starting?
Yes, we are mounting cpuacct before starting the libvirtd daemon.
>> Libvirt won't mount cgroups;
Yes, Agree.
>>it only uses what was mounted at the time it was started.
But we are mounting it well before it is started.
We are facing the iss...
2017 Feb 28
2
Re: Redhat 7: cgroup CPUACCT controller is not mounted
...an I run a domain as non-root and be able to access the cpu information?
-----Original Message-----
From: Martin Kletzander [mailto:mkletzan@redhat.com]
Sent: Tuesday, February 28, 2017 16:18
To: EL FATHI Youssef OBS/OINIS
Cc: libvirt-users@redhat.com
Subject: Re: [libvirt-users] Redhat 7: cgroup CPUACCT controller is not mounted
On Mon, Feb 27, 2017 at 01:44:44PM +0000, youssef.elfathi@orange.com wrote:
>Hi,
>
>With a non-root user account, I am launching virtual machines and would like to get CPU stats for each Core (using python API or not) but face the following problem:
>
>- Wh...
2013 Jun 07
2
Re: cgroup error starting domains
On Thu, Jun 06, 2013 at 06:26:23PM +0200, Matteo Bernardini wrote:
> On 05/22/2013 11:01 AM, Matteo Bernardini wrote:
> > Hi,
> >
> > I've got a small problem using libvirt-1.0.5.1 (with the latest patch in
> > the v1.0.5-maint branch on git added).
> > I'm using slackware64-14.0 but the situation is exactly the same described
> > on a debian bug
2013 Jun 07
2
Re: cgroup error starting domains
On Fri, Jun 07, 2013 at 01:07:01PM +0200, Matteo Bernardini wrote:
> Thanks Daniel for helping with this :)
>
> # cat /proc/mounts
[snip]
> cgroup /sys/fs/cgroup cgroup rw,relatime,bfqio,hugetlb,perf_event,blkio,net_cls,freezer,devices,memory,cpuacct,cpu,cpuset,clone_children
Ok so here you've mounted all the cgroups controllers at the same
place. This is really strongly recommended against. It is better
to mount each controller separately at
/sys/fs/cgroup/<controller name>
and have /sys/fs/cgroup as a tmpfs.
http://www.freede...
2018 Jan 17
4
Could not destroy domain, current job is remoteDispatchConnectGetAllDomainStats
...Jan 17 13:54:20 server1 libvirtd[20437]: 2018-01-17 13:54:20.005+0000:
20438: warning : qemuGetProcessInfo:1460 : cannot parse process status data
Jan 17 13:54:20 server1 libvirtd[20437]: 2018-01-17 13:54:20.006+0000:
20441: error : virFileReadAll:1420 : Failed to open file
'/sys/fs/cgroup/cpu,cpuacct/machine.slice/machine-qemu\x2d36\x2dDOMAIN1.scope/cpuacct.usage':
No such file or directory
Jan 17 13:54:20 server1 libvirtd[20437]: 2018-01-17 13:54:20.006+0000:
20441: error : virCgroupGetValueStr:844 : Unable to read from
'/sys/fs/cgroup/cpu,cpuacct/machine.slice/machine-qemu\x2d36\x2dDO...
2017 Feb 28
0
Re: Redhat 7: cgroup CPUACCT controller is not mounted
...ing python API or not) but face the following problem:
>
>- When I issue the command "virsh --readonly cpu-stats MY_DOMAIN" I got the following error:
>
>error: Failed to retrieve CPU statistics for domain 'MY_DOMAIN'
>error: Requested operation is not valid: cgroup CPUACCT controller is not mounted
>
Since you are running the domain in session mode (non-root), libvirtd
doesn't have the privileges for creating a mount point for the domain
and hence the controller is available to use. So I guess it's just a
matter of the error message being ambiguous.
2011 Jan 23
2
Cgroup
...ot;/dev/full", "/dev/zero",
"/dev/random", "/dev/urandom",
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
"/dev/rtc", "/dev/hpet", "/dev/net/tun",
]
/etc/cgconfig.conf
mount {
cpu = /dev/cgroup/cpu;
cpuacct = /dev/cgroup/cpuacct;
devices = /dev/cgroup/devices;
# memory = /dev/cgroup/memory;
blkio = /dev/cgroup/blkio;
}
When I'm running virsh, and want to change cpu shares I receive an error
virsh # schedinfo --set cpu.shares=2048 test
Scheduler : posix
error: internal error cannot find c...
2017 Feb 28
0
Re: Redhat 7: cgroup CPUACCT controller is not mounted
On Tue, Feb 28, 2017 at 03:22:54PM +0000, youssef.elfathi@orange.com wrote:
>Thanks Martin to confirm that the issue is due to privilege access. How can I run a domain as non-root and be able to access the cpu information?
>
You need to use the system libvirt daemon, so you need to connect to
qemu:///system instead of qemu:///session. Good write-up about the
differences is here:
2013 Sep 03
2
No valid cgroup for machine...
...m to be mounted:
cgroup on /sys/fs/cgroup/systemd type cgroup
(rw,nosuid,nodev,noexec,relatime,release_agent=/run/current-system/systemd/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup
(rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup
(rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup
(rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup
(rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup
(rw,nosuid,nodev,noexec,...
2019 Aug 29
0
[libvirtd] qemu_process: reset CPU affinity to all enabled CPUs, when runs in custom cpuset
...roup/cpuset/machine.slice/machine-qemu\x2d1\x2dvm12vms\x2d2coreshost1.scope/emulator/cpuset.cpus.
But finally libvirtd tries to reset inherited cpus and set there: "0-39"
2019-08-28 15:11:03.357+0000: 25536: debug : virCgroupDetect:747 :
Detected mount/mapping 0:cpu at /sys/fs/cgroup/cpu,cpuacct in
/machine.slice/machine-qemu\x2d4\x2dvm12vms\x2d2coreshost1.scope/emulator
for pid -1
2019-08-28 15:11:03.357+0000: 25536: debug : virCgroupDetect:747 :
Detected mount/mapping 1:cpuacct at /sys/fs/cgroup/cpu,cpuacct in
/machine.slice/machine-qemu\x2d4\x2dvm12vms\x2d2coreshost1.scope/emulator
for...