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]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux