Bug 980929
Summary: | RFE: Port to use Systemd DBus API for creating cgroups | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Daniel Berrangé <berrange> | ||||||
Component: | libvirt | Assignee: | Daniel Berrangé <berrange> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 7.0 | CC: | acathrow, ajia, berrange, cwei, dallan, dyuan, gsun, lnovich, lsu, zhwang | ||||||
Target Milestone: | rc | Keywords: | FutureFeature | ||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | libvirt-1.1.1-2.el7 | Doc Type: | Enhancement | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2014-06-13 09:43:49 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Daniel Berrangé
2013-07-03 14:50:03 UTC
First working version posted https://www.redhat.com/archives/libvir-list/2013-July/msg01753.html And for lscgroup: For libvirt-1.1.1-1.el7.x86_64 It's like: ... devices:/ devices:/machine.slice devices:/machine.slice/machine-qemu\x2daaa.scope devices:/machine devices:/machine/aaa.libvirt-qemu freezer:/ freezer:/machine freezer:/machine/aaa.libvirt-qemu freezer:/machine.slice freezer:/machine.slice/machine-qemu\x2daaa.scope ... For libvirt-1.1.1-2.el7.x86_64 It's like: ... devices:/ devices:/machine.slice devices:/machine.slice/machine-qemu\x2daaa.scope devices:/machine freezer:/ freezer:/machine freezer:/machine.slice freezer:/machine.slice/machine-qemu\x2daaa.scope ... I'll attache the full outputs Created attachment 783135 [details]
output of old libvirt
Created attachment 783136 [details]
output of new libvirt
Hi, DB Was the steps in comment 4 & 5 enough to verify this bug? if not can you please give me some sugesstion? thanks, the follwoing content just as the addtional info of the comment 4 & 5. # mount -- cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) 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,relatime,freezer) cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb) -- Basically you want to start a guest (either QEMU or LXC) and then look at /proc/$PID/cgroup If the cgroup directory shown there is named along the lines of "machine-qemu\x2dmyguest.scope" then it is using systemd. If the cgroup directory shown there is named along the lines of "myguest.libvirt-qemu" then it is using the old non-systemd method. Obviously for this bug we want it to be using the systemd style naming. For further examples look at this new document http://libvirt.org/cgroups.html Thanks for DB's response, verify this bug with the latest libvirt packet, the verify steps as following pkg info libvirt-1.1.1-15.el7.x86_64 kernel-3.10.0-60.el7.x86_64 qemu-kvm-rhev-1.5.3-21.el7.x86_64 steps 1.prepare a running guest # virsh list Id Name State ---------------------------------------------------- 13 rhel7 running # ps aux|grep rhel7 qemu 5641 2.3 3.9 4016016 313660 ? Sl 17:36 0:34 /usr/libexec/qemu-kvm -name rhel7 -S -machine pc-i440fx-rhel7.0.0,accel=kvm,usb=off -m 1024 2.Check the cgroup directory,it use the systemd style naming # cat /proc/5641/cgroup 10:hugetlb:/ 9:perf_event:/machine.slice/machine-qemu\x2drhel7.scope 8:blkio:/machine.slice/machine-qemu\x2drhel7.scope 7:net_cls:/machine.slice/machine-qemu\x2drhel7.scope 6:freezer:/machine.slice/machine-qemu\x2drhel7.scope 5:devices:/machine.slice/machine-qemu\x2drhel7.scope 4:memory:/machine.slice/machine-qemu\x2drhel7.scope 3:cpuacct,cpu:/machine.slice/machine-qemu\x2drhel7.scope/emulator 2:cpuset:/machine.slice/machine-qemu\x2drhel7.scope/emulator 1:name=systemd:/machine.slice/machine-qemu\x2drhel7.scope since the cgroup use the systemd style naming, so mark this bug verifed This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |