search for: cgrule

Displaying 7 results from an estimated 7 matches for "cgrule".

Did you mean: cgrules
2014 Dec 14
0
Difficulty configuring Cgroups on redhat/centos
...in_bytes" for all process created by libvirt.But i am not able to achieve this on RHEL systems in Ubuntu servers creating memory cgroup for "libvirt-qemu" user solves the issue.But in case of RHEL system i tried to create a group by editing "cgconfig.conf" and then changing cgrules.conf and restarted cgconfig and libvirtd but still virtual machines are not following what is mentioned in config,instead they follow cgroup libvirt/qemu/virtualmachine-name ,is there any way i can set global cgroup values for all process rather editing each process configuration or how can i conf...
2014 Feb 09
3
libvirt/qemu and cgroups
...agement. Even after long hours of reading, I am not quite sure about how to deal with the cgroups facilities. First, do I really need to care about all that, or libvirt and systemd will manage the resource in an efficient way right out of the box? If not, It's all about /etc/cgconfig.conf and cgrules.conf. I am honestly not sure : -what are the correct mount points for cpu, memory etc in the /sys/fs/cgroup directory . - which directories am I supposed to mk, if any ? Then, Archwiki[1] says: # cgcreate -a $USER -g memory,cpu:groupname - what is the groupename I shall create (qemu*, MyMachi...
2013 Mar 14
1
cgroups not working?
Hi, I'm trying to use cgroups to limit the apache webserver but this doesn't seem to work as far as I can tell. I modified cgconfig.conf like this: group webserver { cpu { cpu.shares="250"; } } and addes this to cgrules.conf: *:httpd * webserver Looking into the "webserver" cgroup shows that the pid's of the httpd processes are correctly assigned: $ cat /cgroup/cpu/webserver/tasks 6191 6193 6194 6195 6196 6197 6207 Yet when I run a php file with a dummy loop I get a process...
2014 Dec 15
0
C group hierarchy and libvirtd
...; } task { uid = qemu; gid = kvm; } } memory { memory.limit_in_bytes = 61G; } } and also added "CGROUP_DAEMON=memory:/mygroup" in sysconfig/libvirtd and in cgrules.conf and then restarted services. Now i can see created virtual machines use cgroup hierarchy "/cgroup/memory/mygroup/libvirt/qemu/virtualmachine1/" instead of "/cgroup/memory/libvirt/qemu/virtualmachine1/". The issue is "memory.limit_in_bytes" set to "mygroup&...
2014 Dec 17
0
Again with same Cgroup issue :)
...rmanent solution to limit host RAM to particular value,tried creating a separate hierarchy "mykvm" and changed in sysconfig/libvirtd after that vm's memory cgroup reflects this.But it is not obeying "memory.limit_in_bytes" set in "mykvm" group,i als specified it in cgrules.conf and restarted it.If i change that in "/cgconfig/memory/mykvm/libvirt/qemu/memory.limit_in_bytes " its working.But that is dynamic as i am not able to find a way to mention that in "cgconfig.conf". How can i make sub hierarchies follow what is set in parent cgroup? eg: if...
2014 Feb 15
2
lxc and cgroups
...; gid = 1004; } # who can add task task { uid = 1000; gid = 1004; } } # create this group in the controllers cpu { } cpuset { } memory { } devices { } freezer { } net_cls { } blkio { } } - /etc/cgrules is deafult one, so everything is commented. Maybe shall I edit a line ?? - gabx@hortensia ➤➤ ~ # cat /proc/cgroups #subsys_name hierarchy num_cgroups enabled cpuset 3 5 1 cpu 4 4 1 cpuacct 4 4 1 memory 5 5 1 devices 6 4 1 freezer 7 5...
2011 Aug 25
6
manage sudoers with augeas
Hello, I am trying to use augeas via puppet, augeas { "mailops": context => "/files/etc/sudoers", changes => [ "set spec[user = ''%mail-ops'']/user %mail-ops", "set spec[user = ''%mail-ops'']/host_group/host ALL", "set spec[user = ''%mail-ops'']/host_group/command[1] \"/bin/su