A *cgroup* associates a set of tasks with a set of parameters for one or more subsystems.

learn more… | top users | synonyms

1
vote
0answers
37 views

how to limit apache memory via cgroups

I'd like to limit the total memory used by user www-data in Ubuntu Server 14.04 LTS. I've read that I can do this via cgroups. This is what I've done so far: # install apt-get install cgroup-bin # ...
0
votes
0answers
73 views

SSH connections cause memory leak in kernfs

I have an issue with my Ubuntu system where memory is leaked each time an ssh connection is opened and closed. I found that the root cause is that after an ssh connection nodes are created and left ...
1
vote
1answer
30 views

cgconfig.conf file is missing

I installed cgroup on my ubuntu (13.9.0) using this command: apt-get install cgroup-bin However, cgconfig.conf file has not been created in /etc and not anywhere else. Did I miss anything?
0
votes
0answers
12 views

Host users in lxc container

I try to build dev environments with different set of libraries in each of containers. It essential for me to use the same users in host and container. Is there anyway to make container use users, ...
1
vote
1answer
17 views

Removing Prior Crontabs

I think I have competing cronjobs. When I run "sudo service cron status" I get the following output: Main PID: 31130 (cron) CGroup: /system.slice/cron.service |-11690 ...
0
votes
1answer
109 views

Couldn't find libcgroup.h in Ubuntu 14.04

libcgroup.h is generally located at /usr/include/libcgroup.h. After searching whole file-system ( find / -type f -name 'libcgroup.h' ), couldn't find it. From where can I get it?
0
votes
0answers
148 views

Cgroup not working in Ubuntu 14.04

I am running LAMP system on ubuntu 14.04. I have an rss feed using php which runs every 1 hour and MySQL stores data. The problem is that when my RSS feed works Apache runs at 100% and MySQL runs at ...
0
votes
1answer
278 views

upstart conf file not being copied

Ubuntu 14.04 chroot apt-get install cgroup-lite invoke-rc.d: unknown initscript, /etc/init.d/cgroup-lite not found. If I download source files (tarball), decompress it, there is a ...
0
votes
1answer
85 views

Prevent cgroup filesystem from getting mounted

On trusty, I installed cgroup-lite which mounts the virtual FS for cgroups subsystems in /sys/fs/cgroup/*. I've executed cgclear (from the cgroup-bin package) and uninstalled/purged cgroup-lite. When ...
0
votes
0answers
313 views

Cgroups error: cgroup change of group failed

I'm trying to test cgroup and, after I set it, I stumbled upon that error. That's what I did: creation of the group grp creation of the user test within the grp group I ran the command: sudo ...
0
votes
0answers
189 views

Cgroup (cgrules) does not work on reboot

I am currently using cgrules to limit the memory usage for specific users. Currently, I have set-up a cgconfig.conf file and cgrules.conf file. I then manually call the following commands: sudo ...
2
votes
0answers
357 views

GRUB_CMDLINE_LINUX=“cgroup_enable=memory swapaccount=1” crashes plasma 5

Following the instructions found here I modified my /etc/default/grub with this line: GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1" on a kubuntu 14.04 and a kubuntu 15.04 machines. The ...
2
votes
0answers
179 views

Cgroups I/O read restriction

I am trying to restrict group to read operation to 100 per second. Here is my cgroups configuration: # Configuration file generated by cgsnapshot mount { blkio = /cgroup/blkio; } group ...
0
votes
1answer
382 views

cgroups disk IO throttling with zfs

I'd like to use cgroups with my linux containers to throttle disk IO on them. Containers placed on ZFS volume /tank/lxc. I have three containers each in their own /tank/lxc/nodeXX directory. How can ...
3
votes
0answers
497 views

Where's cgconfig in Trusty?

I'm trying to create a cgroup where I can limit the resources used by Google Chrome after I hit a memory leak that froze my notebook. I followed the instructions here, here and here, but I've found ...
5
votes
1answer
755 views

Looking for a consistent way to configure cgroups on Ubuntu 14.04 Desktop

I am looking for a consistent way to configure cgroups on a Ubuntu 14.04 Desktop system with limited resources. What I would like to do: create a few groups with limited memory and cpu assigned for ...
0
votes
1answer
1k views

Systemd, cgroup, and LXC

After much trial and error, I was finally able to get Spice working in a Fedora LXC container under Ubuntu 14.04. However, the same can't be said of an Ubuntu 14.04 container. It appears that the ...
5
votes
1answer
2k views

why is cgconfig.conf not being read on reboot on 14.04?

I recenty upgraded a release from 12.04 to 14.04, and found out that my cgconfig.conf file is not being read anymore on startup. The file appears to be correct, in the sense that I can explicitly ...
1
vote
2answers
423 views

CGroups memory subsystem

I want to know if I can set dynamic limits to the memory subsystem in a cgroup. Currently I have the OOM disabled and a dummy process to test the control group, when the limit in memory is reached, ...
1
vote
0answers
1k views

dpkg: error processing cgroup-lite (--configure)

i upgrade ubuntu 12.04 server today and i found with this error: # apt-get install -f Reading package lists... Done Building dependency tree....... Reading state information... Done The following ...
1
vote
1answer
2k views

Ubuntu cgroup architecture: cgroup-lite vs cgroup-bin and default config for lxc, libvirt-bin?

It seems that (at least in Ubuntu 12.04 Precise), the cgroup-lite package is used to provide some cgroup capabilities for packages like libvirt-bin and lxc. It sets up a number of cgroups in ...
2
votes
0answers
157 views

net_cls and ns subsystems not available in 12.04?

I'm playing around with cgroups and I noticed when I try to list all available subsystems that the network ones are not available ? Running the following command should list ALL available subsystems - ...
9
votes
1answer
6k views

How to use cgroup in ubuntu 13.04

I'm trying to learn how cgroup works on Ubuntu and seems that cgroup doesn't work in Ubuntu 13.04. I am using the answer to this question How to set cpu limit for given process permanently. Cpulimit ...