cgroups on F13 and F14 are ok?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Probably not the best list, but I suppose others are trying to use
their Fedora environments as a test bed for learning how to use
control groups.... before going to production level OS and hw

Attempts done on both F14 and F13 x86_64 but apparently without success..

Reporting the F14 ones, where cg commands were used.
Fedora host is a machine with one quad-core AMD Athlon(tm) II X4 630 Processor

- start a Qemu/KVM wxp guest configured with one cpu and started with pid 4944

- Started the cgconfig service with its default parameters so that I have:
# cat /proc/mounts |grep cg
cgroup /cgroup/cpuset cgroup rw,relatime,cpuset 0 0
cgroup /cgroup/cpu cgroup rw,relatime,cpu 0 0
cgroup /cgroup/cpuacct cgroup rw,relatime,cpuacct 0 0
cgroup /cgroup/memory cgroup rw,relatime,memory 0 0
cgroup /cgroup/devices cgroup rw,relatime,devices 0 0
cgroup /cgroup/freezer cgroup rw,relatime,freezer 0 0
cgroup /cgroup/net_cls cgroup rw,relatime,net_cls 0 0
cgroup /cgroup/ns cgroup rw,relatime,ns 0 0

- created a hierarchy with name wxp and controller cpuset
# cgcreate -g cpuset:/wxp

- configured the hierarchy to use only processors 2,3 (out of 0-4 available)
# cgset -r cpuset.cpus=2-3 wxp

- configured the hierarchy cpuset.mem parameter
(otherwise I get "no space feft on device" error when I then attempt
to put tasks in control group wxp... still to understand the exact
meaning of this parameter)
# cgset -r cpuset.mems=0 wxp

- put my qemu/kvm pid inside the control group wxp
# cgclassify -g cpuset:/wxp 4944

So that now I have:
# cat /cgroup/cpuset/wxp/tasks
4944

- Run cpu freebenchmark 2 on guest

The guest consumes one whole cpu during the bench, but still floating
around all the four available host cpus during the 46 seconds
duration.
At least this is what "top" on host is telling me.....

Is top buggy or cgroups not applied?

I'm keeping on reading rh el 6 control groups manual but in the mean
time if anyone can give advise, I thank him/her in advance.

Gianluca
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux